Index: src/builtins/s390/builtins-s390.cc |
diff --git a/src/builtins/s390/builtins-s390.cc b/src/builtins/s390/builtins-s390.cc |
index 672765d6756f6676d5b18dd1e2a4ec50e13b3473..5b105d027e9ee23e657f2f47b05f2d90f88205ce 100644 |
--- a/src/builtins/s390/builtins-s390.cc |
+++ b/src/builtins/s390/builtins-s390.cc |
@@ -754,13 +754,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)); |
__ LoadB(ip, MemOperand(ip)); |
- __ CmpP(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. |
@@ -833,7 +832,7 @@ void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) { |
{ |
FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); |
__ Push(r3, r4, r6); |
- __ CallRuntime(Runtime::kDebugPrepareStepInIfStepping); |
+ __ CallRuntime(Runtime::kDebugOnFunctionCall); |
__ Pop(r3, r4); |
__ LoadP(r6, FieldMemOperand(r3, JSGeneratorObject::kFunctionOffset)); |
} |