| OLD | NEW |
| 1 | 1 |
| 2 // Copyright 2012 the V8 project authors. All rights reserved. | 2 // Copyright 2012 the V8 project authors. All rights reserved. |
| 3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
| 4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
| 5 | 5 |
| 6 #include <limits.h> // For LONG_MIN, LONG_MAX. | 6 #include <limits.h> // For LONG_MIN, LONG_MAX. |
| 7 | 7 |
| 8 #if V8_TARGET_ARCH_MIPS | 8 #if V8_TARGET_ARCH_MIPS |
| 9 | 9 |
| 10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
| (...skipping 3996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4007 } | 4007 } |
| 4008 bind(®ular_invoke); | 4008 bind(®ular_invoke); |
| 4009 } | 4009 } |
| 4010 } | 4010 } |
| 4011 | 4011 |
| 4012 | 4012 |
| 4013 void MacroAssembler::FloodFunctionIfStepping(Register fun, Register new_target, | 4013 void MacroAssembler::FloodFunctionIfStepping(Register fun, Register new_target, |
| 4014 const ParameterCount& expected, | 4014 const ParameterCount& expected, |
| 4015 const ParameterCount& actual) { | 4015 const ParameterCount& actual) { |
| 4016 Label skip_flooding; | 4016 Label skip_flooding; |
| 4017 ExternalReference debug_step_action = | 4017 ExternalReference step_in_enabled = |
| 4018 ExternalReference::debug_last_step_action_address(isolate()); | 4018 ExternalReference::debug_step_in_enabled_address(isolate()); |
| 4019 li(t0, Operand(debug_step_action)); | 4019 li(t0, Operand(step_in_enabled)); |
| 4020 lb(t0, MemOperand(t0)); | 4020 lb(t0, MemOperand(t0)); |
| 4021 Branch(&skip_flooding, ne, t0, Operand(StepIn)); | 4021 Branch(&skip_flooding, eq, t0, Operand(zero_reg)); |
| 4022 { | 4022 { |
| 4023 FrameScope frame(this, | 4023 FrameScope frame(this, |
| 4024 has_frame() ? StackFrame::NONE : StackFrame::INTERNAL); | 4024 has_frame() ? StackFrame::NONE : StackFrame::INTERNAL); |
| 4025 if (expected.is_reg()) { | 4025 if (expected.is_reg()) { |
| 4026 SmiTag(expected.reg()); | 4026 SmiTag(expected.reg()); |
| 4027 Push(expected.reg()); | 4027 Push(expected.reg()); |
| 4028 } | 4028 } |
| 4029 if (actual.is_reg()) { | 4029 if (actual.is_reg()) { |
| 4030 SmiTag(actual.reg()); | 4030 SmiTag(actual.reg()); |
| 4031 Push(actual.reg()); | 4031 Push(actual.reg()); |
| (...skipping 1832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5864 if (mag.shift > 0) sra(result, result, mag.shift); | 5864 if (mag.shift > 0) sra(result, result, mag.shift); |
| 5865 srl(at, dividend, 31); | 5865 srl(at, dividend, 31); |
| 5866 Addu(result, result, Operand(at)); | 5866 Addu(result, result, Operand(at)); |
| 5867 } | 5867 } |
| 5868 | 5868 |
| 5869 | 5869 |
| 5870 } // namespace internal | 5870 } // namespace internal |
| 5871 } // namespace v8 | 5871 } // namespace v8 |
| 5872 | 5872 |
| 5873 #endif // V8_TARGET_ARCH_MIPS | 5873 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |