Remove uses of bytecode mode of Dart VM (#67755)
This commit is contained in:
@@ -152,20 +152,17 @@ List<String> buildModeOptions(BuildMode mode) {
|
||||
return <String>[
|
||||
'-Ddart.vm.profile=false',
|
||||
'-Ddart.vm.product=false',
|
||||
'--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions',
|
||||
'--enable-asserts',
|
||||
];
|
||||
case BuildMode.profile:
|
||||
return <String>[
|
||||
'-Ddart.vm.profile=true',
|
||||
'-Ddart.vm.product=false',
|
||||
'--bytecode-options=source-positions',
|
||||
];
|
||||
case BuildMode.release:
|
||||
return <String>[
|
||||
'-Ddart.vm.profile=false',
|
||||
'-Ddart.vm.product=true',
|
||||
'--bytecode-options=source-positions',
|
||||
];
|
||||
}
|
||||
throw Exception('Unknown BuildMode: $mode');
|
||||
|
||||
@@ -119,12 +119,6 @@ class FuchsiaKernelCompiler {
|
||||
],
|
||||
'-Ddart.developer.causal_async_stacks=${buildInfo.isDebug}',
|
||||
|
||||
// Use bytecode and drop the ast in JIT release mode.
|
||||
if (buildInfo.isJitRelease) ...<String>[
|
||||
'--gen-bytecode',
|
||||
'--drop-ast',
|
||||
],
|
||||
|
||||
for (final String dartDefine in buildInfo.dartDefines)
|
||||
'-D$dartDefine',
|
||||
];
|
||||
|
||||
@@ -113,7 +113,6 @@ void main() {
|
||||
'--tfa',
|
||||
'-Ddart.vm.profile=true',
|
||||
'-Ddart.vm.product=false',
|
||||
'--bytecode-options=source-positions',
|
||||
'-Ddart.developer.causal_async_stacks=false',
|
||||
]));
|
||||
});
|
||||
@@ -150,7 +149,6 @@ void main() {
|
||||
'--tfa',
|
||||
'-Ddart.vm.profile=false',
|
||||
'-Ddart.vm.product=true',
|
||||
'--bytecode-options=source-positions',
|
||||
'-Ddart.developer.causal_async_stacks=false',
|
||||
]));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user