| 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_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
| 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/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1208 } | 1208 } |
| 1209 // Successfully allocated the object(s), now update top to point to | 1209 // Successfully allocated the object(s), now update top to point to |
| 1210 // next object start and initialize the object. | 1210 // next object start and initialize the object. |
| 1211 __ sw(T3, Address(T5, Heap::TopOffset(space))); | 1211 __ sw(T3, Address(T5, Heap::TopOffset(space))); |
| 1212 NOT_IN_PRODUCT(__ UpdateAllocationStats(cls.id(), T5, space)); | 1212 NOT_IN_PRODUCT(__ UpdateAllocationStats(cls.id(), T5, space)); |
| 1213 | 1213 |
| 1214 // T2: new object start. | 1214 // T2: new object start. |
| 1215 // T3: next object start. | 1215 // T3: next object start. |
| 1216 // T1: new object type arguments (if is_cls_parameterized). | 1216 // T1: new object type arguments (if is_cls_parameterized). |
| 1217 // Set the tags. | 1217 // Set the tags. |
| 1218 uint32_t tags = 0; | 1218 uword tags = 0; |
| 1219 tags = RawObject::SizeTag::update(instance_size, tags); | 1219 tags = RawObject::SizeTag::update(instance_size, tags); |
| 1220 ASSERT(cls.id() != kIllegalCid); | 1220 ASSERT(cls.id() != kIllegalCid); |
| 1221 tags = RawObject::ClassIdTag::update(cls.id(), tags); | 1221 tags = RawObject::ClassIdTag::update(cls.id(), tags); |
| 1222 __ LoadImmediate(T0, tags); | 1222 __ LoadImmediate(T0, tags); |
| 1223 __ sw(T0, Address(T2, Instance::tags_offset())); | 1223 __ sw(T0, Address(T2, Instance::tags_offset())); |
| 1224 | 1224 |
| 1225 __ LoadObject(T7, Object::null_object()); | 1225 __ LoadObject(T7, Object::null_object()); |
| 1226 | 1226 |
| 1227 // Initialize the remaining words of the object. | 1227 // Initialize the remaining words of the object. |
| 1228 // T2: new object start. | 1228 // T2: new object start. |
| (...skipping 1221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2450 } | 2450 } |
| 2451 | 2451 |
| 2452 | 2452 |
| 2453 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { | 2453 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { |
| 2454 __ break_(0); | 2454 __ break_(0); |
| 2455 } | 2455 } |
| 2456 | 2456 |
| 2457 } // namespace dart | 2457 } // namespace dart |
| 2458 | 2458 |
| 2459 #endif // defined TARGET_ARCH_MIPS | 2459 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |