Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index b9e4d4bbb591b71efd37e7a05b312fc5258b94af..b0b19b5103f6870c0d5c467b3f8b2769b2a55cfb 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -2857,6 +2857,11 @@ void FullCodeGenerator::VisitCallNew(CallNew* expr) { |
Handle<Object> uninitialized = |
TypeFeedbackInfo::UninitializedSentinel(isolate()); |
StoreFeedbackVectorSlot(expr->CallNewFeedbackSlot(), uninitialized); |
+ StoreFeedbackVectorSlot(expr->AllocationSiteFeedbackSlot(), |
+ isolate()->factory()->NewAllocationSite()); |
+ ASSERT(expr->AllocationSiteFeedbackSlot() == |
+ expr->CallNewFeedbackSlot() + 1); |
+ |
__ LoadHeapObject(ebx, FeedbackVector()); |
__ mov(edx, Immediate(Smi::FromInt(expr->CallNewFeedbackSlot()))); |