Unverified Commit 1973cf2d authored by Alexander Markov's avatar Alexander Markov Committed by GitHub

Remove uses of bytecode mode of Dart VM (#67755)

parent 2639ac1d
......@@ -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',
]));
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment