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 0024da809596965b66717785becca23953693092..67776e4ca9a6b25ad74d5b36d55f4f5c6e0850bb 100644 |
--- a/src/crankshaft/x64/lithium-codegen-x64.cc |
+++ b/src/crankshaft/x64/lithium-codegen-x64.cc |
@@ -5260,7 +5260,9 @@ |
// undo the allocation. |
ExternalReference allocation_top = |
AllocationUtils::GetAllocationTopReference(isolate(), allocation_flags); |
+ __ subp(rax, Immediate(kHeapObjectTag)); |
__ Store(allocation_top, rax); |
+ __ addp(rax, Immediate(kHeapObjectTag)); |
} |
} |