Index: runtime/vm/isolate.cc |
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc |
index b5a139be71e7a012a677d2f00039b1d4fe91fbe6..c2eeaa9619b80c555d66f2db37471fed29a59ed2 100644 |
--- a/runtime/vm/isolate.cc |
+++ b/runtime/vm/isolate.cc |
@@ -999,35 +999,10 @@ Thread* Isolate::mutator_thread() const { |
} |
-void Isolate::SetupInstructionsSnapshotPage( |
- const uint8_t* instructions_snapshot_buffer) { |
- InstructionsSnapshot snapshot(instructions_snapshot_buffer); |
-#if defined(DEBUG) |
- if (FLAG_trace_isolates) { |
- OS::Print("Precompiled instructions are at [0x%" Px ", 0x%" Px ")\n", |
- reinterpret_cast<uword>(snapshot.instructions_start()), |
- reinterpret_cast<uword>(snapshot.instructions_start()) + |
- snapshot.instructions_size()); |
- } |
-#endif |
siva
2017/01/26 01:07:30
Why did you delete these trace messages?
rmacnak
2017/01/26 17:39:00
This was helpful for low-level debugging at the be
|
- heap_->SetupExternalPage(snapshot.instructions_start(), |
- snapshot.instructions_size(), |
- /* is_executable = */ true); |
-} |
- |
- |
-void Isolate::SetupDataSnapshotPage(const uint8_t* data_snapshot_buffer) { |
- DataSnapshot snapshot(data_snapshot_buffer); |
-#if defined(DEBUG) |
- if (FLAG_trace_isolates) { |
- OS::Print( |
- "Precompiled rodata are at [0x%" Px ", 0x%" Px ")\n", |
- reinterpret_cast<uword>(snapshot.data_start()), |
- reinterpret_cast<uword>(snapshot.data_start()) + snapshot.data_size()); |
- } |
-#endif |
siva
2017/01/26 01:07:30
Ditto?
|
- heap_->SetupExternalPage(snapshot.data_start(), snapshot.data_size(), |
- /* is_executable = */ false); |
+void Isolate::SetupImagePage(const uint8_t* image_buffer, bool is_executable) { |
+ Image image(image_buffer); |
+ heap_->SetupImagePage(image.object_start(), image.object_size(), |
+ is_executable); |
} |