Index: src/hydrogen.h |
diff --git a/src/hydrogen.h b/src/hydrogen.h |
index bc9bc9de05ecd9046eed2677bc0d14f861eae885..27a4a4a4ff1678b9915804cd7c5a2cc8d7e4a640 100644 |
--- a/src/hydrogen.h |
+++ b/src/hydrogen.h |
@@ -1223,6 +1223,30 @@ 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]; |
+ } |
+ inline HInstruction* at(int i) const { return operator[](i); } |
+ |
+ private: |
+ int count_; |
+ HInstruction* data_[kNumberOfTrackedSideEffects]; |
+}; |
+ |
+ |
class HStatistics: public Malloced { |
public: |
void Initialize(CompilationInfo* info); |