| Index: src/builtins/mips/builtins-mips.cc
|
| diff --git a/src/builtins/mips/builtins-mips.cc b/src/builtins/mips/builtins-mips.cc
|
| index fb08099ab3893103703db2976c39d45830b2acea..a7a493ebfafb3646afbcb079b97ce0c2fc39b5bf 100644
|
| --- a/src/builtins/mips/builtins-mips.cc
|
| +++ b/src/builtins/mips/builtins-mips.cc
|
| @@ -870,12 +870,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(t1, Operand(last_step_action));
|
| + ExternalReference debug_hook =
|
| + ExternalReference::debug_hook_on_function_call_address(masm->isolate());
|
| + __ li(t1, Operand(debug_hook));
|
| __ lb(t1, MemOperand(t1));
|
| - __ Branch(&prepare_step_in_if_stepping, ge, t1, Operand(StepIn));
|
| + __ Branch(&prepare_step_in_if_stepping, ne, t1, Operand(zero_reg));
|
|
|
| // Flood function if we need to continue stepping in the suspended generator.
|
| ExternalReference debug_suspended_generator =
|
| @@ -942,7 +941,7 @@ void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) {
|
| {
|
| FrameScope scope(masm, StackFrame::INTERNAL);
|
| __ Push(a1, a2, t0);
|
| - __ CallRuntime(Runtime::kDebugPrepareStepInIfStepping);
|
| + __ CallRuntime(Runtime::kDebugOnFunctionCall);
|
| __ Pop(a1, a2);
|
| }
|
| __ Branch(USE_DELAY_SLOT, &stepping_prepared);
|
|
|