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/verifier.h" | 5 #include "src/compiler/verifier.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <deque> | 8 #include <deque> |
9 #include <queue> | 9 #include <queue> |
10 #include <sstream> | 10 #include <sstream> |
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 break; | 674 break; |
675 } | 675 } |
676 | 676 |
677 case IrOpcode::kJSCallConstruct: | 677 case IrOpcode::kJSCallConstruct: |
678 case IrOpcode::kJSCallConstructWithSpread: | 678 case IrOpcode::kJSCallConstructWithSpread: |
679 case IrOpcode::kJSConvertReceiver: | 679 case IrOpcode::kJSConvertReceiver: |
680 // Type is Receiver. | 680 // Type is Receiver. |
681 CheckTypeIs(node, Type::Receiver()); | 681 CheckTypeIs(node, Type::Receiver()); |
682 break; | 682 break; |
683 case IrOpcode::kJSCallFunction: | 683 case IrOpcode::kJSCallFunction: |
| 684 case IrOpcode::kJSCallFunctionWithSpread: |
684 case IrOpcode::kJSCallRuntime: | 685 case IrOpcode::kJSCallRuntime: |
685 // Type can be anything. | 686 // Type can be anything. |
686 CheckTypeIs(node, Type::Any()); | 687 CheckTypeIs(node, Type::Any()); |
687 break; | 688 break; |
688 | 689 |
689 case IrOpcode::kJSForInPrepare: { | 690 case IrOpcode::kJSForInPrepare: { |
690 // TODO(bmeurer): What are the constraints on thse? | 691 // TODO(bmeurer): What are the constraints on thse? |
691 CheckTypeIs(node, Type::Any()); | 692 CheckTypeIs(node, Type::Any()); |
692 break; | 693 break; |
693 } | 694 } |
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1687 replacement->op()->EffectOutputCount() > 0); | 1688 replacement->op()->EffectOutputCount() > 0); |
1688 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1689 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
1689 replacement->opcode() == IrOpcode::kFrameState); | 1690 replacement->opcode() == IrOpcode::kFrameState); |
1690 } | 1691 } |
1691 | 1692 |
1692 #endif // DEBUG | 1693 #endif // DEBUG |
1693 | 1694 |
1694 } // namespace compiler | 1695 } // namespace compiler |
1695 } // namespace internal | 1696 } // namespace internal |
1696 } // namespace v8 | 1697 } // namespace v8 |
OLD | NEW |