| 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_ARM | 9 #if V8_TARGET_ARCH_ARM |
| 10 | 10 |
| (...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 mov(destination, Operand(root), LeaveCC, cond); | 432 mov(destination, Operand(root), LeaveCC, cond); |
| 433 return; | 433 return; |
| 434 } | 434 } |
| 435 ldr(destination, MemOperand(kRootRegister, index << kPointerSizeLog2), cond); | 435 ldr(destination, MemOperand(kRootRegister, index << kPointerSizeLog2), cond); |
| 436 } | 436 } |
| 437 | 437 |
| 438 | 438 |
| 439 void MacroAssembler::StoreRoot(Register source, | 439 void MacroAssembler::StoreRoot(Register source, |
| 440 Heap::RootListIndex index, | 440 Heap::RootListIndex index, |
| 441 Condition cond) { | 441 Condition cond) { |
| 442 DCHECK(Heap::RootCanBeWrittenAfterInitialization(index)); |
| 442 str(source, MemOperand(kRootRegister, index << kPointerSizeLog2), cond); | 443 str(source, MemOperand(kRootRegister, index << kPointerSizeLog2), cond); |
| 443 } | 444 } |
| 444 | 445 |
| 445 | 446 |
| 446 void MacroAssembler::InNewSpace(Register object, | 447 void MacroAssembler::InNewSpace(Register object, |
| 447 Register scratch, | 448 Register scratch, |
| 448 Condition cond, | 449 Condition cond, |
| 449 Label* branch) { | 450 Label* branch) { |
| 450 DCHECK(cond == eq || cond == ne); | 451 DCHECK(cond == eq || cond == ne); |
| 451 and_(scratch, object, Operand(ExternalReference::new_space_mask(isolate()))); | 452 and_(scratch, object, Operand(ExternalReference::new_space_mask(isolate()))); |
| (...skipping 3445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3897 } | 3898 } |
| 3898 } | 3899 } |
| 3899 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift)); | 3900 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift)); |
| 3900 add(result, result, Operand(dividend, LSR, 31)); | 3901 add(result, result, Operand(dividend, LSR, 31)); |
| 3901 } | 3902 } |
| 3902 | 3903 |
| 3903 } // namespace internal | 3904 } // namespace internal |
| 3904 } // namespace v8 | 3905 } // namespace v8 |
| 3905 | 3906 |
| 3906 #endif // V8_TARGET_ARCH_ARM | 3907 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |