Skip to content

Commit bcca3c4

Browse files
alexmarkovcommit-bot@chromium.org
authored andcommitted
[vm/bytecode] Enable bytecode compiler by default in Dart SDK
Change-Id: Ica9afac673e294734255a9fa8802ec05c2dde24c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110551 Reviewed-by: Régis Crelier <[email protected]> Reviewed-by: Siva Annamalai <[email protected]> Commit-Queue: Alexander Markov <[email protected]>
1 parent b988928 commit bcca3c4

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

runtime/runtime_args.gni

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ declare_args() {
8080
dart_component_kind = "static_library"
8181
}
8282

83-
# Whether the VM's platform dill file contains bytecode.
84-
dart_platform_bytecode = false
83+
# Controls whether the VM uses bytecode.
84+
dart_platform_bytecode = true
8585

8686
# Whether the VM includes the kernel service in all modes (debug, release,
8787
# product).

tools/gn.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,9 +408,14 @@ def parse_args(args):
408408
other_group.add_argument(
409409
'--bytecode',
410410
'-b',
411-
help='Include bytecode in the VMs platform dill',
412-
default=False,
411+
help='Use bytecode in Dart VM',
412+
default=True,
413413
action="store_true")
414+
other_group.add_argument(
415+
'--no-bytecode',
416+
help='Disable bytecode in Dart VM',
417+
dest='bytecode',
418+
action="store_false")
414419
other_group.add_argument(
415420
'--clang', help='Use Clang', default=True, action='store_true')
416421
other_group.add_argument(

0 commit comments

Comments
 (0)