Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: src/compiler/escape-analysis-reducer.h

Issue 1491903002: [turbofan] Refactor escape analysis to only expose one class. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Ensure only EscapeAnalysis can create EscapeStatusAnalysis Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/escape-analysis.cc ('k') | src/compiler/escape-analysis-reducer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_COMPILER_ESCAPE_ANALYSIS_REDUCER_H_ 5 #ifndef V8_COMPILER_ESCAPE_ANALYSIS_REDUCER_H_
6 #define V8_COMPILER_ESCAPE_ANALYSIS_REDUCER_H_ 6 #define V8_COMPILER_ESCAPE_ANALYSIS_REDUCER_H_
7 7
8 #include "src/compiler/escape-analysis.h" 8 #include "src/compiler/escape-analysis.h"
9 #include "src/compiler/graph-reducer.h" 9 #include "src/compiler/graph-reducer.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 namespace compiler { 13 namespace compiler {
14 14
15 // Forward declarations. 15 // Forward declarations.
16 class JSGraph; 16 class JSGraph;
17 17
18 18
19 class EscapeAnalysisReducer final : public AdvancedReducer { 19 class EscapeAnalysisReducer final : public AdvancedReducer {
20 public: 20 public:
21 EscapeAnalysisReducer(Editor* editor, JSGraph* jsgraph, 21 EscapeAnalysisReducer(Editor* editor, JSGraph* jsgraph,
22 EscapeStatusAnalysis* escape_status, 22 EscapeAnalysis* escape_analysis, Zone* zone);
23 EscapeObjectAnalysis* escape_analysis, Zone* zone);
24 23
25 Reduction Reduce(Node* node) final; 24 Reduction Reduce(Node* node) final;
26 25
27 private: 26 private:
28 Reduction ReduceLoadField(Node* node); 27 Reduction ReduceLoadField(Node* node);
29 Reduction ReduceStoreField(Node* node); 28 Reduction ReduceStoreField(Node* node);
30 Reduction ReduceAllocate(Node* node); 29 Reduction ReduceAllocate(Node* node);
31 Reduction ReduceFinishRegion(Node* node); 30 Reduction ReduceFinishRegion(Node* node);
32 Reduction ReduceReferenceEqual(Node* node); 31 Reduction ReduceReferenceEqual(Node* node);
33 32
34 Reduction ReplaceWithDeoptDummy(Node* node); 33 Reduction ReplaceWithDeoptDummy(Node* node);
35 34
36 JSGraph* jsgraph() const { return jsgraph_; } 35 JSGraph* jsgraph() const { return jsgraph_; }
37 EscapeObjectAnalysis* escape_analysis() const { return escape_analysis_; } 36 EscapeAnalysis* escape_analysis() const { return escape_analysis_; }
38 EscapeStatusAnalysis* escape_status() const { return escape_status_; }
39 Zone* zone() const { return zone_; } 37 Zone* zone() const { return zone_; }
40 38
41 JSGraph* const jsgraph_; 39 JSGraph* const jsgraph_;
42 EscapeStatusAnalysis* escape_status_; 40 EscapeAnalysis* escape_analysis_;
43 EscapeObjectAnalysis* escape_analysis_;
44 Zone* const zone_; 41 Zone* const zone_;
45 42
46 DISALLOW_COPY_AND_ASSIGN(EscapeAnalysisReducer); 43 DISALLOW_COPY_AND_ASSIGN(EscapeAnalysisReducer);
47 }; 44 };
48 45
49 } // namespace compiler 46 } // namespace compiler
50 } // namespace internal 47 } // namespace internal
51 } // namespace v8 48 } // namespace v8
52 49
53 #endif // V8_COMPILER_ESCAPE_ANALYSIS_REDUCER_H_ 50 #endif // V8_COMPILER_ESCAPE_ANALYSIS_REDUCER_H_
OLDNEW
« no previous file with comments | « src/compiler/escape-analysis.cc ('k') | src/compiler/escape-analysis-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698