| Index: runtime/vm/assembler_arm64.cc
|
| diff --git a/runtime/vm/assembler_arm64.cc b/runtime/vm/assembler_arm64.cc
|
| index 9832dae6d621bddc1cf8eb30672d3522c3a86fb8..9934e460d90c1adbb23e48f9c4f6e5f7a92b795d 100644
|
| --- a/runtime/vm/assembler_arm64.cc
|
| +++ b/runtime/vm/assembler_arm64.cc
|
| @@ -1356,7 +1356,7 @@ void Assembler::TryAllocate(const Class& cls,
|
| // allocation call site.
|
| MaybeTraceAllocation(cls.id(), temp_reg, failure);
|
| const intptr_t instance_size = cls.instance_size();
|
| - Heap::Space space = Heap::SpaceForAllocation(cls.id());
|
| + Heap::Space space = Heap::kNew;
|
| ldr(temp_reg, Address(THR, Thread::heap_offset()));
|
| ldr(instance_reg, Address(temp_reg, Heap::TopOffset(space)));
|
| // TODO(koda): Protect against unsigned overflow here.
|
| @@ -1401,7 +1401,7 @@ void Assembler::TryAllocateArray(intptr_t cid,
|
| // (i.e. the allocation stub) which will allocate the object and trace the
|
| // allocation call site.
|
| MaybeTraceAllocation(cid, temp1, failure);
|
| - Heap::Space space = Heap::SpaceForAllocation(cid);
|
| + Heap::Space space = Heap::kNew;
|
| ldr(temp1, Address(THR, Thread::heap_offset()));
|
| // Potential new object start.
|
| ldr(instance, Address(temp1, Heap::TopOffset(space)));
|
|
|