[vm/fuzzer] Reduce number of methods per class

Rationale:
Reducing codesize to avoid timeouts on SIMARM builds.
Change-Id: I0f3ec773470ed2c60a9bc6f1c4ac65b7b4089a1e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/118466
Commit-Queue: Felicitas Hetzelt <felih@google.com>
Reviewed-by: Aart Bik <ajcbik@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
This commit is contained in:
Felicitas Hetzelt 2019-09-23 21:50:59 +00:00 committed by commit-bot@chromium.org
parent a6cc7b94c7
commit 326c00c6d7

View file

@ -14,7 +14,7 @@ import 'dartfuzz_ffiapi.dart';
// Version of DartFuzz. Increase this each time changes are made
// to preserve the property that a given version of DartFuzz yields
// the same fuzzed program for a deterministic random seed.
const String version = '1.50';
const String version = '1.51';
// Restriction on statements and expressions.
const int stmtDepth = 1;
@ -23,7 +23,6 @@ const int numStatements = 2;
const int numGlobalVars = 4;
const int numLocalVars = 4;
const int numGlobalMethods = 4;
const int numClassMethods = 3;
const int numMethodParams = 4;
const int numClasses = 4;
@ -135,6 +134,7 @@ class DartFuzz {
globalMethods =
fillTypes2(limit2: numGlobalMethods, limit1: numMethodParams);
classFields = fillTypes2(limit2: numClasses, limit1: numLocalVars);
final int numClassMethods = 1 + numClasses - classFields.length;
classMethods = fillTypes3(classFields.length,
limit2: numClassMethods, limit1: numMethodParams);