Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/arm64/macro-assembler-arm64.cc

Issue 979003003: Only reference constant root list entries in the snapshot. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix windows build Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/heap/heap.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698