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

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

Issue 1457683003: [turbofan] Initial support for escape analysis. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix bug + small improvements 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
OLDNEW
(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"
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698