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

Unified Diff: runtime/tools/create_snapshot_bin.py

Issue 2924013004: core-jit: (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/vm/compilation_trace.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/tools/create_snapshot_bin.py
diff --git a/runtime/tools/create_snapshot_bin.py b/runtime/tools/create_snapshot_bin.py
index ada0d11171485ebe2292cf8ee3454e296c82eb8d..87c3a7da0276e0010c19f07ac46f00e106b371fe 100755
--- a/runtime/tools/create_snapshot_bin.py
+++ b/runtime/tools/create_snapshot_bin.py
@@ -23,6 +23,12 @@ def BuildOptions():
action="store", type="string",
help="kind of snapshot to generate",
default="core")
+ result.add_option("--load_compilation_trace",
+ action="store", type="string",
+ help="path to a compilation trace to load before generating a core-jit snapshot")
+ result.add_option("--vm_flag",
+ action="append", type="string", default=[],
+ help="pass additional Dart VM flag")
result.add_option("--vm_output_bin",
action="store", type="string",
help="output file name into which vm isolate snapshot in binary form " +
@@ -112,7 +118,13 @@ def Main():
return 1
# Setup arguments to the snapshot generator binary.
- script_args = ["--ignore_unrecognized_flags" ]
+ script_args = ["--ignore_unrecognized_flags"]
+
+ for flag in options.vm_flag:
+ script_args.append(flag)
+
+ if options.load_compilation_trace:
+ script_args.append(''.join([ "--load_compilation_trace=", options.load_compilation_trace]))
# Pass along the package_root if there is one.
if options.package_root:
« no previous file with comments | « no previous file | runtime/vm/compilation_trace.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698