| 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 3867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3878 void MacroAssembler::Call(Label* target) { | 3878 void MacroAssembler::Call(Label* target) { |
| 3879 BranchAndLink(target); | 3879 BranchAndLink(target); |
| 3880 } | 3880 } |
| 3881 | 3881 |
| 3882 | 3882 |
| 3883 void MacroAssembler::Push(Handle<Object> handle) { | 3883 void MacroAssembler::Push(Handle<Object> handle) { |
| 3884 li(at, Operand(handle)); | 3884 li(at, Operand(handle)); |
| 3885 push(at); | 3885 push(at); |
| 3886 } | 3886 } |
| 3887 | 3887 |
| 3888 | |
| 3889 void MacroAssembler::DebugBreak() { | |
| 3890 PrepareCEntryArgs(0); | |
| 3891 PrepareCEntryFunction( | |
| 3892 ExternalReference(Runtime::kHandleDebuggerStatement, isolate())); | |
| 3893 CEntryStub ces(isolate(), 1); | |
| 3894 DCHECK(AllowThisStubCall(&ces)); | |
| 3895 Call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT); | |
| 3896 } | |
| 3897 | |
| 3898 void MacroAssembler::MaybeDropFrames() { | 3888 void MacroAssembler::MaybeDropFrames() { |
| 3899 // Check whether we need to drop frames to restart a function on the stack. | 3889 // Check whether we need to drop frames to restart a function on the stack. |
| 3900 ExternalReference restart_fp = | 3890 ExternalReference restart_fp = |
| 3901 ExternalReference::debug_restart_fp_address(isolate()); | 3891 ExternalReference::debug_restart_fp_address(isolate()); |
| 3902 li(a1, Operand(restart_fp)); | 3892 li(a1, Operand(restart_fp)); |
| 3903 lw(a1, MemOperand(a1)); | 3893 lw(a1, MemOperand(a1)); |
| 3904 Jump(isolate()->builtins()->FrameDropperTrampoline(), RelocInfo::CODE_TARGET, | 3894 Jump(isolate()->builtins()->FrameDropperTrampoline(), RelocInfo::CODE_TARGET, |
| 3905 ne, a1, Operand(zero_reg)); | 3895 ne, a1, Operand(zero_reg)); |
| 3906 } | 3896 } |
| 3907 | 3897 |
| (...skipping 2585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6493 if (mag.shift > 0) sra(result, result, mag.shift); | 6483 if (mag.shift > 0) sra(result, result, mag.shift); |
| 6494 srl(at, dividend, 31); | 6484 srl(at, dividend, 31); |
| 6495 Addu(result, result, Operand(at)); | 6485 Addu(result, result, Operand(at)); |
| 6496 } | 6486 } |
| 6497 | 6487 |
| 6498 | 6488 |
| 6499 } // namespace internal | 6489 } // namespace internal |
| 6500 } // namespace v8 | 6490 } // namespace v8 |
| 6501 | 6491 |
| 6502 #endif // V8_TARGET_ARCH_MIPS | 6492 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |