Index: src/full-codegen.cc |
diff --git a/src/full-codegen.cc b/src/full-codegen.cc |
index 61a6eac6349a73896b88b5676b8660552affb151..89ae329823937508b500fba45144c70bd1780b74 100644 |
--- a/src/full-codegen.cc |
+++ b/src/full-codegen.cc |
@@ -367,11 +367,22 @@ unsigned FullCodeGenerator::EmitBackEdgeTable() { |
void FullCodeGenerator::EnsureSlotContainsAllocationSite( |
FeedbackVectorSlot slot) { |
- Handle<FixedArray> vector = FeedbackVector(); |
- if (!vector->get(slot.ToInt())->IsAllocationSite()) { |
+ Handle<TypeFeedbackVector> vector = FeedbackVector(); |
+ if (!vector->Get(slot)->IsAllocationSite()) { |
Handle<AllocationSite> allocation_site = |
isolate()->factory()->NewAllocationSite(); |
- vector->set(slot.ToInt(), *allocation_site); |
+ vector->Set(slot, *allocation_site); |
+ } |
+} |
+ |
+ |
+void FullCodeGenerator::EnsureSlotContainsAllocationSite( |
+ FeedbackVectorICSlot slot) { |
+ Handle<TypeFeedbackVector> vector = FeedbackVector(); |
+ if (!vector->Get(slot)->IsAllocationSite()) { |
+ Handle<AllocationSite> allocation_site = |
+ isolate()->factory()->NewAllocationSite(); |
+ vector->Set(slot, *allocation_site); |
} |
} |