OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef V8_COMPILER_ESCAPE_ANALYSIS_REDUCER_H_ |
| 6 #define V8_COMPILER_ESCAPE_ANALYSIS_REDUCER_H_ |
| 7 |
| 8 #include "src/compiler/escape-analysis.h" |
| 9 #include "src/compiler/graph-reducer.h" |
| 10 |
| 11 namespace v8 { |
| 12 namespace internal { |
| 13 namespace compiler { |
| 14 |
| 15 // Forward declarations. |
| 16 class JSGraph; |
| 17 |
| 18 |
| 19 class EscapeAnalysisReducer final : public AdvancedReducer { |
| 20 public: |
| 21 EscapeAnalysisReducer(Editor* editor, JSGraph* jsgraph, |
| 22 EscapeStatusAnalysis* escape_status, |
| 23 EscapeObjectAnalysis* escape_analysis, Zone* zone); |
| 24 |
| 25 Reduction Reduce(Node* node) final; |
| 26 |
| 27 private: |
| 28 Reduction ReduceLoadField(Node* node); |
| 29 Reduction ReduceStoreField(Node* node); |
| 30 Reduction ReduceAllocate(Node* node); |
| 31 Reduction ReduceFinishRegion(Node* node); |
| 32 Reduction ReduceReferenceEqual(Node* node); |
| 33 |
| 34 Reduction ReplaceWithDeoptDummy(Node* node); |
| 35 |
| 36 JSGraph* jsgraph() const { return jsgraph_; } |
| 37 EscapeObjectAnalysis* escape_analysis() const { return escape_analysis_; } |
| 38 EscapeStatusAnalysis* escape_status() const { return escape_status_; } |
| 39 Zone* zone() const { return zone_; } |
| 40 |
| 41 JSGraph* const jsgraph_; |
| 42 EscapeStatusAnalysis* escape_status_; |
| 43 EscapeObjectAnalysis* escape_analysis_; |
| 44 Zone* const zone_; |
| 45 |
| 46 DISALLOW_COPY_AND_ASSIGN(EscapeAnalysisReducer); |
| 47 }; |
| 48 |
| 49 } // namespace compiler |
| 50 } // namespace internal |
| 51 } // namespace v8 |
| 52 |
| 53 #endif // V8_COMPILER_ESCAPE_ANALYSIS_REDUCER_H_ |
OLD | NEW |