OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #if V8_TARGET_ARCH_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/base/division-by-constant.h" | 8 #include "src/base/division-by-constant.h" |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 1973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1984 } | 1984 } |
1985 bind(&invoke); | 1985 bind(&invoke); |
1986 } | 1986 } |
1987 } | 1987 } |
1988 | 1988 |
1989 | 1989 |
1990 void MacroAssembler::FloodFunctionIfStepping(Register fun, Register new_target, | 1990 void MacroAssembler::FloodFunctionIfStepping(Register fun, Register new_target, |
1991 const ParameterCount& expected, | 1991 const ParameterCount& expected, |
1992 const ParameterCount& actual) { | 1992 const ParameterCount& actual) { |
1993 Label skip_flooding; | 1993 Label skip_flooding; |
1994 ExternalReference debug_step_action = | 1994 ExternalReference step_in_enabled = |
1995 ExternalReference::debug_last_step_action_address(isolate()); | 1995 ExternalReference::debug_step_in_enabled_address(isolate()); |
1996 cmpb(Operand::StaticVariable(debug_step_action), StepIn); | 1996 cmpb(Operand::StaticVariable(step_in_enabled), 0); |
1997 j(not_equal, &skip_flooding); | 1997 j(equal, &skip_flooding); |
1998 { | 1998 { |
1999 FrameScope frame(this, | 1999 FrameScope frame(this, |
2000 has_frame() ? StackFrame::NONE : StackFrame::INTERNAL); | 2000 has_frame() ? StackFrame::NONE : StackFrame::INTERNAL); |
2001 if (expected.is_reg()) { | 2001 if (expected.is_reg()) { |
2002 SmiTag(expected.reg()); | 2002 SmiTag(expected.reg()); |
2003 Push(expected.reg()); | 2003 Push(expected.reg()); |
2004 } | 2004 } |
2005 if (actual.is_reg()) { | 2005 if (actual.is_reg()) { |
2006 SmiTag(actual.reg()); | 2006 SmiTag(actual.reg()); |
2007 Push(actual.reg()); | 2007 Push(actual.reg()); |
(...skipping 1175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3183 mov(eax, dividend); | 3183 mov(eax, dividend); |
3184 shr(eax, 31); | 3184 shr(eax, 31); |
3185 add(edx, eax); | 3185 add(edx, eax); |
3186 } | 3186 } |
3187 | 3187 |
3188 | 3188 |
3189 } // namespace internal | 3189 } // namespace internal |
3190 } // namespace v8 | 3190 } // namespace v8 |
3191 | 3191 |
3192 #endif // V8_TARGET_ARCH_IA32 | 3192 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |