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

Side by Side Diff: src/compiler/dead-code-elimination.h

Issue 2140673007: [turbofan] Introduce explicit loop exits markers. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix Created 4 years, 5 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
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_DEAD_CODE_ELIMINATION_H_ 5 #ifndef V8_COMPILER_DEAD_CODE_ELIMINATION_H_
6 #define V8_COMPILER_DEAD_CODE_ELIMINATION_H_ 6 #define V8_COMPILER_DEAD_CODE_ELIMINATION_H_
7 7
8 #include "src/compiler/graph-reducer.h" 8 #include "src/compiler/graph-reducer.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 12 matching lines...) Expand all
23 public: 23 public:
24 DeadCodeElimination(Editor* editor, Graph* graph, 24 DeadCodeElimination(Editor* editor, Graph* graph,
25 CommonOperatorBuilder* common); 25 CommonOperatorBuilder* common);
26 ~DeadCodeElimination() final {} 26 ~DeadCodeElimination() final {}
27 27
28 Reduction Reduce(Node* node) final; 28 Reduction Reduce(Node* node) final;
29 29
30 private: 30 private:
31 Reduction ReduceEnd(Node* node); 31 Reduction ReduceEnd(Node* node);
32 Reduction ReduceLoopOrMerge(Node* node); 32 Reduction ReduceLoopOrMerge(Node* node);
33 Reduction ReduceLoopExit(Node* node);
33 Reduction ReduceNode(Node* node); 34 Reduction ReduceNode(Node* node);
34 35
36 Reduction RemoveLoopExit(Node* node);
37
35 void TrimMergeOrPhi(Node* node, int size); 38 void TrimMergeOrPhi(Node* node, int size);
36 39
37 Graph* graph() const { return graph_; } 40 Graph* graph() const { return graph_; }
38 CommonOperatorBuilder* common() const { return common_; } 41 CommonOperatorBuilder* common() const { return common_; }
39 Node* dead() const { return dead_; } 42 Node* dead() const { return dead_; }
40 43
41 Graph* const graph_; 44 Graph* const graph_;
42 CommonOperatorBuilder* const common_; 45 CommonOperatorBuilder* const common_;
43 Node* const dead_; 46 Node* const dead_;
44 47
45 DISALLOW_COPY_AND_ASSIGN(DeadCodeElimination); 48 DISALLOW_COPY_AND_ASSIGN(DeadCodeElimination);
46 }; 49 };
47 50
48 } // namespace compiler 51 } // namespace compiler
49 } // namespace internal 52 } // namespace internal
50 } // namespace v8 53 } // namespace v8
51 54
52 #endif // V8_COMPILER_DEAD_CODE_ELIMINATION_H_ 55 #endif // V8_COMPILER_DEAD_CODE_ELIMINATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698