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