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

Unified Diff: src/type-feedback-vector.h

Issue 2655853010: [TypeFeedbackVector] Combine the literals array and the feedback vector. (Closed)
Patch Set: more comments. Created 3 years, 11 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 | « src/snapshot/partial-serializer.cc ('k') | src/type-feedback-vector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/type-feedback-vector.h
diff --git a/src/type-feedback-vector.h b/src/type-feedback-vector.h
index 7d2ec84dc9c7e633c4caf6b66e32cdffe909f67d..a6db1f8e19ddb48b2413bb414ececcb9d9ee2c4b 100644
--- a/src/type-feedback-vector.h
+++ b/src/type-feedback-vector.h
@@ -32,6 +32,7 @@ enum class FeedbackVectorSlotKind {
INTERPRETER_COMPARE_IC,
STORE_DATA_PROPERTY_IN_LITERAL_IC,
CREATE_CLOSURE,
+ LITERAL,
// This is a general purpose slot that occupies one feedback vector element.
GENERAL,
@@ -86,6 +87,10 @@ class FeedbackVectorSpecBase {
return AddSlot(FeedbackVectorSlotKind::GENERAL);
}
+ FeedbackVectorSlot AddLiteralSlot() {
+ return AddSlot(FeedbackVectorSlotKind::LITERAL);
+ }
+
FeedbackVectorSlot AddStoreDataPropertyInLiteralICSlot() {
return AddSlot(FeedbackVectorSlotKind::STORE_DATA_PROPERTY_IN_LITERAL_IC);
}
@@ -238,8 +243,6 @@ class TypeFeedbackVector : public FixedArray {
static int GetIndex(FeedbackVectorSlot slot) {
return kReservedIndexCount + slot.ToInt();
}
- static int GetIndexFromSpec(const FeedbackVectorSpec* spec,
- FeedbackVectorSlot slot);
// Conversion from an integer index to the underlying array to a slot.
static inline FeedbackVectorSlot ToSlot(int index);
« no previous file with comments | « src/snapshot/partial-serializer.cc ('k') | src/type-feedback-vector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698