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

Unified Diff: runtime/vm/isolate.cc

Issue 1336763002: Last snapshot bits to get working precompiled hello_world on x64. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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
Index: runtime/vm/isolate.cc
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc
index e05790b900e296289170ad7a2ead0cd5794b82da..784118e39089c6aa0ab33f4b950f420240ebbb5a 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -889,6 +889,20 @@ uword Isolate::GetCurrentStackPointer() {
}
+void Isolate::SetupInstructionsSnapshotPage(
+ const uint8_t* instructions_snapshot_buffer) {
+ InstructionsSnapshot snapshot(instructions_snapshot_buffer);
+#if defined(DEBUG)
+ OS::Print("Precompiled instructions are at [%" Px ", %" Px ")\n",
siva 2015/09/16 16:45:41 0x%" ..... 0x%" ....
rmacnak 2015/09/16 18:17:18 Done.
+ reinterpret_cast<uword>(snapshot.instructions_start()),
+ reinterpret_cast<uword>(snapshot.instructions_start()) +
+ snapshot.instructions_size());
+#endif
+ heap_->SetupInstructionsSnapshotPage(snapshot.instructions_start(),
+ snapshot.instructions_size());
+}
+
+
void Isolate::set_debugger_name(const char* name) {
free(debugger_name_);
debugger_name_ = strdup(name);

Powered by Google App Engine
This is Rietveld 408576698