Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Unified Diff: src/ast/ast.h

Issue 2333243004: CallConstruct also gets call count information if megamorphic. (Closed)
Patch Set: Compile/runtime fixes. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/ast/ast.h
diff --git a/src/ast/ast.h b/src/ast/ast.h
index fd40ac924781c20626b4a2bc2c4aa82e855665df..9151aeeb79cf934b461b6ddfc6d898956cd8ab45 100644
--- a/src/ast/ast.h
+++ b/src/ast/ast.h
@@ -1921,10 +1921,9 @@ class CallNew final : public Expression {
// Type feedback information.
void AssignFeedbackVectorSlots(Isolate* isolate, FeedbackVectorSpec* spec,
FeedbackVectorSlotCache* cache) {
- callnew_feedback_slot_ = spec->AddGeneralSlot();
- // Construct calls have two slots, one right after the other.
- // The second slot stores the call count for monomorphic calls.
- spec->AddGeneralSlot();
+ // CallNew stores feedback in the exact same way as Call. We can
+ // piggyback on the type feedback infrastructure for calls.
+ callnew_feedback_slot_ = spec->AddCallICSlot();
}
FeedbackVectorSlot CallNewFeedbackSlot() {

Powered by Google App Engine
This is Rietveld 408576698