| 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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 597 break; | 597 break; |
| 598 } | 598 } |
| 599 // Uncached. | 599 // Uncached. |
| 600 return new (zone()) Operator( // -- | 600 return new (zone()) Operator( // -- |
| 601 IrOpcode::kStateValues, Operator::kPure, // opcode | 601 IrOpcode::kStateValues, Operator::kPure, // opcode |
| 602 "StateValues", // name | 602 "StateValues", // name |
| 603 arguments, 0, 0, 1, 0, 0); // counts | 603 arguments, 0, 0, 1, 0, 0); // counts |
| 604 } | 604 } |
| 605 | 605 |
| 606 | 606 |
| 607 const Operator* CommonOperatorBuilder::TypedStateValues( |
| 608 const ZoneVector<MachineType>* types) { |
| 609 return new (zone()) Operator1<const ZoneVector<MachineType>*>( // -- |
| 610 IrOpcode::kTypedStateValues, Operator::kPure, // opcode |
| 611 "TypedStateValues", // name |
| 612 static_cast<int>(types->size()), 0, 0, 1, 0, 0, types); // counts |
| 613 } |
| 614 |
| 615 |
| 607 const Operator* CommonOperatorBuilder::FrameState( | 616 const Operator* CommonOperatorBuilder::FrameState( |
| 608 FrameStateType type, BailoutId bailout_id, | 617 FrameStateType type, BailoutId bailout_id, |
| 609 OutputFrameStateCombine state_combine, MaybeHandle<JSFunction> jsfunction) { | 618 OutputFrameStateCombine state_combine, MaybeHandle<JSFunction> jsfunction) { |
| 610 return new (zone()) Operator1<FrameStateCallInfo>( // -- | 619 return new (zone()) Operator1<FrameStateCallInfo>( // -- |
| 611 IrOpcode::kFrameState, Operator::kPure, // opcode | 620 IrOpcode::kFrameState, Operator::kPure, // opcode |
| 612 "FrameState", // name | 621 "FrameState", // name |
| 613 4, 0, 0, 1, 0, 0, // counts | 622 4, 0, 0, 1, 0, 0, // counts |
| 614 FrameStateCallInfo(type, bailout_id, state_combine, jsfunction)); | 623 FrameStateCallInfo(type, bailout_id, state_combine, jsfunction)); |
| 615 } | 624 } |
| 616 | 625 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 669 } else { | 678 } else { |
| 670 UNREACHABLE(); | 679 UNREACHABLE(); |
| 671 return nullptr; | 680 return nullptr; |
| 672 } | 681 } |
| 673 } | 682 } |
| 674 | 683 |
| 675 | 684 |
| 676 } // namespace compiler | 685 } // namespace compiler |
| 677 } // namespace internal | 686 } // namespace internal |
| 678 } // namespace v8 | 687 } // namespace v8 |
| OLD | NEW |