| Index: runtime/vm/stub_code_x64.cc
|
| diff --git a/runtime/vm/stub_code_x64.cc b/runtime/vm/stub_code_x64.cc
|
| index eaf3e4124602f1ef8667a3fcb727a4e0d2d9d33a..82a198aefae3ce91ee590dc34039be800146943d 100644
|
| --- a/runtime/vm/stub_code_x64.cc
|
| +++ b/runtime/vm/stub_code_x64.cc
|
| @@ -914,9 +914,9 @@ void StubCode::GenerateAllocateContextStub(Assembler* assembler) {
|
| // R10: number of context variables.
|
| // RCX: heap.
|
| __ movq(Address(RCX, Heap::TopOffset(space)), R13);
|
| - __ addq(RAX, Immediate(kHeapObjectTag));
|
| // R13: Size of allocation in bytes.
|
| __ subq(R13, RAX);
|
| + __ addq(RAX, Immediate(kHeapObjectTag));
|
| // Generate isolate-independent code to allow sharing between isolates.
|
| __ UpdateAllocationStatsWithSize(cid, R13, space,
|
| /* inline_isolate */ false);
|
|
|