| 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 3073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3084 Daddu(sp, sp, Operand(StackHandlerConstants::kSize - kPointerSize)); | 3084 Daddu(sp, sp, Operand(StackHandlerConstants::kSize - kPointerSize)); |
| 3085 li(at, Operand(ExternalReference(Isolate::kHandlerAddress, isolate()))); | 3085 li(at, Operand(ExternalReference(Isolate::kHandlerAddress, isolate()))); |
| 3086 sd(a1, MemOperand(at)); | 3086 sd(a1, MemOperand(at)); |
| 3087 } | 3087 } |
| 3088 | 3088 |
| 3089 | 3089 |
| 3090 void MacroAssembler::JumpToHandlerEntry() { | 3090 void MacroAssembler::JumpToHandlerEntry() { |
| 3091 // Compute the handler entry address and jump to it. The handler table is | 3091 // Compute the handler entry address and jump to it. The handler table is |
| 3092 // a fixed array of (smi-tagged) code offsets. | 3092 // a fixed array of (smi-tagged) code offsets. |
| 3093 // v0 = exception, a1 = code object, a2 = state. | 3093 // v0 = exception, a1 = code object, a2 = state. |
| 3094 Uld(a3, FieldMemOperand(a1, Code::kHandlerTableOffset)); | 3094 ld(a3, FieldMemOperand(a1, Code::kHandlerTableOffset)); |
| 3095 Daddu(a3, a3, Operand(FixedArray::kHeaderSize - kHeapObjectTag)); | 3095 Daddu(a3, a3, Operand(FixedArray::kHeaderSize - kHeapObjectTag)); |
| 3096 dsrl(a2, a2, StackHandler::kKindWidth); // Handler index. | 3096 dsrl(a2, a2, StackHandler::kKindWidth); // Handler index. |
| 3097 dsll(a2, a2, kPointerSizeLog2); | 3097 dsll(a2, a2, kPointerSizeLog2); |
| 3098 Daddu(a2, a3, a2); | 3098 Daddu(a2, a3, a2); |
| 3099 ld(a2, MemOperand(a2)); // Smi-tagged offset. | 3099 ld(a2, MemOperand(a2)); // Smi-tagged offset. |
| 3100 Daddu(a1, a1, Operand(Code::kHeaderSize - kHeapObjectTag)); // Code start. | 3100 Daddu(a1, a1, Operand(Code::kHeaderSize - kHeapObjectTag)); // Code start. |
| 3101 dsra32(t9, a2, 0); | 3101 dsra32(t9, a2, 0); |
| 3102 Daddu(t9, t9, a1); | 3102 Daddu(t9, t9, a1); |
| 3103 Jump(t9); // Jump. | 3103 Jump(t9); // Jump. |
| 3104 } | 3104 } |
| (...skipping 2982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6087 } | 6087 } |
| 6088 if (mag.shift > 0) sra(result, result, mag.shift); | 6088 if (mag.shift > 0) sra(result, result, mag.shift); |
| 6089 srl(at, dividend, 31); | 6089 srl(at, dividend, 31); |
| 6090 Addu(result, result, Operand(at)); | 6090 Addu(result, result, Operand(at)); |
| 6091 } | 6091 } |
| 6092 | 6092 |
| 6093 | 6093 |
| 6094 } } // namespace v8::internal | 6094 } } // namespace v8::internal |
| 6095 | 6095 |
| 6096 #endif // V8_TARGET_ARCH_MIPS64 | 6096 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |