Index: src/crankshaft/x64/lithium-codegen-x64.cc |
diff --git a/src/crankshaft/x64/lithium-codegen-x64.cc b/src/crankshaft/x64/lithium-codegen-x64.cc |
index 1c3188c03f643bb38e280126880a15a153d051ef..2ec98126c949bd2aae6793a35bfc9622f21bc912 100644 |
--- a/src/crankshaft/x64/lithium-codegen-x64.cc |
+++ b/src/crankshaft/x64/lithium-codegen-x64.cc |
@@ -5249,7 +5249,9 @@ |
// undo the allocation. |
ExternalReference allocation_top = |
AllocationUtils::GetAllocationTopReference(isolate(), allocation_flags); |
+ __ subp(rax, Immediate(kHeapObjectTag)); |
__ Store(allocation_top, rax); |
+ __ addp(rax, Immediate(kHeapObjectTag)); |
} |
} |