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

Side by Side Diff: src/compiler/common-operator.h

Issue 1193833002: [turbofan] Proper dead code elimination as regular reducer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Renamed DeadControl to Dead. Created 5 years, 6 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/ast-graph-builder.cc ('k') | src/compiler/common-operator.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_COMMON_OPERATOR_H_ 5 #ifndef V8_COMPILER_COMMON_OPERATOR_H_
6 #define V8_COMPILER_COMMON_OPERATOR_H_ 6 #define V8_COMPILER_COMMON_OPERATOR_H_
7 7
8 #include "src/compiler/frame-states.h" 8 #include "src/compiler/frame-states.h"
9 #include "src/compiler/machine-type.h" 9 #include "src/compiler/machine-type.h"
10 #include "src/unique.h" 10 #include "src/unique.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 int ParameterIndexOf(const Operator* const); 89 int ParameterIndexOf(const Operator* const);
90 const ParameterInfo& ParameterInfoOf(const Operator* const); 90 const ParameterInfo& ParameterInfoOf(const Operator* const);
91 91
92 92
93 // Interface for building common operators that can be used at any level of IR, 93 // Interface for building common operators that can be used at any level of IR,
94 // including JavaScript, mid-level, and low-level. 94 // including JavaScript, mid-level, and low-level.
95 class CommonOperatorBuilder final : public ZoneObject { 95 class CommonOperatorBuilder final : public ZoneObject {
96 public: 96 public:
97 explicit CommonOperatorBuilder(Zone* zone); 97 explicit CommonOperatorBuilder(Zone* zone);
98 98
99 const Operator* Dead();
99 const Operator* End(size_t control_input_count); 100 const Operator* End(size_t control_input_count);
100 const Operator* Branch(BranchHint = BranchHint::kNone); 101 const Operator* Branch(BranchHint = BranchHint::kNone);
101 const Operator* IfTrue(); 102 const Operator* IfTrue();
102 const Operator* IfFalse(); 103 const Operator* IfFalse();
103 const Operator* IfSuccess(); 104 const Operator* IfSuccess();
104 const Operator* IfException(IfExceptionHint hint); 105 const Operator* IfException(IfExceptionHint hint);
105 const Operator* Switch(size_t control_output_count); 106 const Operator* Switch(size_t control_output_count);
106 const Operator* IfValue(int32_t value); 107 const Operator* IfValue(int32_t value);
107 const Operator* IfDefault(); 108 const Operator* IfDefault();
108 const Operator* Throw(); 109 const Operator* Throw();
109 const Operator* Deoptimize(); 110 const Operator* Deoptimize();
110 const Operator* Return(); 111 const Operator* Return();
111 const Operator* Terminate(); 112 const Operator* Terminate();
112 113
113 const Operator* DeadValue();
114 const Operator* DeadEffect();
115 const Operator* DeadControl();
116
117 const Operator* Start(int num_formal_parameters); 114 const Operator* Start(int num_formal_parameters);
118 const Operator* Loop(int control_input_count); 115 const Operator* Loop(int control_input_count);
119 const Operator* Merge(int control_input_count); 116 const Operator* Merge(int control_input_count);
120 const Operator* Parameter(int index, const char* debug_name = nullptr); 117 const Operator* Parameter(int index, const char* debug_name = nullptr);
121 118
122 const Operator* OsrNormalEntry(); 119 const Operator* OsrNormalEntry();
123 const Operator* OsrLoopEntry(); 120 const Operator* OsrLoopEntry();
124 const Operator* OsrValue(int index); 121 const Operator* OsrValue(int index);
125 122
126 const Operator* Int32Constant(int32_t); 123 const Operator* Int32Constant(int32_t);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 Zone* const zone_; 155 Zone* const zone_;
159 156
160 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); 157 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder);
161 }; 158 };
162 159
163 } // namespace compiler 160 } // namespace compiler
164 } // namespace internal 161 } // namespace internal
165 } // namespace v8 162 } // namespace v8
166 163
167 #endif // V8_COMPILER_COMMON_OPERATOR_H_ 164 #endif // V8_COMPILER_COMMON_OPERATOR_H_
OLDNEW
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/compiler/common-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698