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

Unified Diff: src/ast/ast.cc

Issue 2707873002: Collect type profile for DevTools. (Closed)
Patch Set: Add documentation and sprinkle consts around. 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 5b98e3165447f69f292b898139d85d8ab5161b6c..09aa646df6d21a4c2a61c32e5dd5cf6e33de558c 100644
--- a/src/ast/ast.cc
+++ b/src/ast/ast.cc
@@ -283,8 +283,15 @@ Assignment::Assignment(Token::Value op, Expression* target, Expression* value,
void Assignment::AssignFeedbackSlots(FeedbackVectorSpec* spec,
LanguageMode language_mode,
- FeedbackSlotCache* cache) {
+ FeedbackSlotCache* cache,
+ bool collect_type_profile) {
AssignVectorSlots(target(), spec, language_mode, &slot_);
+
+ bit_field_ =
+ CollectTypeProfileSlotField::update(bit_field_, collect_type_profile);
+ if (HasCollectTypeProfileSlot()) {
+ collect_type_profile_slot_ = spec->AddTypeProfileSlot();
+ }
}
void CountOperation::AssignFeedbackSlots(FeedbackVectorSpec* spec,

Powered by Google App Engine
This is Rietveld 408576698