Index: src/x64/stub-cache-x64.cc |
diff --git a/src/x64/stub-cache-x64.cc b/src/x64/stub-cache-x64.cc |
index 4b3ee400f34e73f70f87f65d71482796d46ee526..9a1ea8e6d97698ca6767a650dedd313e6c274c08 100644 |
--- a/src/x64/stub-cache-x64.cc |
+++ b/src/x64/stub-cache-x64.cc |
@@ -1641,11 +1641,11 @@ Handle<Code> CallStubCompiler::CompileArrayCodeCall( |
GenerateLoadFunctionFromCell(cell, function, &miss); |
} |
- Handle<Smi> kind(Smi::FromInt(GetInitialFastElementsKind()), isolate()); |
- Handle<Cell> kind_feedback_cell = |
- isolate()->factory()->NewCell(kind); |
+ Handle<AllocationSite> site = isolate()->factory()->NewAllocationSite(); |
+ site->set_payload(Smi::FromInt(GetInitialFastElementsKind())); |
+ Handle<Cell> site_feedback_cell = isolate()->factory()->NewCell(site); |
__ movq(rax, Immediate(argc)); |
- __ Move(rbx, kind_feedback_cell); |
+ __ Move(rbx, site_feedback_cell); |
__ Move(rdi, function); |
ArrayConstructorStub stub(isolate()); |