mirror of
https://github.com/dart-lang/sdk
synced 2024-10-02 23:24:42 +00:00
[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:
parent
00f75adfaf
commit
14b9d7f128
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue