Index: runtime/vm/stack_frame.h |
diff --git a/runtime/vm/stack_frame.h b/runtime/vm/stack_frame.h |
index df105ab55b7d1b1bdb27d171067e2d0bf000ce56..3198872ae1aedbb8701a3b7ca5040f663408923c 100644 |
--- a/runtime/vm/stack_frame.h |
+++ b/runtime/vm/stack_frame.h |
@@ -133,15 +133,7 @@ class StackFrame : public ValueObject { |
fp() + (kSavedCallerPcSlotFromFp * kWordSize))); |
ASSERT(raw_pc != StubCode::DeoptimizeLazyFromThrow_entry()->EntryPoint()); |
if (raw_pc == StubCode::DeoptimizeLazyFromReturn_entry()->EntryPoint()) { |
- uword fp = GetCallerFp(); |
- MallocGrowableArray<PendingLazyDeopt>* pending_deopts = |
- isolate()->pending_deopts(); |
- for (intptr_t i = 0; i < pending_deopts->length(); i++) { |
- if ((*pending_deopts)[i].fp() == fp) { |
- return (*pending_deopts)[i].pc(); |
- } |
- } |
- FATAL("Missing pending deopt entry"); |
+ return isolate()->FindPendingDeopt(GetCallerFp()); |
} |
return raw_pc; |
} |