| Index: runtime/vm/stub_code_arm64.cc
|
| diff --git a/runtime/vm/stub_code_arm64.cc b/runtime/vm/stub_code_arm64.cc
|
| index 97a20c80c3021e3bbec1e2c6a72bdd1e32fc52af..9cfe5fa57ceeb6d339b8bab25cd67864e6d2b56b 100644
|
| --- a/runtime/vm/stub_code_arm64.cc
|
| +++ b/runtime/vm/stub_code_arm64.cc
|
| @@ -654,7 +654,7 @@ void StubCode::GenerateAllocateArrayStub(Assembler* assembler) {
|
| const intptr_t cid = kArrayCid;
|
| __ MaybeTraceAllocation(kArrayCid, R4, &slow_case);
|
|
|
| - Heap::Space space = Heap::SpaceForAllocation(cid);
|
| + Heap::Space space = Heap::kNew;
|
| __ LoadIsolate(R8);
|
| __ ldr(R8, Address(R8, Isolate::heap_offset()));
|
|
|
| @@ -922,7 +922,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(R5);
|
| __ ldr(R5, Address(R5, Isolate::heap_offset()));
|
| __ ldr(R0, Address(R5, Heap::TopOffset(space)));
|
| @@ -1108,7 +1108,7 @@ void StubCode::GenerateAllocationStubForClass(Assembler* assembler,
|
| // Allocate the object and update top to point to
|
| // next object start and initialize the allocated object.
|
| // R1: instantiated type arguments (if is_cls_parameterized).
|
| - Heap::Space space = Heap::SpaceForAllocation(cls.id());
|
| + Heap::Space space = Heap::kNew;
|
| __ ldr(R5, Address(THR, Thread::heap_offset()));
|
| __ ldr(R2, Address(R5, Heap::TopOffset(space)));
|
| __ AddImmediate(R3, R2, instance_size);
|
|
|