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

Side by Side Diff: runtime/vm/stub_code_arm.cc

Issue 2962543002: Revert "VM: Reland Inline instance object hash code into object header on 64bit." (Closed)
Patch Set: Created 3 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 | « runtime/vm/snapshot.cc ('k') | runtime/vm/stub_code_arm64.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 (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/globals.h" 5 #include "vm/globals.h"
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after
1145 __ str(R1, Address(R9, Heap::TopOffset(space))); 1145 __ str(R1, Address(R9, Heap::TopOffset(space)));
1146 1146
1147 // Load the address of the allocation stats table. We split up the load 1147 // Load the address of the allocation stats table. We split up the load
1148 // and the increment so that the dependent load is not too nearby. 1148 // and the increment so that the dependent load is not too nearby.
1149 NOT_IN_PRODUCT(__ LoadAllocationStatsAddress(R9, cls.id())); 1149 NOT_IN_PRODUCT(__ LoadAllocationStatsAddress(R9, cls.id()));
1150 1150
1151 // R0: new object start. 1151 // R0: new object start.
1152 // R1: next object start. 1152 // R1: next object start.
1153 // R9: allocation stats table. 1153 // R9: allocation stats table.
1154 // Set the tags. 1154 // Set the tags.
1155 uint32_t tags = 0; 1155 uword tags = 0;
1156 tags = RawObject::SizeTag::update(instance_size, tags); 1156 tags = RawObject::SizeTag::update(instance_size, tags);
1157 ASSERT(cls.id() != kIllegalCid); 1157 ASSERT(cls.id() != kIllegalCid);
1158 tags = RawObject::ClassIdTag::update(cls.id(), tags); 1158 tags = RawObject::ClassIdTag::update(cls.id(), tags);
1159 __ LoadImmediate(R2, tags); 1159 __ LoadImmediate(R2, tags);
1160 __ str(R2, Address(R0, Instance::tags_offset())); 1160 __ str(R2, Address(R0, Instance::tags_offset()));
1161 __ add(R0, R0, Operand(kHeapObjectTag)); 1161 __ add(R0, R0, Operand(kHeapObjectTag));
1162 1162
1163 // Initialize the remaining words of the object. 1163 // Initialize the remaining words of the object.
1164 __ LoadObject(R2, Object::null_object()); 1164 __ LoadObject(R2, Object::null_object());
1165 1165
(...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after
2327 } 2327 }
2328 2328
2329 2329
2330 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { 2330 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) {
2331 __ bkpt(0); 2331 __ bkpt(0);
2332 } 2332 }
2333 2333
2334 } // namespace dart 2334 } // namespace dart
2335 2335
2336 #endif // defined TARGET_ARCH_ARM 2336 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/snapshot.cc ('k') | runtime/vm/stub_code_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698