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

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

Issue 2912863006: Inline instance object hash code into object header on 64 bit. (Closed)
Patch Set: Add assembler tests and other feedback from Ryan Created 3 years, 6 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 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after
1144 __ str(R1, Address(R9, Heap::TopOffset(space))); 1144 __ str(R1, Address(R9, Heap::TopOffset(space)));
1145 1145
1146 // Load the address of the allocation stats table. We split up the load 1146 // Load the address of the allocation stats table. We split up the load
1147 // and the increment so that the dependent load is not too nearby. 1147 // and the increment so that the dependent load is not too nearby.
1148 NOT_IN_PRODUCT(__ LoadAllocationStatsAddress(R9, cls.id())); 1148 NOT_IN_PRODUCT(__ LoadAllocationStatsAddress(R9, cls.id()));
1149 1149
1150 // R0: new object start. 1150 // R0: new object start.
1151 // R1: next object start. 1151 // R1: next object start.
1152 // R9: allocation stats table. 1152 // R9: allocation stats table.
1153 // Set the tags. 1153 // Set the tags.
1154 uword tags = 0; 1154 uint32_t tags = 0;
1155 tags = RawObject::SizeTag::update(instance_size, tags); 1155 tags = RawObject::SizeTag::update(instance_size, tags);
1156 ASSERT(cls.id() != kIllegalCid); 1156 ASSERT(cls.id() != kIllegalCid);
1157 tags = RawObject::ClassIdTag::update(cls.id(), tags); 1157 tags = RawObject::ClassIdTag::update(cls.id(), tags);
1158 __ LoadImmediate(R2, tags); 1158 __ LoadImmediate(R2, tags);
1159 __ str(R2, Address(R0, Instance::tags_offset())); 1159 __ str(R2, Address(R0, Instance::tags_offset()));
1160 __ add(R0, R0, Operand(kHeapObjectTag)); 1160 __ add(R0, R0, Operand(kHeapObjectTag));
1161 1161
1162 // Initialize the remaining words of the object. 1162 // Initialize the remaining words of the object.
1163 __ LoadObject(R2, Object::null_object()); 1163 __ LoadObject(R2, Object::null_object());
1164 1164
(...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after
2326 } 2326 }
2327 2327
2328 2328
2329 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { 2329 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) {
2330 __ bkpt(0); 2330 __ bkpt(0);
2331 } 2331 }
2332 2332
2333 } // namespace dart 2333 } // namespace dart
2334 2334
2335 #endif // defined TARGET_ARCH_ARM 2335 #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