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

Unified Diff: src/hydrogen-instructions.h

Issue 336223002: Revert "GVN fix, preventing loads hoisting above stores to the same field when HObjectAccess's repr… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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/hydrogen-gvn.cc ('k') | test/mjsunit/regress/regress-gvn-ftt.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen-instructions.h
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h
index fce5d681a95cc1afb133b91a4ae3b347ad66e9e2..f1720f444247d83635c84d00a99cf2457ee0022e 100644
--- a/src/hydrogen-instructions.h
+++ b/src/hydrogen-instructions.h
@@ -6202,14 +6202,7 @@ class HObjectAccess V8_FINAL {
void PrintTo(StringStream* stream) const;
inline bool Equals(HObjectAccess that) const {
- 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);
+ return value_ == that.value_; // portion and offset must match
}
protected:
« no previous file with comments | « src/hydrogen-gvn.cc ('k') | test/mjsunit/regress/regress-gvn-ftt.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698