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

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: 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 CommonOperatorBuilder;
19 class JSGraph;
20 class JSOperatorBuilder;
21 class MachineOperatorBuilder;
22 class SimplifiedOperatorBuilder;
Michael Starzinger 2015/11/30 10:05:38 nit: Some of the forward declarations seem not to
sigurds 2015/11/30 13:50:23 Done.
23
24
25 class EscapeAnalysisReducer final : public AdvancedReducer {
26 public:
27 EscapeAnalysisReducer(Editor* editor, JSGraph* jsgraph,
28 EscapeStatusAnalysis* escape_status,
29 EscapeObjectAnalysis* escape_analysis, Zone* zone);
30
31 Reduction Reduce(Node* node) final;
32
33 private:
34 Reduction ReduceLoadField(Node* node);
35 Reduction ReduceStoreField(Node* node);
36 Reduction ReduceAllocate(Node* node);
37 Reduction ReduceFinishRegion(Node* node);
38 Reduction ReduceReferenceEqual(Node* node);
39
40 Reduction ReplaceWithDeoptDummy(Node* node);
41
42 void RemoveFromEffectChain(Node* node);
43
44 Graph* graph() const;
45 JSGraph* jsgraph() const { return jsgraph_; }
46 EscapeObjectAnalysis* escape_analysis() const { return escape_analysis_; }
47 EscapeStatusAnalysis* escape_status() const { return escape_status_; }
48 Zone* zone() const { return zone_; }
49
50 JSGraph* const jsgraph_;
51 EscapeStatusAnalysis* escape_status_;
52 EscapeObjectAnalysis* escape_analysis_;
53 Zone* const zone_;
54
55 DISALLOW_COPY_AND_ASSIGN(EscapeAnalysisReducer);
56 };
57
58 } // namespace compiler
59 } // namespace internal
60 } // namespace v8
61
62 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_
Michael Starzinger 2015/11/30 10:05:38 nit: s/JS_NATIVE_CONTEXT_SPECIALIZATION_H_/COMPILE
sigurds 2015/11/30 13:50:23 Done.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698