From 13ba4b271003a1784c1257bd84e87fcf56cb9bd0 Mon Sep 17 00:00:00 2001 From: Ryan Macnak Date: Wed, 16 Nov 2016 09:10:22 -0800 Subject: [PATCH] When building app snapshots for the SDK, train dart2js on itself. Don't train the analzyer on itself as this makes running the test suite slower. Disable code collection when generating an app snapshot. R=asiva@google.com Review URL: https://codereview.chromium.org/2509453002 . --- runtime/bin/main.cc | 1 + utils/compiler/BUILD.gn | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/runtime/bin/main.cc b/runtime/bin/main.cc index b36681d8f02..f5adbc36d50 100644 --- a/runtime/bin/main.cc +++ b/runtime/bin/main.cc @@ -1862,6 +1862,7 @@ void main(int argc, char** argv) { if (gen_snapshot_kind == kAppJIT) { vm_options.AddArgument("--fields_may_be_reset"); + vm_options.AddArgument("--collect_code=false"); } if ((gen_snapshot_kind == kAppAOT) || is_noopt) { vm_options.AddArgument("--precompilation"); diff --git a/utils/compiler/BUILD.gn b/utils/compiler/BUILD.gn index c0e428db69c..9ec10930705 100644 --- a/utils/compiler/BUILD.gn +++ b/utils/compiler/BUILD.gn @@ -62,7 +62,8 @@ application_snapshot("dart2js") { main_dart = "$root_gen_dir/dart2js.dart" training_args = [ "--library-root=" + rebase_path("../../sdk"), - rebase_path("../../tests/language/first_test.dart"), + "--categories=all", + rebase_path("$root_gen_dir/dart2js.dart"), ] }