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

Unified Diff: runtime/bin/BUILD.gn

Issue 2922913004: Add Dart_Save/LoadCompilationTrace. (Closed)
Patch Set: . Created 3 years, 6 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 | « no previous file | runtime/bin/gen_snapshot.cc » ('j') | no next file with comments »
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 94abe9846b87a76e15f9fa36c0c135680c9d40ac..da1049d4074e14bd0b93bc7a57e9ae377db42991 100644
--- a/runtime/bin/BUILD.gn
+++ b/runtime/bin/BUILD.gn
@@ -464,44 +464,30 @@ dart_io("standalone_dart_io") {
extra_sources = []
}
-action("generate_snapshot_bin") {
- deps = [
- "../bin:gen_snapshot($host_toolchain)",
- ]
-
+compiled_action("generate_snapshot_bin") {
vm_snapshot_data = "$target_gen_dir/vm_snapshot_data.bin"
vm_snapshot_instructions = "$target_gen_dir/vm_snapshot_instructions.bin"
isolate_snapshot_data = "$target_gen_dir/isolate_snapshot_data.bin"
isolate_snapshot_instructions =
"$target_gen_dir/isolate_snapshot_instructions.bin"
- gen_snapshot_stamp_file = "$target_gen_dir/gen_snapshot.stamp"
+
+ inputs = []
outputs = [
vm_snapshot_data,
vm_snapshot_instructions,
isolate_snapshot_data,
isolate_snapshot_instructions,
- gen_snapshot_stamp_file,
]
-
- gen_snapshot_dir =
- get_label_info("../bin:gen_snapshot($host_toolchain)", "root_out_dir")
-
- script = rebase_path("../tools/create_snapshot_bin.py")
+ tool = ":gen_snapshot"
args = [
- "--executable",
- rebase_path("$gen_snapshot_dir/gen_snapshot"),
- "--snapshot_kind",
- dart_core_snapshot_kind,
- "--vm_output_bin",
- rebase_path(vm_snapshot_data, root_build_dir),
- "--vm_instructions_output_bin",
- rebase_path(vm_snapshot_instructions, root_build_dir),
- "--isolate_output_bin",
- rebase_path(isolate_snapshot_data, root_build_dir),
- "--isolate_instructions_output_bin",
- rebase_path(isolate_snapshot_instructions, root_build_dir),
- "--timestamp_file",
- rebase_path(gen_snapshot_stamp_file, root_build_dir),
+ "--snapshot_kind=" + dart_core_snapshot_kind,
+ "--vm_snapshot_data=" + rebase_path(vm_snapshot_data, root_build_dir),
+ "--vm_snapshot_instructions=" +
+ rebase_path(vm_snapshot_instructions, root_build_dir),
+ "--isolate_snapshot_data=" +
+ rebase_path(isolate_snapshot_data, root_build_dir),
+ "--isolate_snapshot_instructions=" +
+ rebase_path(isolate_snapshot_instructions, root_build_dir),
]
}
« no previous file with comments | « no previous file | runtime/bin/gen_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698