| 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 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 break; | 675 break; |
| 676 } | 676 } |
| 677 | 677 |
| 678 case IrOpcode::kJSConstruct: | 678 case IrOpcode::kJSConstruct: |
| 679 case IrOpcode::kJSConstructWithSpread: | 679 case IrOpcode::kJSConstructWithSpread: |
| 680 case IrOpcode::kJSConvertReceiver: | 680 case IrOpcode::kJSConvertReceiver: |
| 681 // Type is Receiver. | 681 // Type is Receiver. |
| 682 CheckTypeIs(node, Type::Receiver()); | 682 CheckTypeIs(node, Type::Receiver()); |
| 683 break; | 683 break; |
| 684 case IrOpcode::kJSCallForwardVarargs: | 684 case IrOpcode::kJSCallForwardVarargs: |
| 685 case IrOpcode::kJSCallFunction: | 685 case IrOpcode::kJSCall: |
| 686 case IrOpcode::kJSCallFunctionWithSpread: | 686 case IrOpcode::kJSCallWithSpread: |
| 687 case IrOpcode::kJSCallRuntime: | 687 case IrOpcode::kJSCallRuntime: |
| 688 // Type can be anything. | 688 // Type can be anything. |
| 689 CheckTypeIs(node, Type::Any()); | 689 CheckTypeIs(node, Type::Any()); |
| 690 break; | 690 break; |
| 691 | 691 |
| 692 case IrOpcode::kJSForInPrepare: { | 692 case IrOpcode::kJSForInPrepare: { |
| 693 // TODO(bmeurer): What are the constraints on thse? | 693 // TODO(bmeurer): What are the constraints on thse? |
| 694 CheckTypeIs(node, Type::Any()); | 694 CheckTypeIs(node, Type::Any()); |
| 695 break; | 695 break; |
| 696 } | 696 } |
| (...skipping 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1701 replacement->op()->EffectOutputCount() > 0); | 1701 replacement->op()->EffectOutputCount() > 0); |
| 1702 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1702 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
| 1703 replacement->opcode() == IrOpcode::kFrameState); | 1703 replacement->opcode() == IrOpcode::kFrameState); |
| 1704 } | 1704 } |
| 1705 | 1705 |
| 1706 #endif // DEBUG | 1706 #endif // DEBUG |
| 1707 | 1707 |
| 1708 } // namespace compiler | 1708 } // namespace compiler |
| 1709 } // namespace internal | 1709 } // namespace internal |
| 1710 } // namespace v8 | 1710 } // namespace v8 |
| OLD | NEW |