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 #if V8_TARGET_ARCH_X64 | 5 #if V8_TARGET_ARCH_X64 |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/base/division-by-constant.h" | 8 #include "src/base/division-by-constant.h" |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 bind(&done); | 246 bind(&done); |
247 } | 247 } |
248 } | 248 } |
249 | 249 |
250 | 250 |
251 void MacroAssembler::InNewSpace(Register object, | 251 void MacroAssembler::InNewSpace(Register object, |
252 Register scratch, | 252 Register scratch, |
253 Condition cc, | 253 Condition cc, |
254 Label* branch, | 254 Label* branch, |
255 Label::Distance distance) { | 255 Label::Distance distance) { |
256 const int mask = | 256 CheckPageFlag(object, scratch, MemoryChunk::kIsInNewSpaceMask, cc, branch, |
257 (1 << MemoryChunk::IN_FROM_SPACE) | (1 << MemoryChunk::IN_TO_SPACE); | 257 distance); |
258 CheckPageFlag(object, scratch, mask, cc, branch, distance); | |
259 } | 258 } |
260 | 259 |
261 | 260 |
262 void MacroAssembler::RecordWriteField( | 261 void MacroAssembler::RecordWriteField( |
263 Register object, | 262 Register object, |
264 int offset, | 263 int offset, |
265 Register value, | 264 Register value, |
266 Register dst, | 265 Register dst, |
267 SaveFPRegsMode save_fp, | 266 SaveFPRegsMode save_fp, |
268 RememberedSetAction remembered_set_action, | 267 RememberedSetAction remembered_set_action, |
(...skipping 5554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5823 movl(rax, dividend); | 5822 movl(rax, dividend); |
5824 shrl(rax, Immediate(31)); | 5823 shrl(rax, Immediate(31)); |
5825 addl(rdx, rax); | 5824 addl(rdx, rax); |
5826 } | 5825 } |
5827 | 5826 |
5828 | 5827 |
5829 } // namespace internal | 5828 } // namespace internal |
5830 } // namespace v8 | 5829 } // namespace v8 |
5831 | 5830 |
5832 #endif // V8_TARGET_ARCH_X64 | 5831 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |