| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
| 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 1385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1396 void MacroAssembler::LoadRoot(CPURegister destination, | 1396 void MacroAssembler::LoadRoot(CPURegister destination, |
| 1397 Heap::RootListIndex index) { | 1397 Heap::RootListIndex index) { |
| 1398 // TODO(jbramley): Most root values are constants, and can be synthesized | 1398 // TODO(jbramley): Most root values are constants, and can be synthesized |
| 1399 // without a load. Refer to the ARM back end for details. | 1399 // without a load. Refer to the ARM back end for details. |
| 1400 Ldr(destination, MemOperand(root, index << kPointerSizeLog2)); | 1400 Ldr(destination, MemOperand(root, index << kPointerSizeLog2)); |
| 1401 } | 1401 } |
| 1402 | 1402 |
| 1403 | 1403 |
| 1404 void MacroAssembler::StoreRoot(Register source, | 1404 void MacroAssembler::StoreRoot(Register source, |
| 1405 Heap::RootListIndex index) { | 1405 Heap::RootListIndex index) { |
| 1406 DCHECK(Heap::RootCanBeWrittenAfterInitialization(index)); |
| 1406 Str(source, MemOperand(root, index << kPointerSizeLog2)); | 1407 Str(source, MemOperand(root, index << kPointerSizeLog2)); |
| 1407 } | 1408 } |
| 1408 | 1409 |
| 1409 | 1410 |
| 1410 void MacroAssembler::LoadTrueFalseRoots(Register true_root, | 1411 void MacroAssembler::LoadTrueFalseRoots(Register true_root, |
| 1411 Register false_root) { | 1412 Register false_root) { |
| 1412 STATIC_ASSERT((Heap::kTrueValueRootIndex + 1) == Heap::kFalseValueRootIndex); | 1413 STATIC_ASSERT((Heap::kTrueValueRootIndex + 1) == Heap::kFalseValueRootIndex); |
| 1413 Ldp(true_root, false_root, | 1414 Ldp(true_root, false_root, |
| 1414 MemOperand(root, Heap::kTrueValueRootIndex << kPointerSizeLog2)); | 1415 MemOperand(root, Heap::kTrueValueRootIndex << kPointerSizeLog2)); |
| 1415 } | 1416 } |
| (...skipping 3749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5165 } | 5166 } |
| 5166 } | 5167 } |
| 5167 | 5168 |
| 5168 | 5169 |
| 5169 #undef __ | 5170 #undef __ |
| 5170 | 5171 |
| 5171 | 5172 |
| 5172 } } // namespace v8::internal | 5173 } } // namespace v8::internal |
| 5173 | 5174 |
| 5174 #endif // V8_TARGET_ARCH_ARM64 | 5175 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |