Index: src/builtins/arm/builtins-arm.cc |
diff --git a/src/builtins/arm/builtins-arm.cc b/src/builtins/arm/builtins-arm.cc |
index 2fd8541bea682554db65e54e2a520af021fd6fe8..0d1edec4b598c0af5ce6d94f3ed0938045354e6e 100644 |
--- a/src/builtins/arm/builtins-arm.cc |
+++ b/src/builtins/arm/builtins-arm.cc |
@@ -743,13 +743,12 @@ 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); |
- __ mov(ip, Operand(last_step_action)); |
+ ExternalReference debug_hook = |
+ ExternalReference::debug_hook_on_function_call_address(masm->isolate()); |
+ __ mov(ip, Operand(debug_hook)); |
__ ldrsb(ip, MemOperand(ip)); |
- __ cmp(ip, Operand(StepIn)); |
- __ b(ge, &prepare_step_in_if_stepping); |
+ __ cmp(ip, Operand(0)); |
+ __ b(ne, &prepare_step_in_if_stepping); |
// 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) { |
{ |
FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); |
__ Push(r1, r2, r4); |
- __ CallRuntime(Runtime::kDebugPrepareStepInIfStepping); |
+ __ CallRuntime(Runtime::kDebugOnFunctionCall); |
__ Pop(r1, r2); |
__ ldr(r4, FieldMemOperand(r1, JSGeneratorObject::kFunctionOffset)); |
} |