| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 Heap::RootListIndex index, | 82 Heap::RootListIndex index, |
| 83 Condition cond, | 83 Condition cond, |
| 84 Register src1, const Operand& src2) { | 84 Register src1, const Operand& src2) { |
| 85 Branch(2, NegateCondition(cond), src1, src2); | 85 Branch(2, NegateCondition(cond), src1, src2); |
| 86 ld(destination, MemOperand(s6, index << kPointerSizeLog2)); | 86 ld(destination, MemOperand(s6, index << kPointerSizeLog2)); |
| 87 } | 87 } |
| 88 | 88 |
| 89 | 89 |
| 90 void MacroAssembler::StoreRoot(Register source, | 90 void MacroAssembler::StoreRoot(Register source, |
| 91 Heap::RootListIndex index) { | 91 Heap::RootListIndex index) { |
| 92 DCHECK(Heap::RootCanBeWrittenAfterInitialization(index)); |
| 92 sd(source, MemOperand(s6, index << kPointerSizeLog2)); | 93 sd(source, MemOperand(s6, index << kPointerSizeLog2)); |
| 93 } | 94 } |
| 94 | 95 |
| 95 | 96 |
| 96 void MacroAssembler::StoreRoot(Register source, | 97 void MacroAssembler::StoreRoot(Register source, |
| 97 Heap::RootListIndex index, | 98 Heap::RootListIndex index, |
| 98 Condition cond, | 99 Condition cond, |
| 99 Register src1, const Operand& src2) { | 100 Register src1, const Operand& src2) { |
| 101 DCHECK(Heap::RootCanBeWrittenAfterInitialization(index)); |
| 100 Branch(2, NegateCondition(cond), src1, src2); | 102 Branch(2, NegateCondition(cond), src1, src2); |
| 101 sd(source, MemOperand(s6, index << kPointerSizeLog2)); | 103 sd(source, MemOperand(s6, index << kPointerSizeLog2)); |
| 102 } | 104 } |
| 103 | 105 |
| 104 | 106 |
| 105 // Push and pop all registers that can hold pointers. | 107 // Push and pop all registers that can hold pointers. |
| 106 void MacroAssembler::PushSafepointRegisters() { | 108 void MacroAssembler::PushSafepointRegisters() { |
| 107 // Safepoints expect a block of kNumSafepointRegisters values on the | 109 // Safepoints expect a block of kNumSafepointRegisters values on the |
| 108 // stack, so adjust the stack for unsaved registers. | 110 // stack, so adjust the stack for unsaved registers. |
| 109 const int num_unsaved = kNumSafepointRegisters - kNumSafepointSavedRegisters; | 111 const int num_unsaved = kNumSafepointRegisters - kNumSafepointSavedRegisters; |
| (...skipping 5987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6097 } | 6099 } |
| 6098 if (mag.shift > 0) sra(result, result, mag.shift); | 6100 if (mag.shift > 0) sra(result, result, mag.shift); |
| 6099 srl(at, dividend, 31); | 6101 srl(at, dividend, 31); |
| 6100 Addu(result, result, Operand(at)); | 6102 Addu(result, result, Operand(at)); |
| 6101 } | 6103 } |
| 6102 | 6104 |
| 6103 | 6105 |
| 6104 } } // namespace v8::internal | 6106 } } // namespace v8::internal |
| 6105 | 6107 |
| 6106 #endif // V8_TARGET_ARCH_MIPS64 | 6108 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |