| 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 3253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3264 push(a5); | 3264 push(a5); |
| 3265 | 3265 |
| 3266 // Set this new handler as the current one. | 3266 // Set this new handler as the current one. |
| 3267 sd(sp, MemOperand(a6)); | 3267 sd(sp, MemOperand(a6)); |
| 3268 } | 3268 } |
| 3269 | 3269 |
| 3270 | 3270 |
| 3271 void MacroAssembler::PopStackHandler() { | 3271 void MacroAssembler::PopStackHandler() { |
| 3272 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0); | 3272 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0); |
| 3273 pop(a1); | 3273 pop(a1); |
| 3274 Daddu(sp, sp, Operand(StackHandlerConstants::kSize - kPointerSize)); | 3274 Daddu(sp, sp, Operand(static_cast<int64_t>(StackHandlerConstants::kSize - |
| 3275 kPointerSize))); |
| 3275 li(at, Operand(ExternalReference(Isolate::kHandlerAddress, isolate()))); | 3276 li(at, Operand(ExternalReference(Isolate::kHandlerAddress, isolate()))); |
| 3276 sd(a1, MemOperand(at)); | 3277 sd(a1, MemOperand(at)); |
| 3277 } | 3278 } |
| 3278 | 3279 |
| 3279 | 3280 |
| 3280 void MacroAssembler::Allocate(int object_size, | 3281 void MacroAssembler::Allocate(int object_size, |
| 3281 Register result, | 3282 Register result, |
| 3282 Register scratch1, | 3283 Register scratch1, |
| 3283 Register scratch2, | 3284 Register scratch2, |
| 3284 Label* gc_required, | 3285 Label* gc_required, |
| (...skipping 2828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6113 } | 6114 } |
| 6114 if (mag.shift > 0) sra(result, result, mag.shift); | 6115 if (mag.shift > 0) sra(result, result, mag.shift); |
| 6115 srl(at, dividend, 31); | 6116 srl(at, dividend, 31); |
| 6116 Addu(result, result, Operand(at)); | 6117 Addu(result, result, Operand(at)); |
| 6117 } | 6118 } |
| 6118 | 6119 |
| 6119 | 6120 |
| 6120 } } // namespace v8::internal | 6121 } } // namespace v8::internal |
| 6121 | 6122 |
| 6122 #endif // V8_TARGET_ARCH_MIPS64 | 6123 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |