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