| 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/compiler/opcodes.h" | 10 #include "src/compiler/opcodes.h" |
| (...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 const ZoneVector<MachineType>* types) { | 644 const ZoneVector<MachineType>* types) { |
| 645 return new (zone()) Operator1<const ZoneVector<MachineType>*>( // -- | 645 return new (zone()) Operator1<const ZoneVector<MachineType>*>( // -- |
| 646 IrOpcode::kTypedStateValues, Operator::kPure, // opcode | 646 IrOpcode::kTypedStateValues, Operator::kPure, // opcode |
| 647 "TypedStateValues", // name | 647 "TypedStateValues", // name |
| 648 static_cast<int>(types->size()), 0, 0, 1, 0, 0, types); // counts | 648 static_cast<int>(types->size()), 0, 0, 1, 0, 0, types); // counts |
| 649 } | 649 } |
| 650 | 650 |
| 651 | 651 |
| 652 const Operator* CommonOperatorBuilder::FrameState( | 652 const Operator* CommonOperatorBuilder::FrameState( |
| 653 FrameStateType type, BailoutId bailout_id, | 653 FrameStateType type, BailoutId bailout_id, |
| 654 OutputFrameStateCombine state_combine) { | 654 OutputFrameStateCombine state_combine, |
| 655 return new (zone()) Operator1<FrameStateCallInfo>( // -- | 655 MaybeHandle<SharedFunctionInfo> shared_info) { |
| 656 IrOpcode::kFrameState, Operator::kPure, // opcode | 656 FrameStateCallInfo state_info(type, bailout_id, state_combine, shared_info); |
| 657 "FrameState", // name | 657 return new (zone()) Operator1<FrameStateCallInfo>( // -- |
| 658 5, 0, 0, 1, 0, 0, // counts | 658 IrOpcode::kFrameState, Operator::kPure, // opcode |
| 659 FrameStateCallInfo(type, bailout_id, state_combine)); // parameter | 659 "FrameState", // name |
| 660 5, 0, 0, 1, 0, 0, // counts |
| 661 state_info); // parameter |
| 660 } | 662 } |
| 661 | 663 |
| 662 | 664 |
| 663 const Operator* CommonOperatorBuilder::Call(const CallDescriptor* descriptor) { | 665 const Operator* CommonOperatorBuilder::Call(const CallDescriptor* descriptor) { |
| 664 class CallOperator final : public Operator1<const CallDescriptor*> { | 666 class CallOperator final : public Operator1<const CallDescriptor*> { |
| 665 public: | 667 public: |
| 666 explicit CallOperator(const CallDescriptor* descriptor) | 668 explicit CallOperator(const CallDescriptor* descriptor) |
| 667 : Operator1<const CallDescriptor*>( | 669 : Operator1<const CallDescriptor*>( |
| 668 IrOpcode::kCall, descriptor->properties(), "Call", | 670 IrOpcode::kCall, descriptor->properties(), "Call", |
| 669 descriptor->InputCount() + descriptor->FrameStateCount(), | 671 descriptor->InputCount() + descriptor->FrameStateCount(), |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 732 } else { | 734 } else { |
| 733 UNREACHABLE(); | 735 UNREACHABLE(); |
| 734 return nullptr; | 736 return nullptr; |
| 735 } | 737 } |
| 736 } | 738 } |
| 737 | 739 |
| 738 | 740 |
| 739 } // namespace compiler | 741 } // namespace compiler |
| 740 } // namespace internal | 742 } // namespace internal |
| 741 } // namespace v8 | 743 } // namespace v8 |
| OLD | NEW |