Index: src/ia32/builtins-ia32.cc |
diff --git a/src/ia32/builtins-ia32.cc b/src/ia32/builtins-ia32.cc |
index 0afe9806f70c4a62dd6200c9d1f51b846ac26be1..41bf9be4f4055cf60324a7aef8239b06b7628fc9 100644 |
--- a/src/ia32/builtins-ia32.cc |
+++ b/src/ia32/builtins-ia32.cc |
@@ -409,10 +409,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 step_in_enabled = |
- ExternalReference::debug_step_in_enabled_address(masm->isolate()); |
- __ cmpb(Operand::StaticVariable(step_in_enabled), Immediate(0)); |
- __ j(not_equal, &prepare_step_in_if_stepping); |
+ 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); |
// Flood function if we need to continue stepping in the suspended generator. |
ExternalReference debug_suspended_generator = |