Index: src/mips/macro-assembler-mips.cc |
diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc |
index 25413f9a5431b52958ac5cbf19819944fd81dfcb..22a0a099ba263da03f963505c4d0ff43147b4fe2 100644 |
--- a/src/mips/macro-assembler-mips.cc |
+++ b/src/mips/macro-assembler-mips.cc |
@@ -3895,6 +3895,15 @@ void MacroAssembler::DebugBreak() { |
Call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT); |
} |
+void MacroAssembler::MaybeDropFrames() { |
+ // Check whether we need to drop frames to restart a function on the stack. |
+ ExternalReference restart_fp = |
+ ExternalReference::debug_restart_fp_address(isolate()); |
+ li(a1, Operand(restart_fp)); |
+ lw(a1, MemOperand(a1)); |
+ Jump(isolate()->builtins()->FrameDropperTrampoline(), RelocInfo::CODE_TARGET, |
+ ne, a1, Operand(zero_reg)); |
+} |
// --------------------------------------------------------------------------- |
// Exception handling. |