Index: src/full-codegen.cc |
diff --git a/src/full-codegen.cc b/src/full-codegen.cc |
index a5814c51f2e90638f538db2b2c0460f30d52818b..61a6eac6349a73896b88b5676b8660552affb151 100644 |
--- a/src/full-codegen.cc |
+++ b/src/full-codegen.cc |
@@ -365,12 +365,13 @@ unsigned FullCodeGenerator::EmitBackEdgeTable() { |
} |
-void FullCodeGenerator::EnsureSlotContainsAllocationSite(int slot) { |
+void FullCodeGenerator::EnsureSlotContainsAllocationSite( |
+ FeedbackVectorSlot slot) { |
Handle<FixedArray> vector = FeedbackVector(); |
- if (!vector->get(slot)->IsAllocationSite()) { |
+ if (!vector->get(slot.ToInt())->IsAllocationSite()) { |
Handle<AllocationSite> allocation_site = |
isolate()->factory()->NewAllocationSite(); |
- vector->set(slot, *allocation_site); |
+ vector->set(slot.ToInt(), *allocation_site); |
} |
} |