From 95b0e0bc7f2e5f958e8b6a454e5fcc6444d29ac0 Mon Sep 17 00:00:00 2001 From: Zachary Anderson Date: Fri, 6 Oct 2017 14:54:08 -0700 Subject: [PATCH] Remove daed --assert_initializer flag (flutter/engine#4181) --- engine/src/flutter/build/aot_snapshot.py | 1 - engine/src/flutter/build/script_snapshot.py | 1 - engine/src/flutter/lib/snapshot/BUILD.gn | 2 -- engine/src/flutter/runtime/dart_init.cc | 6 ++++-- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/engine/src/flutter/build/aot_snapshot.py b/engine/src/flutter/build/aot_snapshot.py index ab79ea90f6..51cbaa849e 100755 --- a/engine/src/flutter/build/aot_snapshot.py +++ b/engine/src/flutter/build/aot_snapshot.py @@ -40,7 +40,6 @@ def main(): args.snapshotter_path, "--enable_mirrors=false", "--await_is_keyword", - "--assert_initializer", '--snapshot_kind=app-aot-assembly', '--packages=%s' % args.packages, '--assembly=%s' % args.assembly, diff --git a/engine/src/flutter/build/script_snapshot.py b/engine/src/flutter/build/script_snapshot.py index ba0b93ffab..7548ba65a9 100755 --- a/engine/src/flutter/build/script_snapshot.py +++ b/engine/src/flutter/build/script_snapshot.py @@ -41,7 +41,6 @@ def main(): args.snapshotter_path, '--enable_mirrors=false', '--await_is_keyword', - '--assert_initializer', '--snapshot_kind=script', '--vm_snapshot_data=%s' % args.vm_snapshot_data, '--vm_snapshot_instructions=%s' % args.vm_snapshot_instructions, diff --git a/engine/src/flutter/lib/snapshot/BUILD.gn b/engine/src/flutter/lib/snapshot/BUILD.gn index f68537386f..f67ac2dc68 100644 --- a/engine/src/flutter/lib/snapshot/BUILD.gn +++ b/engine/src/flutter/lib/snapshot/BUILD.gn @@ -128,8 +128,6 @@ action("generate_snapshot_bin") { "--vm_flag", "--await_is_keyword", "--vm_flag", - "--assert_initializer", - "--vm_flag", "--enable_mirrors=false", "--vm_output_bin", rebase_path(vm_snapshot_data, root_build_dir), diff --git a/engine/src/flutter/runtime/dart_init.cc b/engine/src/flutter/runtime/dart_init.cc index 6d8ec5654c..18e26c0040 100644 --- a/engine/src/flutter/runtime/dart_init.cc +++ b/engine/src/flutter/runtime/dart_init.cc @@ -73,8 +73,10 @@ namespace { // Arguments passed to the Dart VM in all configurations. static const char* kDartLanguageArgs[] = { - "--enable_mirrors=false", "--background_compilation", "--await_is_keyword", - "--assert_initializer", "--causal_async_stacks", + "--enable_mirrors=false", + "--background_compilation", + "--await_is_keyword", + "--causal_async_stacks", }; static const char* kDartPrecompilationArgs[] = {