Index: src/compiler/store-store-elimination.cc |
diff --git a/src/compiler/store-store-elimination.cc b/src/compiler/store-store-elimination.cc |
index 98904b05b5d045c561c2d045cb6e2ee151f8473a..bc6a3b2f31533fbbd98a82ae540fd0b4298a977f 100644 |
--- a/src/compiler/store-store-elimination.cc |
+++ b/src/compiler/store-store-elimination.cc |
@@ -72,9 +72,7 @@ namespace compiler { |
namespace { |
-// 16 bits was chosen fairly arbitrarily; it seems enough now. 8 bits is too |
-// few. |
-typedef uint16_t StoreOffset; |
+typedef uint32_t StoreOffset; |
struct UnobservableStore { |
NodeId id_; |
@@ -171,11 +169,11 @@ class RedundantStoreFinder final { |
const UnobservablesSet unobservables_visited_empty_; |
}; |
-// To safely cast an offset from a FieldAccess, which has a wider range |
-// (namely int). |
+// To safely cast an offset from a FieldAccess, which has a potentially wider |
+// range (namely int). |
StoreOffset ToOffset(int offset) { |
- CHECK(0 <= offset && offset < (1 << 8 * sizeof(StoreOffset))); |
- return (StoreOffset)offset; |
+ CHECK(0 <= offset); |
+ return static_cast<StoreOffset>(offset); |
} |
StoreOffset ToOffset(const FieldAccess& access) { |