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

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

Issue 2090983002: Revert of Reland [heap] Avoid the use of cells to point from code to new-space objects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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/arm64/assembler-arm64-inl.h ('k') | src/compiler.cc » ('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 #if V8_TARGET_ARCH_ARM64 5 #if V8_TARGET_ARCH_ARM64
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 1407 matching lines...) Expand 10 before | Expand all | Expand 10 after
1418 void MacroAssembler::LoadTrueFalseRoots(Register true_root, 1418 void MacroAssembler::LoadTrueFalseRoots(Register true_root,
1419 Register false_root) { 1419 Register false_root) {
1420 STATIC_ASSERT((Heap::kTrueValueRootIndex + 1) == Heap::kFalseValueRootIndex); 1420 STATIC_ASSERT((Heap::kTrueValueRootIndex + 1) == Heap::kFalseValueRootIndex);
1421 Ldp(true_root, false_root, 1421 Ldp(true_root, false_root,
1422 MemOperand(root, Heap::kTrueValueRootIndex << kPointerSizeLog2)); 1422 MemOperand(root, Heap::kTrueValueRootIndex << kPointerSizeLog2));
1423 } 1423 }
1424 1424
1425 1425
1426 void MacroAssembler::LoadHeapObject(Register result, 1426 void MacroAssembler::LoadHeapObject(Register result,
1427 Handle<HeapObject> object) { 1427 Handle<HeapObject> object) {
1428 Mov(result, Operand(object)); 1428 AllowDeferredHandleDereference using_raw_address;
1429 if (isolate()->heap()->InNewSpace(*object)) {
1430 Handle<Cell> cell = isolate()->factory()->NewCell(object);
1431 Mov(result, Operand(cell));
1432 Ldr(result, FieldMemOperand(result, Cell::kValueOffset));
1433 } else {
1434 Mov(result, Operand(object));
1435 }
1429 } 1436 }
1430 1437
1431 1438
1432 void MacroAssembler::LoadInstanceDescriptors(Register map, 1439 void MacroAssembler::LoadInstanceDescriptors(Register map,
1433 Register descriptors) { 1440 Register descriptors) {
1434 Ldr(descriptors, FieldMemOperand(map, Map::kDescriptorsOffset)); 1441 Ldr(descriptors, FieldMemOperand(map, Map::kDescriptorsOffset));
1435 } 1442 }
1436 1443
1437 1444
1438 void MacroAssembler::NumberOfOwnDescriptors(Register dst, Register map) { 1445 void MacroAssembler::NumberOfOwnDescriptors(Register dst, Register map) {
(...skipping 3700 matching lines...) Expand 10 before | Expand all | Expand 10 after
5139 } 5146 }
5140 5147
5141 5148
5142 #undef __ 5149 #undef __
5143 5150
5144 5151
5145 } // namespace internal 5152 } // namespace internal
5146 } // namespace v8 5153 } // namespace v8
5147 5154
5148 #endif // V8_TARGET_ARCH_ARM64 5155 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm64/assembler-arm64-inl.h ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698