OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/assembler.h" | 10 #include "src/assembler.h" |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 DCHECK(arguments > 0); // Disallow empty finishes. | 144 DCHECK(arguments > 0); // Disallow empty finishes. |
145 return new (zone_) Operator1<int>(IrOpcode::kFinish, Operator::kPure, 1, 1, | 145 return new (zone_) Operator1<int>(IrOpcode::kFinish, Operator::kPure, 1, 1, |
146 "Finish", arguments); | 146 "Finish", arguments); |
147 } | 147 } |
148 Operator* StateValues(int arguments) { | 148 Operator* StateValues(int arguments) { |
149 return new (zone_) Operator1<int>(IrOpcode::kStateValues, Operator::kPure, | 149 return new (zone_) Operator1<int>(IrOpcode::kStateValues, Operator::kPure, |
150 arguments, 1, "StateValues", arguments); | 150 arguments, 1, "StateValues", arguments); |
151 } | 151 } |
152 Operator* FrameState(BailoutId ast_id) { | 152 Operator* FrameState(BailoutId ast_id) { |
153 return new (zone_) Operator1<BailoutId>( | 153 return new (zone_) Operator1<BailoutId>( |
154 IrOpcode::kFrameState, Operator::kPure, 3, 1, "FrameState", ast_id); | 154 IrOpcode::kFrameState, Operator::kPure, 4, 1, "FrameState", ast_id); |
155 } | 155 } |
156 Operator* Call(CallDescriptor* descriptor) { | 156 Operator* Call(CallDescriptor* descriptor) { |
157 return new (zone_) CallOperator(descriptor, "Call"); | 157 return new (zone_) CallOperator(descriptor, "Call"); |
158 } | 158 } |
159 Operator* Projection(int index) { | 159 Operator* Projection(int index) { |
160 return new (zone_) Operator1<int>(IrOpcode::kProjection, Operator::kPure, 1, | 160 return new (zone_) Operator1<int>(IrOpcode::kProjection, Operator::kPure, 1, |
161 1, "Projection", index); | 161 1, "Projection", index); |
162 } | 162 } |
163 | 163 |
164 private: | 164 private: |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 | 290 |
291 template <typename T> | 291 template <typename T> |
292 inline T ValueOf(Operator* op) { | 292 inline T ValueOf(Operator* op) { |
293 return CommonOperatorTraits<T>::ValueOf(op); | 293 return CommonOperatorTraits<T>::ValueOf(op); |
294 } | 294 } |
295 } | 295 } |
296 } | 296 } |
297 } // namespace v8::internal::compiler | 297 } // namespace v8::internal::compiler |
298 | 298 |
299 #endif // V8_COMPILER_COMMON_OPERATOR_H_ | 299 #endif // V8_COMPILER_COMMON_OPERATOR_H_ |
OLD | NEW |