| 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 | |
| 3899 // --------------------------------------------------------------------------- | 3888 // --------------------------------------------------------------------------- |
| 3900 // Exception handling. | 3889 // Exception handling. |
| 3901 | 3890 |
| 3902 void MacroAssembler::PushStackHandler() { | 3891 void MacroAssembler::PushStackHandler() { |
| 3903 // Adjust this code if not the case. | 3892 // Adjust this code if not the case. |
| 3904 STATIC_ASSERT(StackHandlerConstants::kSize == 1 * kPointerSize); | 3893 STATIC_ASSERT(StackHandlerConstants::kSize == 1 * kPointerSize); |
| 3905 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize); | 3894 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize); |
| 3906 | 3895 |
| 3907 // Link the current handler as the next handler. | 3896 // Link the current handler as the next handler. |
| 3908 li(t2, Operand(ExternalReference(Isolate::kHandlerAddress, isolate()))); | 3897 li(t2, Operand(ExternalReference(Isolate::kHandlerAddress, isolate()))); |
| (...skipping 2617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6526 if (mag.shift > 0) sra(result, result, mag.shift); | 6515 if (mag.shift > 0) sra(result, result, mag.shift); |
| 6527 srl(at, dividend, 31); | 6516 srl(at, dividend, 31); |
| 6528 Addu(result, result, Operand(at)); | 6517 Addu(result, result, Operand(at)); |
| 6529 } | 6518 } |
| 6530 | 6519 |
| 6531 | 6520 |
| 6532 } // namespace internal | 6521 } // namespace internal |
| 6533 } // namespace v8 | 6522 } // namespace v8 |
| 6534 | 6523 |
| 6535 #endif // V8_TARGET_ARCH_MIPS | 6524 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |