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 #include "src/compiler/common-operator.h" | 5 #include "src/compiler/common-operator.h" |
6 | 6 |
7 #include "src/assembler.h" | 7 #include "src/assembler.h" |
8 #include "src/base/lazy-instance.h" | 8 #include "src/base/lazy-instance.h" |
9 #include "src/compiler/linkage.h" | 9 #include "src/compiler/linkage.h" |
10 #include "src/unique.h" | 10 #include "src/unique.h" |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 } | 199 } |
200 | 200 |
201 | 201 |
202 const Operator* CommonOperatorBuilder::StateValues(int arguments) { | 202 const Operator* CommonOperatorBuilder::StateValues(int arguments) { |
203 return new (zone()) Operator1<int>(IrOpcode::kStateValues, Operator::kPure, | 203 return new (zone()) Operator1<int>(IrOpcode::kStateValues, Operator::kPure, |
204 arguments, 1, "StateValues", arguments); | 204 arguments, 1, "StateValues", arguments); |
205 } | 205 } |
206 | 206 |
207 | 207 |
208 const Operator* CommonOperatorBuilder::FrameState( | 208 const Operator* CommonOperatorBuilder::FrameState( |
209 FrameStateType type, BailoutId bailout_id, | 209 BailoutId bailout_id, OutputFrameStateCombine combine) { |
210 OutputFrameStateCombine state_combine, MaybeHandle<JSFunction> jsfunction) { | |
211 return new (zone()) Operator1<FrameStateCallInfo>( | 210 return new (zone()) Operator1<FrameStateCallInfo>( |
212 IrOpcode::kFrameState, Operator::kPure, 4, 1, "FrameState", | 211 IrOpcode::kFrameState, Operator::kPure, 4, 1, "FrameState", |
213 FrameStateCallInfo(type, bailout_id, state_combine, jsfunction)); | 212 FrameStateCallInfo(bailout_id, combine)); |
214 } | 213 } |
215 | 214 |
216 | 215 |
217 const Operator* CommonOperatorBuilder::Call(const CallDescriptor* descriptor) { | 216 const Operator* CommonOperatorBuilder::Call(const CallDescriptor* descriptor) { |
218 class CallOperator FINAL : public Operator1<const CallDescriptor*> { | 217 class CallOperator FINAL : public Operator1<const CallDescriptor*> { |
219 public: | 218 public: |
220 // TODO(titzer): Operator still uses int, whereas CallDescriptor uses | 219 // TODO(titzer): Operator still uses int, whereas CallDescriptor uses |
221 // size_t. | 220 // size_t. |
222 CallOperator(const CallDescriptor* descriptor, const char* mnemonic) | 221 CallOperator(const CallDescriptor* descriptor, const char* mnemonic) |
223 : Operator1<const CallDescriptor*>( | 222 : Operator1<const CallDescriptor*>( |
(...skipping 12 matching lines...) Expand all Loading... |
236 | 235 |
237 | 236 |
238 const Operator* CommonOperatorBuilder::Projection(size_t index) { | 237 const Operator* CommonOperatorBuilder::Projection(size_t index) { |
239 return new (zone()) Operator1<size_t>(IrOpcode::kProjection, Operator::kPure, | 238 return new (zone()) Operator1<size_t>(IrOpcode::kProjection, Operator::kPure, |
240 1, 1, "Projection", index); | 239 1, 1, "Projection", index); |
241 } | 240 } |
242 | 241 |
243 } // namespace compiler | 242 } // namespace compiler |
244 } // namespace internal | 243 } // namespace internal |
245 } // namespace v8 | 244 } // namespace v8 |
OLD | NEW |