| 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 BailoutId bailout_id, OutputFrameStateCombine combine) { | 209 FrameStateType type, BailoutId bailout_id, |
| 210 OutputFrameStateCombine state_combine, MaybeHandle<JSFunction> jsfunction) { |
| 210 return new (zone()) Operator1<FrameStateCallInfo>( | 211 return new (zone()) Operator1<FrameStateCallInfo>( |
| 211 IrOpcode::kFrameState, Operator::kPure, 4, 1, "FrameState", | 212 IrOpcode::kFrameState, Operator::kPure, 4, 1, "FrameState", |
| 212 FrameStateCallInfo(bailout_id, combine)); | 213 FrameStateCallInfo(type, bailout_id, state_combine, jsfunction)); |
| 213 } | 214 } |
| 214 | 215 |
| 215 | 216 |
| 216 const Operator* CommonOperatorBuilder::Call(const CallDescriptor* descriptor) { | 217 const Operator* CommonOperatorBuilder::Call(const CallDescriptor* descriptor) { |
| 217 class CallOperator FINAL : public Operator1<const CallDescriptor*> { | 218 class CallOperator FINAL : public Operator1<const CallDescriptor*> { |
| 218 public: | 219 public: |
| 219 // TODO(titzer): Operator still uses int, whereas CallDescriptor uses | 220 // TODO(titzer): Operator still uses int, whereas CallDescriptor uses |
| 220 // size_t. | 221 // size_t. |
| 221 CallOperator(const CallDescriptor* descriptor, const char* mnemonic) | 222 CallOperator(const CallDescriptor* descriptor, const char* mnemonic) |
| 222 : Operator1<const CallDescriptor*>( | 223 : Operator1<const CallDescriptor*>( |
| (...skipping 12 matching lines...) Expand all Loading... |
| 235 | 236 |
| 236 | 237 |
| 237 const Operator* CommonOperatorBuilder::Projection(size_t index) { | 238 const Operator* CommonOperatorBuilder::Projection(size_t index) { |
| 238 return new (zone()) Operator1<size_t>(IrOpcode::kProjection, Operator::kPure, | 239 return new (zone()) Operator1<size_t>(IrOpcode::kProjection, Operator::kPure, |
| 239 1, 1, "Projection", index); | 240 1, 1, "Projection", index); |
| 240 } | 241 } |
| 241 | 242 |
| 242 } // namespace compiler | 243 } // namespace compiler |
| 243 } // namespace internal | 244 } // namespace internal |
| 244 } // namespace v8 | 245 } // namespace v8 |
| OLD | NEW |