| Index: runtime/vm/stub_code_arm.cc
|
| diff --git a/runtime/vm/stub_code_arm.cc b/runtime/vm/stub_code_arm.cc
|
| index 538cd334a66fee268c7fa262e39523e2fae52e41..c6c54c63b3aa85e5c2e15baf6b03a52d78331062 100644
|
| --- a/runtime/vm/stub_code_arm.cc
|
| +++ b/runtime/vm/stub_code_arm.cc
|
| @@ -634,7 +634,7 @@ void StubCode::GenerateAllocateArrayStub(Assembler* assembler) {
|
| __ bic(R9, R9, Operand(kObjectAlignment - 1));
|
|
|
| // R9: Allocation size.
|
| - Heap::Space space = Heap::SpaceForAllocation(cid);
|
| + Heap::Space space = Heap::kNew;
|
| __ LoadIsolate(R8);
|
| __ ldr(R8, Address(R8, Isolate::heap_offset()));
|
| // Potential new object start.
|
| @@ -863,7 +863,7 @@ void StubCode::GenerateAllocateContextStub(Assembler* assembler) {
|
| // R1: number of context variables.
|
| // R2: object size.
|
| const intptr_t cid = kContextCid;
|
| - Heap::Space space = Heap::SpaceForAllocation(cid);
|
| + Heap::Space space = Heap::kNew;
|
| __ LoadIsolate(R9);
|
| __ ldr(R9, Address(R9, Isolate::heap_offset()));
|
| __ ldr(R0, Address(R9, Heap::TopOffset(space)));
|
| @@ -1062,7 +1062,7 @@ void StubCode::GenerateAllocationStubForClass(Assembler* assembler,
|
| Label slow_case;
|
| // Allocate the object and update top to point to
|
| // next object start and initialize the allocated object.
|
| - Heap::Space space = Heap::SpaceForAllocation(cls.id());
|
| + Heap::Space space = Heap::kNew;
|
| __ ldr(R9, Address(THR, Thread::heap_offset()));
|
| __ ldr(R0, Address(R9, Heap::TopOffset(space)));
|
| __ AddImmediate(R1, R0, instance_size);
|
|
|