| Index: runtime/vm/intrinsifier_x64.cc
|
| diff --git a/runtime/vm/intrinsifier_x64.cc b/runtime/vm/intrinsifier_x64.cc
|
| index 5ac5d39bb4d64966a82505077b396e69639e1283..f12393e4bdd85d824b655d7e4d4527ce009f5140 100644
|
| --- a/runtime/vm/intrinsifier_x64.cc
|
| +++ b/runtime/vm/intrinsifier_x64.cc
|
| @@ -176,7 +176,7 @@ void Intrinsifier::GrowableArray_add(Assembler* assembler) {
|
| const intptr_t fixed_size = sizeof(Raw##type_name) + kObjectAlignment - 1; \
|
| __ leaq(RDI, Address(RDI, scale_factor, fixed_size)); \
|
| __ andq(RDI, Immediate(-kObjectAlignment)); \
|
| - Heap::Space space = Heap::SpaceForAllocation(cid); \
|
| + Heap::Space space = Heap::kNew; \
|
| __ movq(R13, Address(THR, Thread::heap_offset())); \
|
| __ movq(RAX, Address(R13, Heap::TopOffset(space))); \
|
| __ movq(RCX, RAX); \
|
| @@ -1838,7 +1838,7 @@ static void TryAllocateOnebyteString(Assembler* assembler,
|
| __ andq(RDI, Immediate(-kObjectAlignment));
|
|
|
| const intptr_t cid = kOneByteStringCid;
|
| - Heap::Space space = Heap::SpaceForAllocation(cid);
|
| + Heap::Space space = Heap::kNew;
|
| __ movq(R13, Address(THR, Thread::heap_offset()));
|
| __ movq(RAX, Address(R13, Heap::TopOffset(space)));
|
|
|
|
|