Index: src/builtins/ppc/builtins-ppc.cc |
diff --git a/src/builtins/ppc/builtins-ppc.cc b/src/builtins/ppc/builtins-ppc.cc |
index 720acac962ca99a5d95c45b831427260fca28ed0..72f92ffab92819df8e3c39f3d1ad8d45c58a72cb 100644 |
--- a/src/builtins/ppc/builtins-ppc.cc |
+++ b/src/builtins/ppc/builtins-ppc.cc |
@@ -755,14 +755,13 @@ 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)); |
__ LoadByte(ip, MemOperand(ip), r0); |
__ extsb(ip, ip); |
- __ cmpi(ip, Operand(StepIn)); |
- __ bge(&prepare_step_in_if_stepping); |
+ __ CmpSmiLiteral(ip, Smi::kZero, r0); |
+ __ bne(&prepare_step_in_if_stepping); |
// Flood function if we need to continue stepping in the suspended generator. |
@@ -834,7 +833,7 @@ void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) { |
{ |
FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); |
__ Push(r4, r5, r7); |
- __ CallRuntime(Runtime::kDebugPrepareStepInIfStepping); |
+ __ CallRuntime(Runtime::kDebugOnFunctionCall); |
__ Pop(r4, r5); |
__ LoadP(r7, FieldMemOperand(r4, JSGeneratorObject::kFunctionOffset)); |
} |