| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |