| 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 #include <limits.h> // For LONG_MIN, LONG_MAX. | 5 #include <limits.h> // For LONG_MIN, LONG_MAX. |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/base/division-by-constant.h" | 10 #include "src/base/division-by-constant.h" |
| (...skipping 4980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4991 } | 4991 } |
| 4992 bind(®ular_invoke); | 4992 bind(®ular_invoke); |
| 4993 } | 4993 } |
| 4994 } | 4994 } |
| 4995 | 4995 |
| 4996 | 4996 |
| 4997 void MacroAssembler::FloodFunctionIfStepping(Register fun, Register new_target, | 4997 void MacroAssembler::FloodFunctionIfStepping(Register fun, Register new_target, |
| 4998 const ParameterCount& expected, | 4998 const ParameterCount& expected, |
| 4999 const ParameterCount& actual) { | 4999 const ParameterCount& actual) { |
| 5000 Label skip_flooding; | 5000 Label skip_flooding; |
| 5001 ExternalReference step_in_enabled = | 5001 ExternalReference last_step_action = |
| 5002 ExternalReference::debug_step_in_enabled_address(isolate()); | 5002 ExternalReference::debug_last_step_action_address(isolate()); |
| 5003 li(t0, Operand(step_in_enabled)); | 5003 STATIC_ASSERT(StepFrame > StepIn); |
| 5004 li(t0, Operand(last_step_action)); |
| 5004 lb(t0, MemOperand(t0)); | 5005 lb(t0, MemOperand(t0)); |
| 5005 Branch(&skip_flooding, eq, t0, Operand(zero_reg)); | 5006 Branch(&skip_flooding, lt, t0, Operand(StepIn)); |
| 5006 { | 5007 { |
| 5007 FrameScope frame(this, | 5008 FrameScope frame(this, |
| 5008 has_frame() ? StackFrame::NONE : StackFrame::INTERNAL); | 5009 has_frame() ? StackFrame::NONE : StackFrame::INTERNAL); |
| 5009 if (expected.is_reg()) { | 5010 if (expected.is_reg()) { |
| 5010 SmiTag(expected.reg()); | 5011 SmiTag(expected.reg()); |
| 5011 Push(expected.reg()); | 5012 Push(expected.reg()); |
| 5012 } | 5013 } |
| 5013 if (actual.is_reg()) { | 5014 if (actual.is_reg()) { |
| 5014 SmiTag(actual.reg()); | 5015 SmiTag(actual.reg()); |
| 5015 Push(actual.reg()); | 5016 Push(actual.reg()); |
| (...skipping 1776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6792 if (mag.shift > 0) sra(result, result, mag.shift); | 6793 if (mag.shift > 0) sra(result, result, mag.shift); |
| 6793 srl(at, dividend, 31); | 6794 srl(at, dividend, 31); |
| 6794 Addu(result, result, Operand(at)); | 6795 Addu(result, result, Operand(at)); |
| 6795 } | 6796 } |
| 6796 | 6797 |
| 6797 | 6798 |
| 6798 } // namespace internal | 6799 } // namespace internal |
| 6799 } // namespace v8 | 6800 } // namespace v8 |
| 6800 | 6801 |
| 6801 #endif // V8_TARGET_ARCH_MIPS | 6802 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |