Index: runtime/vm/simulator_mips.cc |
diff --git a/runtime/vm/simulator_mips.cc b/runtime/vm/simulator_mips.cc |
index eb03c4997dc8a80874d518c544c5dc6101d10d3f..f42b3fa88066541589a77e12bb5ed3bbdc25f1f3 100644 |
--- a/runtime/vm/simulator_mips.cc |
+++ b/runtime/vm/simulator_mips.cc |
@@ -2530,6 +2530,13 @@ void Simulator::Longjmp(uword pc, |
ASSERT(raw_exception != Object::null()); |
set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); |
set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); |
+ // Restore pool pointer. |
+ int32_t code = *reinterpret_cast<int32_t*>( |
+ fp + kPcMarkerSlotFromFp * kWordSize); |
+ int32_t pp = *reinterpret_cast<int32_t*>( |
+ code + Code::object_pool_offset() - kHeapObjectTag); |
+ set_register(CODE_REG, code); |
+ set_register(PP, pp); |
buf->Longjmp(); |
} |