[infra] Prepare test.py for the --preview-dart-2 VM flag flip

Change-Id: I61ce096d41d7e20b61c577b05eaa20cf6e39e8cd
Reviewed-on: https://dart-review.googlesource.com/57510
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
This commit is contained in:
Alexander Thomas 2018-05-31 13:45:52 +00:00 committed by commit-bot@chromium.org
parent 00f75adfaf
commit 14b9d7f128

View file

@ -187,6 +187,7 @@ class NoneCompilerConfiguration extends CompilerConfiguration {
args.add('--no-background-compilation');
}
} else {
args.add('--no-preview-dart-2');
if (_isStrong) {
args.add('--strong');
}
@ -772,6 +773,7 @@ class PrecompilerCompilerConfiguration extends CompilerConfiguration
args.add('--preview-dart-2');
args.addAll(_replaceDartFiles(arguments, tempKernelFile(tempDir)));
} else {
args.add('--no-preview-dart-2');
args.addAll(arguments);
}
@ -943,6 +945,8 @@ class AppJitCompilerConfiguration extends CompilerConfiguration {
var args = ["--snapshot=$snapshot", "--snapshot-kind=app-jit"];
if (useDfe) {
args.add("--preview-dart-2");
} else {
args.add("--no-preview-dart-2");
}
args.addAll(arguments);
@ -978,6 +982,8 @@ class AppJitCompilerConfiguration extends CompilerConfiguration {
}
if (useDfe) {
args.add('--preview-dart-2');
} else {
args.add("--no-preview-dart-2");
}
args
..addAll(vmOptions)