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 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS64 | 9 #if V8_TARGET_ARCH_MIPS64 |
10 | 10 |
(...skipping 3346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3357 dsll32(dst, dst, 0); | 3357 dsll32(dst, dst, 0); |
3358 or_(dst, dst, scratch); | 3358 or_(dst, dst, scratch); |
3359 } | 3359 } |
3360 | 3360 |
3361 | 3361 |
3362 void MacroAssembler::DebugBreak() { | 3362 void MacroAssembler::DebugBreak() { |
3363 PrepareCEntryArgs(0); | 3363 PrepareCEntryArgs(0); |
3364 PrepareCEntryFunction(ExternalReference(Runtime::kDebugBreak, isolate())); | 3364 PrepareCEntryFunction(ExternalReference(Runtime::kDebugBreak, isolate())); |
3365 CEntryStub ces(isolate(), 1); | 3365 CEntryStub ces(isolate(), 1); |
3366 DCHECK(AllowThisStubCall(&ces)); | 3366 DCHECK(AllowThisStubCall(&ces)); |
3367 Call(ces.GetCode(), RelocInfo::DEBUG_BREAK); | 3367 Call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT); |
3368 } | 3368 } |
3369 | 3369 |
3370 | 3370 |
3371 // --------------------------------------------------------------------------- | 3371 // --------------------------------------------------------------------------- |
3372 // Exception handling. | 3372 // Exception handling. |
3373 | 3373 |
3374 void MacroAssembler::PushStackHandler() { | 3374 void MacroAssembler::PushStackHandler() { |
3375 // Adjust this code if not the case. | 3375 // Adjust this code if not the case. |
3376 STATIC_ASSERT(StackHandlerConstants::kSize == 1 * kPointerSize); | 3376 STATIC_ASSERT(StackHandlerConstants::kSize == 1 * kPointerSize); |
3377 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize); | 3377 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize); |
(...skipping 2978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6356 if (mag.shift > 0) sra(result, result, mag.shift); | 6356 if (mag.shift > 0) sra(result, result, mag.shift); |
6357 srl(at, dividend, 31); | 6357 srl(at, dividend, 31); |
6358 Addu(result, result, Operand(at)); | 6358 Addu(result, result, Operand(at)); |
6359 } | 6359 } |
6360 | 6360 |
6361 | 6361 |
6362 } // namespace internal | 6362 } // namespace internal |
6363 } // namespace v8 | 6363 } // namespace v8 |
6364 | 6364 |
6365 #endif // V8_TARGET_ARCH_MIPS64 | 6365 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |