Index: src/ia32/macro-assembler-ia32.cc |
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc |
index 83e3722ae065bc9dae76d68a98d4cfb7f8881179..45e1197f4ab2dd7491848740736a76ad06b71582 100644 |
--- a/src/ia32/macro-assembler-ia32.cc |
+++ b/src/ia32/macro-assembler-ia32.cc |
@@ -2362,10 +2362,11 @@ void MacroAssembler::FloodFunctionIfStepping(Register fun, Register new_target, |
const ParameterCount& expected, |
const ParameterCount& actual) { |
Label skip_flooding; |
- ExternalReference step_in_enabled = |
- ExternalReference::debug_step_in_enabled_address(isolate()); |
- cmpb(Operand::StaticVariable(step_in_enabled), Immediate(0)); |
- j(equal, &skip_flooding); |
+ ExternalReference last_step_action = |
+ ExternalReference::debug_last_step_action_address(isolate()); |
+ STATIC_ASSERT(StepFrame > StepIn); |
+ cmpb(Operand::StaticVariable(last_step_action), Immediate(StepIn)); |
+ j(less, &skip_flooding); |
{ |
FrameScope frame(this, |
has_frame() ? StackFrame::NONE : StackFrame::INTERNAL); |