aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/src/vector-slot-pair.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/vector-slot-pair.h')
-rw-r--r--deps/v8/src/vector-slot-pair.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/deps/v8/src/vector-slot-pair.h b/deps/v8/src/vector-slot-pair.h
index cd9434c630..cb99d06112 100644
--- a/deps/v8/src/vector-slot-pair.h
+++ b/deps/v8/src/vector-slot-pair.h
@@ -19,25 +19,29 @@ class FeedbackVector;
class V8_EXPORT_PRIVATE VectorSlotPair {
public:
VectorSlotPair();
- VectorSlotPair(Handle<FeedbackVector> vector, FeedbackSlot slot)
- : vector_(vector), slot_(slot) {}
+ VectorSlotPair(Handle<FeedbackVector> vector, FeedbackSlot slot,
+ InlineCacheState ic_state)
+ : vector_(vector), slot_(slot), ic_state_(ic_state) {}
bool IsValid() const { return !vector_.is_null() && !slot_.IsInvalid(); }
Handle<FeedbackVector> vector() const { return vector_; }
FeedbackSlot slot() const { return slot_; }
+ InlineCacheState ic_state() const { return ic_state_; }
int index() const;
private:
Handle<FeedbackVector> vector_;
FeedbackSlot slot_;
+ InlineCacheState ic_state_ = UNINITIALIZED;
};
bool operator==(VectorSlotPair const&, VectorSlotPair const&);
bool operator!=(VectorSlotPair const&, VectorSlotPair const&);
-std::ostream& operator<<(std::ostream& os, const VectorSlotPair& pair);
+V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os,
+ VectorSlotPair const&);
size_t hash_value(VectorSlotPair const&);