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

Unified Diff: src/ast/ast.cc

Issue 2764113002: [type-profile] Handle returns correctly. (Closed)
Patch Set: Private slot. Created 3 years, 9 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.cc
diff --git a/src/ast/ast.cc b/src/ast/ast.cc
index 6aaae04ea35bab04c21e3c78ba5af333e8c70f4c..b039678124d27895893374ae397b30e60b52cb6c 100644
--- a/src/ast/ast.cc
+++ b/src/ast/ast.cc
@@ -283,13 +283,8 @@ Assignment::Assignment(Token::Value op, Expression* target, Expression* value,
void Assignment::AssignFeedbackSlots(FeedbackVectorSpec* spec,
LanguageMode language_mode,
- FeedbackSlotCache* cache,
- bool collect_type_profile) {
+ FeedbackSlotCache* cache) {
AssignVectorSlots(target(), spec, language_mode, &slot_);
-
- if (collect_type_profile) {
- type_profile_slot_ = spec->AddTypeProfileSlot();
- }
}
void CountOperation::AssignFeedbackSlots(FeedbackVectorSpec* spec,
« no previous file with comments | « src/ast/ast.h ('k') | src/ast/ast-numbering.cc » ('j') | src/runtime/runtime-object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698