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

Unified Diff: src/ast/ast.h

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
« no previous file with comments | « no previous file | src/ast/ast.cc » ('j') | src/feedback-vector-inl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/ast.h
diff --git a/src/ast/ast.h b/src/ast/ast.h
index 7983feb0f5a32d1a7e1bd0a49d23a8a4ec39d7f4..5c0893b8fa53748cda36a1f103e83d497359256d 100644
--- a/src/ast/ast.h
+++ b/src/ast/ast.h
@@ -2440,6 +2440,11 @@ class Assignment final : public Expression {
FeedbackSlotCache* cache);
FeedbackSlot AssignmentSlot() const { return slot_; }
+ FeedbackSlot CollectTypeProfileSlot() const {
+ DCHECK(FLAG_type_profile);
+ return collect_type_profile_slot_;
+ }
+
private:
friend class AstNodeFactory;
@@ -2457,6 +2462,7 @@ class Assignment final : public Expression {
class TokenField : public BitField<Token::Value, StoreModeField::kNext, 7> {};
FeedbackSlot slot_;
+ FeedbackSlot collect_type_profile_slot_;
Expression* target_;
Expression* value_;
BinaryOperation* binary_operation_;
« no previous file with comments | « no previous file | src/ast/ast.cc » ('j') | src/feedback-vector-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698