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_ARM | 7 #if V8_TARGET_ARCH_ARM |
8 | 8 |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/base/division-by-constant.h" | 10 #include "src/base/division-by-constant.h" |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 DCHECK(Heap::RootCanBeWrittenAfterInitialization(index)); | 423 DCHECK(Heap::RootCanBeWrittenAfterInitialization(index)); |
424 str(source, MemOperand(kRootRegister, index << kPointerSizeLog2), cond); | 424 str(source, MemOperand(kRootRegister, index << kPointerSizeLog2), cond); |
425 } | 425 } |
426 | 426 |
427 | 427 |
428 void MacroAssembler::InNewSpace(Register object, | 428 void MacroAssembler::InNewSpace(Register object, |
429 Register scratch, | 429 Register scratch, |
430 Condition cond, | 430 Condition cond, |
431 Label* branch) { | 431 Label* branch) { |
432 DCHECK(cond == eq || cond == ne); | 432 DCHECK(cond == eq || cond == ne); |
433 const int mask = | 433 CheckPageFlag(object, scratch, MemoryChunk::kIsInNewSpaceMask, cond, branch); |
434 (1 << MemoryChunk::IN_FROM_SPACE) | (1 << MemoryChunk::IN_TO_SPACE); | |
435 CheckPageFlag(object, scratch, mask, cond, branch); | |
436 } | 434 } |
437 | 435 |
438 | 436 |
439 void MacroAssembler::RecordWriteField( | 437 void MacroAssembler::RecordWriteField( |
440 Register object, | 438 Register object, |
441 int offset, | 439 int offset, |
442 Register value, | 440 Register value, |
443 Register dst, | 441 Register dst, |
444 LinkRegisterStatus lr_status, | 442 LinkRegisterStatus lr_status, |
445 SaveFPRegsMode save_fp, | 443 SaveFPRegsMode save_fp, |
(...skipping 3582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4028 } | 4026 } |
4029 } | 4027 } |
4030 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift)); | 4028 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift)); |
4031 add(result, result, Operand(dividend, LSR, 31)); | 4029 add(result, result, Operand(dividend, LSR, 31)); |
4032 } | 4030 } |
4033 | 4031 |
4034 } // namespace internal | 4032 } // namespace internal |
4035 } // namespace v8 | 4033 } // namespace v8 |
4036 | 4034 |
4037 #endif // V8_TARGET_ARCH_ARM | 4035 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |