| 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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 597 break; | 597 break; |
| 598 case IrOpcode::kJSStoreProperty: | 598 case IrOpcode::kJSStoreProperty: |
| 599 case IrOpcode::kJSStoreNamed: | 599 case IrOpcode::kJSStoreNamed: |
| 600 case IrOpcode::kJSStoreGlobal: | 600 case IrOpcode::kJSStoreGlobal: |
| 601 // Type is empty. | 601 // Type is empty. |
| 602 CheckNotTyped(node); | 602 CheckNotTyped(node); |
| 603 break; | 603 break; |
| 604 case IrOpcode::kJSDeleteProperty: | 604 case IrOpcode::kJSDeleteProperty: |
| 605 case IrOpcode::kJSHasProperty: | 605 case IrOpcode::kJSHasProperty: |
| 606 case IrOpcode::kJSInstanceOf: | 606 case IrOpcode::kJSInstanceOf: |
| 607 case IrOpcode::kJSOrdinaryHasInstance: |
| 607 // Type is Boolean. | 608 // Type is Boolean. |
| 608 CheckTypeIs(node, Type::Boolean()); | 609 CheckTypeIs(node, Type::Boolean()); |
| 609 break; | 610 break; |
| 610 case IrOpcode::kJSTypeOf: | 611 case IrOpcode::kJSTypeOf: |
| 611 // Type is String. | 612 // Type is String. |
| 612 CheckTypeIs(node, Type::String()); | 613 CheckTypeIs(node, Type::String()); |
| 613 break; | 614 break; |
| 614 | 615 |
| 615 case IrOpcode::kJSLoadContext: | 616 case IrOpcode::kJSLoadContext: |
| 616 // Type can be anything. | 617 // Type can be anything. |
| (...skipping 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1628 replacement->op()->EffectOutputCount() > 0); | 1629 replacement->op()->EffectOutputCount() > 0); |
| 1629 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1630 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
| 1630 replacement->opcode() == IrOpcode::kFrameState); | 1631 replacement->opcode() == IrOpcode::kFrameState); |
| 1631 } | 1632 } |
| 1632 | 1633 |
| 1633 #endif // DEBUG | 1634 #endif // DEBUG |
| 1634 | 1635 |
| 1635 } // namespace compiler | 1636 } // namespace compiler |
| 1636 } // namespace internal | 1637 } // namespace internal |
| 1637 } // namespace v8 | 1638 } // namespace v8 |
| OLD | NEW |