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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 int register_offset = SafepointRegisterStackIndex(reg.code()) * kPointerSize; | 154 int register_offset = SafepointRegisterStackIndex(reg.code()) * kPointerSize; |
155 return MemOperand(sp, doubles_size + register_offset); | 155 return MemOperand(sp, doubles_size + register_offset); |
156 } | 156 } |
157 | 157 |
158 | 158 |
159 void MacroAssembler::InNewSpace(Register object, | 159 void MacroAssembler::InNewSpace(Register object, |
160 Register scratch, | 160 Register scratch, |
161 Condition cc, | 161 Condition cc, |
162 Label* branch) { | 162 Label* branch) { |
163 DCHECK(cc == eq || cc == ne); | 163 DCHECK(cc == eq || cc == ne); |
164 And(scratch, object, Operand(ExternalReference::new_space_mask(isolate()))); | 164 const int mask = |
165 Branch(branch, cc, scratch, | 165 1 << MemoryChunk::IN_FROM_SPACE | 1 << MemoryChunk::IN_TO_SPACE; |
166 Operand(ExternalReference::new_space_start(isolate()))); | 166 CheckPageFlag(object, scratch, mask, cc, branch); |
167 } | 167 } |
168 | 168 |
169 | 169 |
170 // Clobbers object, dst, value, and ra, if (ra_status == kRAHasBeenSaved) | 170 // Clobbers object, dst, value, and ra, if (ra_status == kRAHasBeenSaved) |
171 // The register 'object' contains a heap object pointer. The heap object | 171 // The register 'object' contains a heap object pointer. The heap object |
172 // tag is shifted away. | 172 // tag is shifted away. |
173 void MacroAssembler::RecordWriteField( | 173 void MacroAssembler::RecordWriteField( |
174 Register object, | 174 Register object, |
175 int offset, | 175 int offset, |
176 Register value, | 176 Register value, |
(...skipping 6370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6547 if (mag.shift > 0) sra(result, result, mag.shift); | 6547 if (mag.shift > 0) sra(result, result, mag.shift); |
6548 srl(at, dividend, 31); | 6548 srl(at, dividend, 31); |
6549 Addu(result, result, Operand(at)); | 6549 Addu(result, result, Operand(at)); |
6550 } | 6550 } |
6551 | 6551 |
6552 | 6552 |
6553 } // namespace internal | 6553 } // namespace internal |
6554 } // namespace v8 | 6554 } // namespace v8 |
6555 | 6555 |
6556 #endif // V8_TARGET_ARCH_MIPS64 | 6556 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |