Index: src/hydrogen-instructions.h |
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h |
index f1720f444247d83635c84d00a99cf2457ee0022e..fce5d681a95cc1afb133b91a4ae3b347ad66e9e2 100644 |
--- a/src/hydrogen-instructions.h |
+++ b/src/hydrogen-instructions.h |
@@ -6202,7 +6202,14 @@ class HObjectAccess V8_FINAL { |
void PrintTo(StringStream* stream) const; |
inline bool Equals(HObjectAccess that) const { |
- return value_ == that.value_; // portion and offset must match |
+ return value_ == that.value_; |
+ } |
+ |
+ // Returns true if |this| access refers to the same field as |that|, which |
+ // means that both have same |offset| and |portion| values. |
+ inline bool SameField(HObjectAccess that) const { |
+ uint32_t mask = PortionField::kMask | OffsetField::kMask; |
+ return (value_ & mask) == (that.value_ & mask); |
} |
protected: |