Index: src/ast.cc |
diff --git a/src/ast.cc b/src/ast.cc |
index 997d3e0787bde717314652538d822a2d181704ae..086d0153623dd4b33c3749f424f4dfdc46c7b56d 100644 |
--- a/src/ast.cc |
+++ b/src/ast.cc |
@@ -643,8 +643,11 @@ bool Call::ComputeGlobalTarget(Handle<GlobalObject> global, |
void CallNew::RecordTypeFeedback(TypeFeedbackOracle* oracle) { |
+ int allocation_site_feedback_slot = FLAG_pretenuring_call_new |
+ ? AllocationSiteFeedbackSlot() |
+ : CallNewFeedbackSlot(); |
allocation_site_ = |
- oracle->GetCallNewAllocationSite(CallNewFeedbackSlot()); |
+ oracle->GetCallNewAllocationSite(allocation_site_feedback_slot); |
is_monomorphic_ = oracle->CallNewIsMonomorphic(CallNewFeedbackSlot()); |
if (is_monomorphic_) { |
target_ = oracle->GetCallNewTarget(CallNewFeedbackSlot()); |