Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index 691039507fa101337a32c26f947531a7159239dc..eec910a095e3e4138fbbd82a40bad3f2e4c66bc6 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -2903,6 +2903,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); |
+ } |
+ |
__ Move(r2, FeedbackVector()); |
__ mov(r3, Operand(Smi::FromInt(expr->CallNewFeedbackSlot()))); |