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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 // Type is empty. | 629 // Type is empty. |
630 CheckNotTyped(node); | 630 CheckNotTyped(node); |
631 break; | 631 break; |
632 case IrOpcode::kJSDeleteProperty: | 632 case IrOpcode::kJSDeleteProperty: |
633 case IrOpcode::kJSHasProperty: | 633 case IrOpcode::kJSHasProperty: |
634 case IrOpcode::kJSInstanceOf: | 634 case IrOpcode::kJSInstanceOf: |
635 case IrOpcode::kJSOrdinaryHasInstance: | 635 case IrOpcode::kJSOrdinaryHasInstance: |
636 // Type is Boolean. | 636 // Type is Boolean. |
637 CheckTypeIs(node, Type::Boolean()); | 637 CheckTypeIs(node, Type::Boolean()); |
638 break; | 638 break; |
| 639 case IrOpcode::kJSClassOf: |
| 640 // Type is InternaliedString \/ Null. |
| 641 CheckTypeIs(node, Type::InternalizedStringOrNull()); |
| 642 break; |
639 case IrOpcode::kJSTypeOf: | 643 case IrOpcode::kJSTypeOf: |
640 // Type is String. | 644 // Type is InternalizedString. |
641 CheckTypeIs(node, Type::String()); | 645 CheckTypeIs(node, Type::InternalizedString()); |
642 break; | 646 break; |
643 case IrOpcode::kJSGetSuperConstructor: | 647 case IrOpcode::kJSGetSuperConstructor: |
644 // We don't check the input for Type::Function because | 648 // We don't check the input for Type::Function because |
645 // this_function can be context-allocated. | 649 // this_function can be context-allocated. |
646 // Any -> Callable. | 650 // Any -> Callable. |
647 CheckValueInputIs(node, 0, Type::Any()); | 651 CheckValueInputIs(node, 0, Type::Any()); |
648 CheckTypeIs(node, Type::Callable()); | 652 CheckTypeIs(node, Type::Callable()); |
649 break; | 653 break; |
650 | 654 |
651 case IrOpcode::kJSLoadContext: | 655 case IrOpcode::kJSLoadContext: |
(...skipping 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1683 replacement->op()->EffectOutputCount() > 0); | 1687 replacement->op()->EffectOutputCount() > 0); |
1684 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1688 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
1685 replacement->opcode() == IrOpcode::kFrameState); | 1689 replacement->opcode() == IrOpcode::kFrameState); |
1686 } | 1690 } |
1687 | 1691 |
1688 #endif // DEBUG | 1692 #endif // DEBUG |
1689 | 1693 |
1690 } // namespace compiler | 1694 } // namespace compiler |
1691 } // namespace internal | 1695 } // namespace internal |
1692 } // namespace v8 | 1696 } // namespace v8 |
OLD | NEW |