| 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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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::kJSTypeOf: | 639 case IrOpcode::kJSTypeOf: |
| 640 // Type is String. | 640 // Type is String. |
| 641 CheckTypeIs(node, Type::String()); | 641 CheckTypeIs(node, Type::String()); |
| 642 break; | 642 break; |
| 643 case IrOpcode::kJSGetSuperConstructor: |
| 644 // We don't check the input for Type::Function because |
| 645 // this_function can be context-allocated. |
| 646 // Any -> Callable. |
| 647 CheckValueInputIs(node, 0, Type::Any()); |
| 648 CheckTypeIs(node, Type::Callable()); |
| 649 break; |
| 643 | 650 |
| 644 case IrOpcode::kJSLoadContext: | 651 case IrOpcode::kJSLoadContext: |
| 645 // Type can be anything. | 652 // Type can be anything. |
| 646 CheckTypeIs(node, Type::Any()); | 653 CheckTypeIs(node, Type::Any()); |
| 647 break; | 654 break; |
| 648 case IrOpcode::kJSStoreContext: | 655 case IrOpcode::kJSStoreContext: |
| 649 // Type is empty. | 656 // Type is empty. |
| 650 CheckNotTyped(node); | 657 CheckNotTyped(node); |
| 651 break; | 658 break; |
| 652 case IrOpcode::kJSCreateFunctionContext: | 659 case IrOpcode::kJSCreateFunctionContext: |
| (...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1663 replacement->op()->EffectOutputCount() > 0); | 1670 replacement->op()->EffectOutputCount() > 0); |
| 1664 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1671 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
| 1665 replacement->opcode() == IrOpcode::kFrameState); | 1672 replacement->opcode() == IrOpcode::kFrameState); |
| 1666 } | 1673 } |
| 1667 | 1674 |
| 1668 #endif // DEBUG | 1675 #endif // DEBUG |
| 1669 | 1676 |
| 1670 } // namespace compiler | 1677 } // namespace compiler |
| 1671 } // namespace internal | 1678 } // namespace internal |
| 1672 } // namespace v8 | 1679 } // namespace v8 |
| OLD | NEW |