| Index: src/ast.h
|
| diff --git a/src/ast.h b/src/ast.h
|
| index aacc5e4fc8189d876c6331d895df252bdcbbeb90..4752949cac30b312c2574b1d7e5770fb3149a9d8 100644
|
| --- a/src/ast.h
|
| +++ b/src/ast.h
|
| @@ -1840,7 +1840,7 @@ class CallNew V8_FINAL : public Expression, public FeedbackSlotInterface {
|
|
|
| // Type feedback information.
|
| virtual ComputablePhase GetComputablePhase() { return DURING_PARSE; }
|
| - virtual int ComputeFeedbackSlotCount(Isolate* isolate) { return 1; }
|
| + virtual int ComputeFeedbackSlotCount(Isolate* isolate) { return 2; }
|
| virtual void SetFirstFeedbackSlot(int slot) {
|
| callnew_feedback_slot_ = slot;
|
| }
|
| @@ -1849,8 +1849,11 @@ class CallNew V8_FINAL : public Expression, public FeedbackSlotInterface {
|
| ASSERT(callnew_feedback_slot_ != kInvalidFeedbackSlot);
|
| return callnew_feedback_slot_;
|
| }
|
| + int AllocationSiteFeedbackSlot() {
|
| + ASSERT(callnew_feedback_slot_ != kInvalidFeedbackSlot);
|
| + return callnew_feedback_slot_ + 1;
|
| + }
|
|
|
| - TypeFeedbackId CallNewFeedbackId() const { return reuse(id()); }
|
| void RecordTypeFeedback(TypeFeedbackOracle* oracle);
|
| virtual bool IsMonomorphic() V8_OVERRIDE { return is_monomorphic_; }
|
| Handle<JSFunction> target() const { return target_; }
|
|
|