Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1520)

Unified Diff: runtime/bin/BUILD.gn

Issue 2655173002: Create an app snapshot of the Dart front end. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « BUILD.gn ('k') | runtime/bin/bin.gypi » ('j') | runtime/bin/main.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/BUILD.gn
diff --git a/runtime/bin/BUILD.gn b/runtime/bin/BUILD.gn
index c3140f0d76a31fff5b21c9b7677f6a0442628b11..91381cf35a77ffa65823c5dfdc32f2d11e3b7619 100644
--- a/runtime/bin/BUILD.gn
+++ b/runtime/bin/BUILD.gn
@@ -489,6 +489,40 @@ action("generate_snapshot_bin") {
]
}
+action("generate_dfe_snapshot") {
zra 2017/01/26 20:55:00 This should try to use the "application_snapshot"
Siggi Cherem (dart-lang) 2017/01/26 22:38:13 DBC - I like the idea of moving this. Two small re
rmacnak 2017/01/26 23:48:45 Change to application_snapshot template and moved
+ deps = [
+ "../bin:dart($host_toolchain)",
+ ]
+
+ package_map = rebase_path("../../.packages")
+ dfe_script = rebase_path("../tools/kernel-service.dart")
+ dfe_snapshot = "$root_out_dir/kernel-service.dart.snapshot"
+ training_script =
+ "file://" + rebase_path("../../pkg/compiler/lib/src/dart2js.dart")
+ dart_dir = get_label_info("../bin:dart($host_toolchain)", "root_out_dir")
+ dart_path = rebase_path("$dart_dir/dart")
+
+ inputs = [
+ package_map,
+ dfe_script,
+ ]
+
+ outputs = [
+ dfe_snapshot,
+ ]
+
+ script = rebase_path("../../build/gn_run_binary.py")
+ args = [
+ "exec_script",
+ dart_path,
+ "--snapshot=" + rebase_path(dfe_snapshot),
+ "--snapshot-kind=app-jit",
+ "--packages=" + package_map,
+ dfe_script,
+ training_script,
+ ]
+}
+
action("generate_snapshot_file") {
deps = [
":generate_snapshot_bin",
@@ -496,7 +530,7 @@ action("generate_snapshot_file") {
snapshot_in_cc_file = "snapshot_in.cc"
inputs = [
- "../tools/create_snapshot_file.py",
+ "../tools/create_snapshot_cc.py",
snapshot_in_cc_file,
"$target_gen_dir/vm_isolate_snapshot.bin",
"$target_gen_dir/isolate_snapshot.bin",
@@ -506,7 +540,7 @@ action("generate_snapshot_file") {
output,
]
- script = "../tools/create_snapshot_file.py"
+ script = "../tools/create_snapshot_cc.py"
args = [
"--vm_input_bin",
rebase_path("$target_gen_dir/vm_isolate_snapshot.bin"),
« no previous file with comments | « BUILD.gn ('k') | runtime/bin/bin.gypi » ('j') | runtime/bin/main.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698