Index: src/hydrogen.h |
diff --git a/src/hydrogen.h b/src/hydrogen.h |
index bc9bc9de05ecd9046eed2677bc0d14f861eae885..b2f7a5b24d852d4855dbecbb0b0c0ce263ee7cb8 100644 |
--- a/src/hydrogen.h |
+++ b/src/hydrogen.h |
@@ -1223,6 +1223,29 @@ class HValueMap: public ZoneObject { |
}; |
+class HSideEffectMap BASE_EMBEDDED { |
+ public: |
+ HSideEffectMap(); |
+ HSideEffectMap(HSideEffectMap& other); |
+ |
+ void Kill(GVNFlagSet flags); |
+ |
+ void Store(GVNFlagSet flags, HInstruction* instr); |
+ |
+ bool IsEmpty() const { return count_ == 0; } |
+ |
+ inline HInstruction* operator[](int i) const { |
+ ASSERT(0 <= i); |
+ ASSERT(i < kNumberOfTrackedSideEffects); |
+ return data_[i]; |
+ } |
+ |
+ private: |
+ int count_; |
+ HInstruction* data_[kNumberOfTrackedSideEffects]; |
+}; |
+ |
+ |
class HStatistics: public Malloced { |
public: |
void Initialize(CompilationInfo* info); |