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

Side by Side Diff: src/compiler/control-reducer.h

Issue 875263004: [turbofan] Ensure that NTLs are always properly connected to the end. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 months 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/common-operator.cc ('k') | src/compiler/control-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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_CONTROL_REDUCER_H_ 5 #ifndef V8_COMPILER_CONTROL_REDUCER_H_
6 #define V8_COMPILER_CONTROL_REDUCER_H_ 6 #define V8_COMPILER_CONTROL_REDUCER_H_
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10
11 // Forward declarations.
12 class Zone;
13
14
10 namespace compiler { 15 namespace compiler {
11 16
17 // Forward declarations.
12 class JSGraph; 18 class JSGraph;
13 class CommonOperatorBuilder; 19 class CommonOperatorBuilder;
14 class Node; 20 class Node;
15 21
16 class ControlReducer { 22 class ControlReducer {
17 public: 23 public:
18 // Perform branch folding and dead code elimination on the graph. 24 // Perform branch folding and dead code elimination on the graph.
19 static void ReduceGraph(Zone* zone, JSGraph* graph, 25 static void ReduceGraph(Zone* zone, JSGraph* graph,
20 CommonOperatorBuilder* builder); 26 CommonOperatorBuilder* builder);
21 27
22 // Trim nodes in the graph that are not reachable from end. 28 // Trim nodes in the graph that are not reachable from end.
23 static void TrimGraph(Zone* zone, JSGraph* graph); 29 static void TrimGraph(Zone* zone, JSGraph* graph);
24 30
25 // Testing interface. 31 // Testing interface.
26 static Node* ReducePhiForTesting(JSGraph* graph, 32 static Node* ReducePhiForTesting(JSGraph* graph,
27 CommonOperatorBuilder* builder, Node* node); 33 CommonOperatorBuilder* builder, Node* node);
28 static Node* ReduceIfNodeForTesting(JSGraph* graph, 34 static Node* ReduceIfNodeForTesting(JSGraph* graph,
29 CommonOperatorBuilder* builder, 35 CommonOperatorBuilder* builder,
30 Node* node); 36 Node* node);
31 static Node* ReduceMergeForTesting(JSGraph* graph, 37 static Node* ReduceMergeForTesting(JSGraph* graph,
32 CommonOperatorBuilder* builder, 38 CommonOperatorBuilder* builder,
33 Node* node); 39 Node* node);
34 }; 40 };
35 } 41 }
36 } 42 }
37 } // namespace v8::internal::compiler 43 } // namespace v8::internal::compiler
38 44
39 #endif // V8_COMPILER_CONTROL_REDUCER_H_ 45 #endif // V8_COMPILER_CONTROL_REDUCER_H_
OLDNEW
« no previous file with comments | « src/compiler/common-operator.cc ('k') | src/compiler/control-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698