Index: src/compiler/escape-analysis-reducer.h |
diff --git a/src/compiler/escape-analysis-reducer.h b/src/compiler/escape-analysis-reducer.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..87aa35f8d67a94061d4e25e9784adba032e9f6f1 |
--- /dev/null |
+++ b/src/compiler/escape-analysis-reducer.h |
@@ -0,0 +1,53 @@ |
+// Copyright 2015 the V8 project authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef V8_COMPILER_ESCAPE_ANALYSIS_REDUCER_H_ |
+#define V8_COMPILER_ESCAPE_ANALYSIS_REDUCER_H_ |
+ |
+#include "src/compiler/escape-analysis.h" |
+#include "src/compiler/graph-reducer.h" |
+ |
+namespace v8 { |
+namespace internal { |
+namespace compiler { |
+ |
+// Forward declarations. |
+class JSGraph; |
+ |
+ |
+class EscapeAnalysisReducer final : public AdvancedReducer { |
+ public: |
+ EscapeAnalysisReducer(Editor* editor, JSGraph* jsgraph, |
+ EscapeStatusAnalysis* escape_status, |
+ EscapeObjectAnalysis* escape_analysis, Zone* zone); |
+ |
+ Reduction Reduce(Node* node) final; |
+ |
+ private: |
+ Reduction ReduceLoadField(Node* node); |
+ Reduction ReduceStoreField(Node* node); |
+ Reduction ReduceAllocate(Node* node); |
+ Reduction ReduceFinishRegion(Node* node); |
+ Reduction ReduceReferenceEqual(Node* node); |
+ |
+ Reduction ReplaceWithDeoptDummy(Node* node); |
+ |
+ JSGraph* jsgraph() const { return jsgraph_; } |
+ EscapeObjectAnalysis* escape_analysis() const { return escape_analysis_; } |
+ EscapeStatusAnalysis* escape_status() const { return escape_status_; } |
+ Zone* zone() const { return zone_; } |
+ |
+ JSGraph* const jsgraph_; |
+ EscapeStatusAnalysis* escape_status_; |
+ EscapeObjectAnalysis* escape_analysis_; |
+ Zone* const zone_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(EscapeAnalysisReducer); |
+}; |
+ |
+} // namespace compiler |
+} // namespace internal |
+} // namespace v8 |
+ |
+#endif // V8_COMPILER_ESCAPE_ANALYSIS_REDUCER_H_ |