| OLD | NEW |
| 1 | 1 |
| 2 // Copyright 2012 the V8 project authors. All rights reserved. | 2 // Copyright 2012 the V8 project authors. All rights reserved. |
| 3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
| 4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
| 5 | 5 |
| 6 #include <limits.h> // For LONG_MIN, LONG_MAX. | 6 #include <limits.h> // For LONG_MIN, LONG_MAX. |
| 7 | 7 |
| 8 #if V8_TARGET_ARCH_MIPS | 8 #if V8_TARGET_ARCH_MIPS |
| 9 | 9 |
| 10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 int register_offset = SafepointRegisterStackIndex(reg.code()) * kPointerSize; | 152 int register_offset = SafepointRegisterStackIndex(reg.code()) * kPointerSize; |
| 153 return MemOperand(sp, doubles_size + register_offset); | 153 return MemOperand(sp, doubles_size + register_offset); |
| 154 } | 154 } |
| 155 | 155 |
| 156 | 156 |
| 157 void MacroAssembler::InNewSpace(Register object, | 157 void MacroAssembler::InNewSpace(Register object, |
| 158 Register scratch, | 158 Register scratch, |
| 159 Condition cc, | 159 Condition cc, |
| 160 Label* branch) { | 160 Label* branch) { |
| 161 DCHECK(cc == eq || cc == ne); | 161 DCHECK(cc == eq || cc == ne); |
| 162 And(scratch, object, Operand(ExternalReference::new_space_mask(isolate()))); | 162 const int mask = |
| 163 Branch(branch, cc, scratch, | 163 1 << MemoryChunk::IN_FROM_SPACE | 1 << MemoryChunk::IN_TO_SPACE; |
| 164 Operand(ExternalReference::new_space_start(isolate()))); | 164 CheckPageFlag(object, scratch, mask, cc, branch); |
| 165 } | 165 } |
| 166 | 166 |
| 167 | 167 |
| 168 // Clobbers object, dst, value, and ra, if (ra_status == kRAHasBeenSaved) | 168 // Clobbers object, dst, value, and ra, if (ra_status == kRAHasBeenSaved) |
| 169 // The register 'object' contains a heap object pointer. The heap object | 169 // The register 'object' contains a heap object pointer. The heap object |
| 170 // tag is shifted away. | 170 // tag is shifted away. |
| 171 void MacroAssembler::RecordWriteField( | 171 void MacroAssembler::RecordWriteField( |
| 172 Register object, | 172 Register object, |
| 173 int offset, | 173 int offset, |
| 174 Register value, | 174 Register value, |
| (...skipping 5660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5835 if (mag.shift > 0) sra(result, result, mag.shift); | 5835 if (mag.shift > 0) sra(result, result, mag.shift); |
| 5836 srl(at, dividend, 31); | 5836 srl(at, dividend, 31); |
| 5837 Addu(result, result, Operand(at)); | 5837 Addu(result, result, Operand(at)); |
| 5838 } | 5838 } |
| 5839 | 5839 |
| 5840 | 5840 |
| 5841 } // namespace internal | 5841 } // namespace internal |
| 5842 } // namespace v8 | 5842 } // namespace v8 |
| 5843 | 5843 |
| 5844 #endif // V8_TARGET_ARCH_MIPS | 5844 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |