Index: src/crankshaft/arm64/lithium-codegen-arm64.cc |
diff --git a/src/crankshaft/arm64/lithium-codegen-arm64.cc b/src/crankshaft/arm64/lithium-codegen-arm64.cc |
index 9bfa3e3f76375ba7cfc99b758534364418ade9b5..507520497d0f76915e0debe70f2b29f0125de181 100644 |
--- a/src/crankshaft/arm64/lithium-codegen-arm64.cc |
+++ b/src/crankshaft/arm64/lithium-codegen-arm64.cc |
@@ -1502,8 +1502,10 @@ |
ExternalReference allocation_top = |
AllocationUtils::GetAllocationTopReference(isolate(), allocation_flags); |
Register top_address = x10; |
+ __ Sub(x0, x0, Operand(kHeapObjectTag)); |
__ Mov(top_address, Operand(allocation_top)); |
__ Str(x0, MemOperand(top_address)); |
+ __ Add(x0, x0, Operand(kHeapObjectTag)); |
} |
} |