Lines Matching defs:Variable
83 class Variable {
85 Variable() : id_(kInvalid) {}
86 bool operator==(Variable other) const { return id_ == other.id_; }
87 bool operator!=(Variable other) const { return id_ != other.id_; }
88 bool operator<(Variable other) const { return id_ < other.id_; }
89 static Variable Invalid() { return Variable(kInvalid); }
90 friend V8_INLINE size_t hash_value(Variable v) {
93 friend std::ostream& operator<<(std::ostream& os, Variable var) {
99 explicit Variable(Id id) : id_(id) {}
128 using const_iterator = ZoneVector<Variable>::const_iterator;
130 Maybe<Variable> FieldAt(int offset) const {
138 return Nothing<Variable>();
142 Maybe<Variable> FieldAt(Maybe<int> maybe_offset) const {
144 if (!maybe_offset.To(&offset)) return Nothing<Variable>();
159 ZoneVector<Variable> fields_;