Index: src/builtins/mips64/builtins-mips64.cc |
diff --git a/src/builtins/mips64/builtins-mips64.cc b/src/builtins/mips64/builtins-mips64.cc |
index e90801d42072c64d290713868fff0d302d87b87e..41959da5cbcdd0ee1237a20c7e4746ca9f653b03 100644 |
--- a/src/builtins/mips64/builtins-mips64.cc |
+++ b/src/builtins/mips64/builtins-mips64.cc |
@@ -746,12 +746,11 @@ void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) { |
// Flood function if we are stepping. |
Label prepare_step_in_if_stepping, prepare_step_in_suspended_generator; |
Label stepping_prepared; |
- ExternalReference last_step_action = |
- ExternalReference::debug_last_step_action_address(masm->isolate()); |
- STATIC_ASSERT(StepFrame > StepIn); |
- __ li(a5, Operand(last_step_action)); |
+ ExternalReference debug_hook = |
+ ExternalReference::debug_hook_on_function_call_address(masm->isolate()); |
+ __ li(a5, Operand(debug_hook)); |
__ lb(a5, MemOperand(a5)); |
- __ Branch(&prepare_step_in_if_stepping, ge, a5, Operand(StepIn)); |
+ __ Branch(&prepare_step_in_if_stepping, ne, a5, Operand(zero_reg)); |
// Flood function if we need to continue stepping in the suspended generator. |
ExternalReference debug_suspended_generator = |
@@ -817,7 +816,7 @@ void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) { |
{ |
FrameScope scope(masm, StackFrame::INTERNAL); |
__ Push(a1, a2, a4); |
- __ CallRuntime(Runtime::kDebugPrepareStepInIfStepping); |
+ __ CallRuntime(Runtime::kDebugOnFunctionCall); |
__ Pop(a1, a2); |
} |
__ Branch(USE_DELAY_SLOT, &stepping_prepared); |