OLD | NEW |
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 Loading... |
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(); | |
100 const Operator* End(size_t control_input_count); | 99 const Operator* End(size_t control_input_count); |
101 const Operator* Branch(BranchHint = BranchHint::kNone); | 100 const Operator* Branch(BranchHint = BranchHint::kNone); |
102 const Operator* IfTrue(); | 101 const Operator* IfTrue(); |
103 const Operator* IfFalse(); | 102 const Operator* IfFalse(); |
104 const Operator* IfSuccess(); | 103 const Operator* IfSuccess(); |
105 const Operator* IfException(IfExceptionHint hint); | 104 const Operator* IfException(IfExceptionHint hint); |
106 const Operator* Switch(size_t control_output_count); | 105 const Operator* Switch(size_t control_output_count); |
107 const Operator* IfValue(int32_t value); | 106 const Operator* IfValue(int32_t value); |
108 const Operator* IfDefault(); | 107 const Operator* IfDefault(); |
109 const Operator* Throw(); | 108 const Operator* Throw(); |
110 const Operator* Deoptimize(); | 109 const Operator* Deoptimize(); |
111 const Operator* Return(); | 110 const Operator* Return(); |
112 const Operator* Terminate(); | 111 const Operator* Terminate(); |
113 | 112 |
| 113 const Operator* Dead(); |
| 114 const Operator* DeadValue(); |
| 115 const Operator* DeadEffect(); |
| 116 |
114 const Operator* Start(int num_formal_parameters); | 117 const Operator* Start(int num_formal_parameters); |
115 const Operator* Loop(int control_input_count); | 118 const Operator* Loop(int control_input_count); |
116 const Operator* Merge(int control_input_count); | 119 const Operator* Merge(int control_input_count); |
117 const Operator* Parameter(int index, const char* debug_name = nullptr); | 120 const Operator* Parameter(int index, const char* debug_name = nullptr); |
118 | 121 |
119 const Operator* OsrNormalEntry(); | 122 const Operator* OsrNormalEntry(); |
120 const Operator* OsrLoopEntry(); | 123 const Operator* OsrLoopEntry(); |
121 const Operator* OsrValue(int index); | 124 const Operator* OsrValue(int index); |
122 | 125 |
123 const Operator* Int32Constant(int32_t); | 126 const Operator* Int32Constant(int32_t); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 Zone* const zone_; | 158 Zone* const zone_; |
156 | 159 |
157 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); | 160 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); |
158 }; | 161 }; |
159 | 162 |
160 } // namespace compiler | 163 } // namespace compiler |
161 } // namespace internal | 164 } // namespace internal |
162 } // namespace v8 | 165 } // namespace v8 |
163 | 166 |
164 #endif // V8_COMPILER_COMMON_OPERATOR_H_ | 167 #endif // V8_COMPILER_COMMON_OPERATOR_H_ |
OLD | NEW |