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

Unified Diff: runtime/bin/BUILD.gn

Issue 2902313004: CoreJIT snapshots without training. (Closed)
Patch Set: gn Created 3 years, 7 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 4f30948dc15643e0f1ae14c7252faf25a859d2d0..968f93a0162e301fd7c38fba251bb210154c4d5a 100644
--- a/runtime/bin/BUILD.gn
+++ b/runtime/bin/BUILD.gn
@@ -6,6 +6,13 @@ import("gypi_contents.gni")
import("../runtime_args.gni")
import("../../build/compiled_action.gni")
+declare_args() {
+ # Controls the kind of core snapshot linked into the standalone VM. Using a
+ # core-jit snapshot breaks the ability to change various flags that affect
+ # code generation.
+ core_snapshot_kind = "core"
zra 2017/05/31 17:10:31 dart_core_snapshot_kind
rmacnak 2017/05/31 19:53:01 Done.
+}
+
# Generate a resources.cc file for the service isolate without Observatory.
action("gen_resources_cc") {
visibility = [ ":*" ] # Only targets in this file can see this.
@@ -460,12 +467,17 @@ action("generate_snapshot_bin") {
"../bin:gen_snapshot($host_toolchain)",
]
- vm_isolate_snapshot = "$target_gen_dir/vm_isolate_snapshot.bin"
- isolate_snapshot = "$target_gen_dir/isolate_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"
outputs = [
- vm_isolate_snapshot,
- isolate_snapshot,
+ vm_snapshot_data,
+ vm_snapshot_instructions,
+ isolate_snapshot_data,
+ isolate_snapshot_instructions,
gen_snapshot_stamp_file,
]
@@ -477,13 +489,15 @@ action("generate_snapshot_bin") {
"--executable",
rebase_path("$gen_snapshot_dir/gen_snapshot"),
"--snapshot_kind",
- "core",
+ core_snapshot_kind,
"--vm_output_bin",
- rebase_path(vm_isolate_snapshot, root_build_dir),
+ 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, root_build_dir),
- "--target_os",
- current_os,
+ 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),
]
@@ -529,15 +543,17 @@ bin_to_assembly("vm_snapshot_data_assembly") {
deps = [
":generate_snapshot_bin",
]
- input = "$target_gen_dir/vm_isolate_snapshot.bin"
+ input = "$target_gen_dir/vm_snapshot_data.bin"
output = "$target_gen_dir/vm_snapshot_data.S"
symbol = "kDartVmSnapshotData"
executable = false
}
bin_to_assembly("vm_snapshot_instructions_assembly") {
- deps = []
- input = "../tools/empty.bin"
+ deps = [
+ ":generate_snapshot_bin",
+ ]
+ input = "$target_gen_dir/vm_snapshot_instructions.bin"
output = "$target_gen_dir/vm_snapshot_instructions.S"
symbol = "kDartVmSnapshotInstructions"
executable = true
@@ -547,15 +563,17 @@ bin_to_assembly("isolate_snapshot_data_assembly") {
deps = [
":generate_snapshot_bin",
]
- input = "$target_gen_dir/isolate_snapshot.bin"
+ input = "$target_gen_dir/isolate_snapshot_data.bin"
output = "$target_gen_dir/isolate_snapshot_data.S"
symbol = "kDartCoreIsolateSnapshotData"
executable = false
}
bin_to_assembly("isolate_snapshot_instructions_assembly") {
- deps = []
- input = "../tools/empty.bin"
+ deps = [
+ ":generate_snapshot_bin",
+ ]
+ input = "$target_gen_dir/isolate_snapshot_instructions.bin"
output = "$target_gen_dir/isolate_snapshot_instructions.S"
symbol = "kDartCoreIsolateSnapshotInstructions"
executable = true
« 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