Lines Matching refs:other
119 bool Equals(const Representation& other) const {
120 return kind_ == other.kind_;
123 bool IsCompatibleForLoad(const Representation& other) const {
124 return (IsDouble() && other.IsDouble()) ||
125 (!IsDouble() && !other.IsDouble());
128 bool IsCompatibleForStore(const Representation& other) const {
129 return Equals(other);
132 bool is_more_general_than(const Representation& other) const {
133 if (kind_ == kExternal && other.kind_ == kNone) return true;
134 if (kind_ == kExternal && other.kind_ == kExternal) return false;
135 if (kind_ == kNone && other.kind_ == kExternal) return false;
138 DCHECK(other.kind_ != kExternal);
139 if (IsHeapObject()) return other.IsNone();
140 if (kind_ == kUInteger8 && other.kind_ == kInteger8) return false;
141 if (kind_ == kUInteger16 && other.kind_ == kInteger16) return false;
142 return kind_ > other.kind_;
145 bool fits_into(const Representation& other) const {
146 return other.is_more_general_than(*this) || other.Equals(*this);
149 Representation generalize(Representation other) {
150 if (other.fits_into(*this)) return *this;
151 if (other.is_more_general_than(*this)) return other;