Chromium Code Reviews| 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); |