| 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 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 const ZoneVector<MachineType>* types) { | 602 const ZoneVector<MachineType>* types) { |
| 603 return new (zone()) Operator1<const ZoneVector<MachineType>*>( // -- | 603 return new (zone()) Operator1<const ZoneVector<MachineType>*>( // -- |
| 604 IrOpcode::kTypedStateValues, Operator::kPure, // opcode | 604 IrOpcode::kTypedStateValues, Operator::kPure, // opcode |
| 605 "TypedStateValues", // name | 605 "TypedStateValues", // name |
| 606 static_cast<int>(types->size()), 0, 0, 1, 0, 0, types); // counts | 606 static_cast<int>(types->size()), 0, 0, 1, 0, 0, types); // counts |
| 607 } | 607 } |
| 608 | 608 |
| 609 | 609 |
| 610 const Operator* CommonOperatorBuilder::FrameState( | 610 const Operator* CommonOperatorBuilder::FrameState( |
| 611 FrameStateType type, BailoutId bailout_id, | 611 FrameStateType type, BailoutId bailout_id, |
| 612 OutputFrameStateCombine state_combine, MaybeHandle<JSFunction> jsfunction) { | 612 OutputFrameStateCombine state_combine) { |
| 613 return new (zone()) Operator1<FrameStateCallInfo>( // -- | 613 return new (zone()) Operator1<FrameStateCallInfo>( // -- |
| 614 IrOpcode::kFrameState, Operator::kPure, // opcode | 614 IrOpcode::kFrameState, Operator::kPure, // opcode |
| 615 "FrameState", // name | 615 "FrameState", // name |
| 616 4, 0, 0, 1, 0, 0, // counts | 616 5, 0, 0, 1, 0, 0, // counts |
| 617 FrameStateCallInfo(type, bailout_id, state_combine, jsfunction)); | 617 FrameStateCallInfo(type, bailout_id, state_combine)); // parameter |
| 618 } | 618 } |
| 619 | 619 |
| 620 | 620 |
| 621 const Operator* CommonOperatorBuilder::Call(const CallDescriptor* descriptor) { | 621 const Operator* CommonOperatorBuilder::Call(const CallDescriptor* descriptor) { |
| 622 class CallOperator final : public Operator1<const CallDescriptor*> { | 622 class CallOperator final : public Operator1<const CallDescriptor*> { |
| 623 public: | 623 public: |
| 624 explicit CallOperator(const CallDescriptor* descriptor) | 624 explicit CallOperator(const CallDescriptor* descriptor) |
| 625 : Operator1<const CallDescriptor*>( | 625 : Operator1<const CallDescriptor*>( |
| 626 IrOpcode::kCall, descriptor->properties(), "Call", | 626 IrOpcode::kCall, descriptor->properties(), "Call", |
| 627 descriptor->InputCount() + descriptor->FrameStateCount(), | 627 descriptor->InputCount() + descriptor->FrameStateCount(), |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 690 } else { | 690 } else { |
| 691 UNREACHABLE(); | 691 UNREACHABLE(); |
| 692 return nullptr; | 692 return nullptr; |
| 693 } | 693 } |
| 694 } | 694 } |
| 695 | 695 |
| 696 | 696 |
| 697 } // namespace compiler | 697 } // namespace compiler |
| 698 } // namespace internal | 698 } // namespace internal |
| 699 } // namespace v8 | 699 } // namespace v8 |
| OLD | NEW |