Skip to content

Commit 0d15181

Browse files
authored
Remove uses of Dart VM bytecode mode from Flutter engine (flutter#21741)
1 parent 85b0031 commit 0d15181

File tree

5 files changed

+0
-27
lines changed

5 files changed

+0
-27
lines changed

flutter_frontend_server/lib/server.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,6 @@ Future<int> starter(
147147
'--target=flutter',
148148
'--track-widget-creation',
149149
'--enable-asserts',
150-
'--gen-bytecode',
151-
'--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions',
152150
]);
153151
compiler ??= _FlutterFrontendCompiler(
154152
output,

shell/platform/fuchsia/dart_runner/dart_runner.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ const char* kDartVMArgs[] = {
4747
"--precompilation",
4848
#else
4949
"--enable_mirrors=false",
50-
51-
// The interpreter is enabled unconditionally. If an app is built for
52-
// debugging (that is, with no bytecode), the VM will fall back on ASTs.
53-
"--enable_interpreter",
5450
#endif
5551

5652
// No asserts in debug or release product.

shell/platform/fuchsia/dart_runner/kernel/BUILD.gn

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ compile_platform("kernel_platform_files") {
2222
args = [
2323
"--enable-experiment=non-nullable",
2424
"--nnbd-agnostic",
25-
26-
# TODO(dartbug.com/36342): enable bytecode for core libraries when performance of bytecode
27-
# pipeline is on par with default pipeline and continuously tracked.
28-
# "--bytecode",
2925
"--target=dart_runner",
3026
"dart:core",
3127
]
@@ -75,7 +71,6 @@ template("create_kernel_core_snapshot") {
7571
# TODO(FL-117): Re-enable causal async stack traces when this issue is
7672
# addressed.
7773
"--no_causal_async_stacks",
78-
"--use_bytecode_compiler",
7974
"--enable_mirrors=false",
8075
"--deterministic",
8176
"--snapshot_kind=core-jit",

shell/platform/fuchsia/flutter/component.cc

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -406,17 +406,6 @@ Application::Application(
406406
// addressed.
407407
settings_.dart_flags = {"--no_causal_async_stacks"};
408408

409-
// Disable code collection as it interferes with JIT code warmup
410-
// by decreasing usage counters and flushing code which is still useful.
411-
settings_.dart_flags.push_back("--no-collect_code");
412-
413-
if (!flutter::DartVM::IsRunningPrecompiledCode()) {
414-
// The interpreter is enabled unconditionally in JIT mode. If an app is
415-
// built for debugging (that is, with no bytecode), the VM will fall back on
416-
// ASTs.
417-
settings_.dart_flags.push_back("--enable_interpreter");
418-
}
419-
420409
// Don't collect CPU samples from Dart VM C++ code.
421410
settings_.dart_flags.push_back("--no_profile_vm");
422411

shell/platform/fuchsia/flutter/kernel/BUILD.gn

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ compile_platform("kernel_platform_files") {
2222
args = [
2323
"--enable-experiment=non-nullable",
2424
"--nnbd-agnostic",
25-
26-
# TODO(dartbug.com/36342): enable bytecode for core libraries when performance of bytecode
27-
# pipeline is on par with default pipeline and continuously tracked.
28-
# "--bytecode",
2925
"--target=flutter_runner",
3026
"dart:core",
3127
]
@@ -79,7 +75,6 @@ template("core_snapshot") {
7975
# TODO(FL-117): Re-enable causal async stack traces when this issue is
8076
# addressed.
8177
"--no_causal_async_stacks",
82-
"--use_bytecode_compiler",
8378
"--enable_mirrors=false",
8479
"--deterministic",
8580
"--snapshot_kind=core-jit",

0 commit comments

Comments
 (0)