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

Unified Diff: src/ast/ast.cc

Issue 2707873002: Collect type profile for DevTools. (Closed)
Patch Set: Use constructor name if available. Created 3 years, 10 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 c5e9b68960d157ee6226896224049106cde9aca5..d5ef3c1b3415d54dbd49232cbe1964e9243b1e24 100644
--- a/src/ast/ast.cc
+++ b/src/ast/ast.cc
@@ -253,7 +253,6 @@ static void AssignVectorSlots(Expression* expr, FeedbackVectorSpec* spec,
// TODO(ishell): consider using ICSlotCache for variables here.
if (assign_type == KEYED_PROPERTY) {
*out_slot = spec->AddKeyedStoreICSlot(language_mode);
-
} else {
*out_slot = spec->AddStoreICSlot(language_mode);
}
@@ -282,6 +281,9 @@ void Assignment::AssignFeedbackSlots(FeedbackVectorSpec* spec,
LanguageMode language_mode,
FeedbackSlotCache* cache) {
AssignVectorSlots(target(), spec, language_mode, &slot_);
+ if (true || FLAG_type_profile) {
+ collect_type_profile_slot_ = spec->AddTypeProfileSlot();
+ }
}
void CountOperation::AssignFeedbackSlots(FeedbackVectorSpec* spec,
« no previous file with comments | « src/ast/ast.h ('k') | src/compiler/bytecode-graph-builder.cc » ('j') | src/feedback-vector-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698