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 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 case IrOpcode::kJSHasProperty: | 628 case IrOpcode::kJSHasProperty: |
629 case IrOpcode::kJSInstanceOf: | 629 case IrOpcode::kJSInstanceOf: |
630 case IrOpcode::kJSOrdinaryHasInstance: | 630 case IrOpcode::kJSOrdinaryHasInstance: |
631 // Type is Boolean. | 631 // Type is Boolean. |
632 CheckTypeIs(node, Type::Boolean()); | 632 CheckTypeIs(node, Type::Boolean()); |
633 break; | 633 break; |
634 case IrOpcode::kJSTypeOf: | 634 case IrOpcode::kJSTypeOf: |
635 // Type is String. | 635 // Type is String. |
636 CheckTypeIs(node, Type::String()); | 636 CheckTypeIs(node, Type::String()); |
637 break; | 637 break; |
| 638 case IrOpcode::kJSGetSuperConstructor: |
| 639 // Function -> Callable. |
| 640 CheckValueInputIs(node, 0, Type::Function()); |
| 641 CheckTypeIs(node, Type::Callable()); |
| 642 break; |
638 | 643 |
639 case IrOpcode::kJSLoadContext: | 644 case IrOpcode::kJSLoadContext: |
640 // Type can be anything. | 645 // Type can be anything. |
641 CheckTypeIs(node, Type::Any()); | 646 CheckTypeIs(node, Type::Any()); |
642 break; | 647 break; |
643 case IrOpcode::kJSStoreContext: | 648 case IrOpcode::kJSStoreContext: |
644 // Type is empty. | 649 // Type is empty. |
645 CheckNotTyped(node); | 650 CheckNotTyped(node); |
646 break; | 651 break; |
647 case IrOpcode::kJSCreateFunctionContext: | 652 case IrOpcode::kJSCreateFunctionContext: |
(...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1658 replacement->op()->EffectOutputCount() > 0); | 1663 replacement->op()->EffectOutputCount() > 0); |
1659 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1664 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
1660 replacement->opcode() == IrOpcode::kFrameState); | 1665 replacement->opcode() == IrOpcode::kFrameState); |
1661 } | 1666 } |
1662 | 1667 |
1663 #endif // DEBUG | 1668 #endif // DEBUG |
1664 | 1669 |
1665 } // namespace compiler | 1670 } // namespace compiler |
1666 } // namespace internal | 1671 } // namespace internal |
1667 } // namespace v8 | 1672 } // namespace v8 |
OLD | NEW |