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 4032 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4043 | 4043 |
4044 void MacroAssembler::DebugBreak() { | 4044 void MacroAssembler::DebugBreak() { |
4045 PrepareCEntryArgs(0); | 4045 PrepareCEntryArgs(0); |
4046 PrepareCEntryFunction( | 4046 PrepareCEntryFunction( |
4047 ExternalReference(Runtime::kHandleDebuggerStatement, isolate())); | 4047 ExternalReference(Runtime::kHandleDebuggerStatement, isolate())); |
4048 CEntryStub ces(isolate(), 1); | 4048 CEntryStub ces(isolate(), 1); |
4049 DCHECK(AllowThisStubCall(&ces)); | 4049 DCHECK(AllowThisStubCall(&ces)); |
4050 Call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT); | 4050 Call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT); |
4051 } | 4051 } |
4052 | 4052 |
| 4053 void MacroAssembler::MaybeDropFrames() { |
| 4054 // Check whether we need to drop frames to restart a function on the stack. |
| 4055 ExternalReference restart_fp = |
| 4056 ExternalReference::debug_restart_fp_address(isolate()); |
| 4057 li(a1, Operand(restart_fp)); |
| 4058 ld(a1, MemOperand(a1)); |
| 4059 Jump(isolate()->builtins()->FrameDropperTrampoline(), RelocInfo::CODE_TARGET, |
| 4060 ne, a1, Operand(zero_reg)); |
| 4061 } |
4053 | 4062 |
4054 // --------------------------------------------------------------------------- | 4063 // --------------------------------------------------------------------------- |
4055 // Exception handling. | 4064 // Exception handling. |
4056 | 4065 |
4057 void MacroAssembler::PushStackHandler() { | 4066 void MacroAssembler::PushStackHandler() { |
4058 // Adjust this code if not the case. | 4067 // Adjust this code if not the case. |
4059 STATIC_ASSERT(StackHandlerConstants::kSize == 1 * kPointerSize); | 4068 STATIC_ASSERT(StackHandlerConstants::kSize == 1 * kPointerSize); |
4060 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize); | 4069 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize); |
4061 | 4070 |
4062 // Link the current handler as the next handler. | 4071 // Link the current handler as the next handler. |
(...skipping 2869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6932 if (mag.shift > 0) sra(result, result, mag.shift); | 6941 if (mag.shift > 0) sra(result, result, mag.shift); |
6933 srl(at, dividend, 31); | 6942 srl(at, dividend, 31); |
6934 Addu(result, result, Operand(at)); | 6943 Addu(result, result, Operand(at)); |
6935 } | 6944 } |
6936 | 6945 |
6937 | 6946 |
6938 } // namespace internal | 6947 } // namespace internal |
6939 } // namespace v8 | 6948 } // namespace v8 |
6940 | 6949 |
6941 #endif // V8_TARGET_ARCH_MIPS64 | 6950 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |