Index: src/full-codegen.cc |
diff --git a/src/full-codegen.cc b/src/full-codegen.cc |
index 81dc7b6d5b5e7a3c14c6fd3b9dfd5cd527bac307..2846d2ba14c37cae14a2732ab79d6bbaaae77735 100644 |
--- a/src/full-codegen.cc |
+++ b/src/full-codegen.cc |
@@ -364,7 +364,9 @@ unsigned FullCodeGenerator::EmitBackEdgeTable() { |
void FullCodeGenerator::EnsureSlotContainsAllocationSite(int slot) { |
Handle<FixedArray> vector = FeedbackVector(); |
if (!vector->get(slot)->IsAllocationSite()) { |
- vector->set(slot, *isolate()->factory()->NewAllocationSite()); |
+ Handle<AllocationSite> allocation_site = |
+ isolate()->factory()->NewAllocationSite(); |
+ vector->set(slot, *allocation_site); |
} |
} |