| Index: src/builtins/x87/builtins-x87.cc
|
| diff --git a/src/builtins/x87/builtins-x87.cc b/src/builtins/x87/builtins-x87.cc
|
| index 5a90e6cf134896c1160214a1ff7425d43ea372be..cf0f4486432f34da8a6e204f6aa034734f3cca24 100644
|
| --- a/src/builtins/x87/builtins-x87.cc
|
| +++ b/src/builtins/x87/builtins-x87.cc
|
| @@ -393,11 +393,10 @@ 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);
|
| - __ cmpb(Operand::StaticVariable(last_step_action), Immediate(StepIn));
|
| - __ j(greater_equal, &prepare_step_in_if_stepping);
|
| + ExternalReference debug_hook =
|
| + ExternalReference::debug_hook_on_function_call_address(masm->isolate());
|
| + __ cmpb(Operand::StaticVariable(debug_hook), Immediate(0));
|
| + __ j(not_equal, &prepare_step_in_if_stepping);
|
|
|
| // Flood function if we need to continue stepping in the suspended generator.
|
| ExternalReference debug_suspended_generator =
|
| @@ -465,7 +464,7 @@ void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) {
|
| __ Push(ebx);
|
| __ Push(edx);
|
| __ Push(edi);
|
| - __ CallRuntime(Runtime::kDebugPrepareStepInIfStepping);
|
| + __ CallRuntime(Runtime::kDebugOnFunctionCall);
|
| __ Pop(edx);
|
| __ Pop(ebx);
|
| __ mov(edi, FieldOperand(ebx, JSGeneratorObject::kFunctionOffset));
|
|
|