| Index: src/a64/full-codegen-a64.cc
|
| diff --git a/src/a64/full-codegen-a64.cc b/src/a64/full-codegen-a64.cc
|
| index 8c3c88ddceb3e181a3820f58f26ae9b0163fade6..4f907a5bf74dae7813596ec97f72b9de117435b7 100644
|
| --- a/src/a64/full-codegen-a64.cc
|
| +++ b/src/a64/full-codegen-a64.cc
|
| @@ -2608,6 +2608,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);
|
| + }
|
| +
|
| __ LoadObject(x2, FeedbackVector());
|
| __ Mov(x3, Operand(Smi::FromInt(expr->CallNewFeedbackSlot())));
|
|
|
|
|