| Index: runtime/vm/assembler_ia32.cc
|
| diff --git a/runtime/vm/assembler_ia32.cc b/runtime/vm/assembler_ia32.cc
|
| index e8851ac6d4d94165991580a2d65549f388884f6a..8b988e5a4edac71c21a8b3788b9f9b6b81b60a6c 100644
|
| --- a/runtime/vm/assembler_ia32.cc
|
| +++ b/runtime/vm/assembler_ia32.cc
|
| @@ -2773,7 +2773,7 @@ void Assembler::TryAllocate(const Class& cls,
|
| // allocation call site.
|
| MaybeTraceAllocation(cls.id(), temp_reg, failure, near_jump);
|
| const intptr_t instance_size = cls.instance_size();
|
| - Heap::Space space = Heap::SpaceForAllocation(cls.id());
|
| + Heap::Space space = Heap::kNew;
|
| movl(temp_reg, Address(THR, Thread::heap_offset()));
|
| movl(instance_reg, Address(temp_reg, Heap::TopOffset(space)));
|
| addl(instance_reg, Immediate(instance_size));
|
| @@ -2811,7 +2811,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, temp_reg, failure, near_jump);
|
| - Heap::Space space = Heap::SpaceForAllocation(cid);
|
| + Heap::Space space = Heap::kNew;
|
| movl(temp_reg, Address(THR, Thread::heap_offset()));
|
| movl(instance, Address(temp_reg, Heap::TopOffset(space)));
|
| movl(end_address, instance);
|
|
|