| 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_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
| 8 | 8 |
| 9 #include "src/base/division-by-constant.h" | 9 #include "src/base/division-by-constant.h" |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| (...skipping 4022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4033 void MacroAssembler::PopRegisterAsTwoSmis(Register dst, Register scratch) { | 4033 void MacroAssembler::PopRegisterAsTwoSmis(Register dst, Register scratch) { |
| 4034 DCHECK(!dst.is(scratch)); | 4034 DCHECK(!dst.is(scratch)); |
| 4035 pop(scratch); | 4035 pop(scratch); |
| 4036 dsrl32(scratch, scratch, 0); | 4036 dsrl32(scratch, scratch, 0); |
| 4037 pop(dst); | 4037 pop(dst); |
| 4038 dsrl32(dst, dst, 0); | 4038 dsrl32(dst, dst, 0); |
| 4039 dsll32(dst, dst, 0); | 4039 dsll32(dst, dst, 0); |
| 4040 or_(dst, dst, scratch); | 4040 or_(dst, dst, scratch); |
| 4041 } | 4041 } |
| 4042 | 4042 |
| 4043 | |
| 4044 void MacroAssembler::DebugBreak() { | |
| 4045 PrepareCEntryArgs(0); | |
| 4046 PrepareCEntryFunction( | |
| 4047 ExternalReference(Runtime::kHandleDebuggerStatement, isolate())); | |
| 4048 CEntryStub ces(isolate(), 1); | |
| 4049 DCHECK(AllowThisStubCall(&ces)); | |
| 4050 Call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT); | |
| 4051 } | |
| 4052 | |
| 4053 | |
| 4054 // --------------------------------------------------------------------------- | 4043 // --------------------------------------------------------------------------- |
| 4055 // Exception handling. | 4044 // Exception handling. |
| 4056 | 4045 |
| 4057 void MacroAssembler::PushStackHandler() { | 4046 void MacroAssembler::PushStackHandler() { |
| 4058 // Adjust this code if not the case. | 4047 // Adjust this code if not the case. |
| 4059 STATIC_ASSERT(StackHandlerConstants::kSize == 1 * kPointerSize); | 4048 STATIC_ASSERT(StackHandlerConstants::kSize == 1 * kPointerSize); |
| 4060 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize); | 4049 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize); |
| 4061 | 4050 |
| 4062 // Link the current handler as the next handler. | 4051 // Link the current handler as the next handler. |
| 4063 li(a6, Operand(ExternalReference(Isolate::kHandlerAddress, isolate()))); | 4052 li(a6, Operand(ExternalReference(Isolate::kHandlerAddress, isolate()))); |
| (...skipping 2868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6932 if (mag.shift > 0) sra(result, result, mag.shift); | 6921 if (mag.shift > 0) sra(result, result, mag.shift); |
| 6933 srl(at, dividend, 31); | 6922 srl(at, dividend, 31); |
| 6934 Addu(result, result, Operand(at)); | 6923 Addu(result, result, Operand(at)); |
| 6935 } | 6924 } |
| 6936 | 6925 |
| 6937 | 6926 |
| 6938 } // namespace internal | 6927 } // namespace internal |
| 6939 } // namespace v8 | 6928 } // namespace v8 |
| 6940 | 6929 |
| 6941 #endif // V8_TARGET_ARCH_MIPS64 | 6930 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |