Chromium Code Reviews| 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 #include "src/compiler/js-graph.h" | |
|
Michael Starzinger
2015/12/01 17:18:37
nit: It looks like the "js-graph.h" include is not
sigurds
2015/12/02 10:12:20
Done.
| |
| 11 | |
| 12 namespace v8 { | |
| 13 namespace internal { | |
| 14 | |
| 15 namespace compiler { | |
| 16 | |
| 17 // Forward declarations. | |
| 18 class JSGraph; | |
| 19 | |
| 20 | |
| 21 class EscapeAnalysisReducer final : public AdvancedReducer { | |
| 22 public: | |
| 23 EscapeAnalysisReducer(Editor* editor, JSGraph* jsgraph, | |
| 24 EscapeStatusAnalysis* escape_status, | |
| 25 EscapeObjectAnalysis* escape_analysis, Zone* zone); | |
| 26 | |
| 27 Reduction Reduce(Node* node) final; | |
| 28 | |
| 29 private: | |
| 30 Reduction ReduceLoadField(Node* node); | |
| 31 Reduction ReduceStoreField(Node* node); | |
| 32 Reduction ReduceAllocate(Node* node); | |
| 33 Reduction ReduceFinishRegion(Node* node); | |
| 34 Reduction ReduceReferenceEqual(Node* node); | |
| 35 | |
| 36 Reduction ReplaceWithDeoptDummy(Node* node); | |
| 37 | |
| 38 JSGraph* jsgraph() const { return jsgraph_; } | |
| 39 EscapeObjectAnalysis* escape_analysis() const { return escape_analysis_; } | |
| 40 EscapeStatusAnalysis* escape_status() const { return escape_status_; } | |
| 41 Zone* zone() const { return zone_; } | |
| 42 | |
| 43 JSGraph* const jsgraph_; | |
| 44 EscapeStatusAnalysis* escape_status_; | |
| 45 EscapeObjectAnalysis* escape_analysis_; | |
| 46 Zone* const zone_; | |
| 47 | |
| 48 DISALLOW_COPY_AND_ASSIGN(EscapeAnalysisReducer); | |
| 49 }; | |
| 50 | |
| 51 } // namespace compiler | |
| 52 } // namespace internal | |
| 53 } // namespace v8 | |
| 54 | |
| 55 #endif // V8_COMPILER_ESCAPE_ANALYSIS_REDUCER_H_ | |
| OLD | NEW |