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

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

Issue 1906823002: Move of the type feedback vector to the closure. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 4 years, 7 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 770b5e5dedd7fdf66d603534a843d98b1928b7ea..5b083840f9abf04be7bb6e04736c7838310da225 100644
--- a/src/type-feedback-vector.h
+++ b/src/type-feedback-vector.h
@@ -136,6 +136,10 @@ class TypeFeedbackMetadata : public FixedArray {
bool SpecDiffersFrom(const FeedbackVectorSpec* other_spec) const;
+ bool DiffersFrom(const TypeFeedbackMetadata* other_metadata) const;
+
+ inline bool is_empty() const;
+
// Returns number of slots in the vector.
inline int slot_count() const;
@@ -194,12 +198,12 @@ class TypeFeedbackVector : public FixedArray {
inline TypeFeedbackMetadata* metadata() const;
// Conversion from a slot to an integer index to the underlying array.
- inline int GetIndex(FeedbackVectorSlot slot) const;
+ static inline int GetIndex(FeedbackVectorSlot slot);
static int GetIndexFromSpec(const FeedbackVectorSpec* spec,
FeedbackVectorSlot slot);
// Conversion from an integer index to the underlying array to a slot.
- inline FeedbackVectorSlot ToSlot(int index) const;
+ static inline FeedbackVectorSlot ToSlot(int index);
inline Object* Get(FeedbackVectorSlot slot) const;
inline void Set(FeedbackVectorSlot slot, Object* value,
WriteBarrierMode mode = UPDATE_WRITE_BARRIER);
« 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