| 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 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 580 break; | 580 break; |
| 581 case IrOpcode::kJSStoreProperty: | 581 case IrOpcode::kJSStoreProperty: |
| 582 case IrOpcode::kJSStoreNamed: | 582 case IrOpcode::kJSStoreNamed: |
| 583 case IrOpcode::kJSStoreGlobal: | 583 case IrOpcode::kJSStoreGlobal: |
| 584 // Type is empty. | 584 // Type is empty. |
| 585 CheckNotTyped(node); | 585 CheckNotTyped(node); |
| 586 break; | 586 break; |
| 587 case IrOpcode::kJSDeleteProperty: | 587 case IrOpcode::kJSDeleteProperty: |
| 588 case IrOpcode::kJSHasProperty: | 588 case IrOpcode::kJSHasProperty: |
| 589 case IrOpcode::kJSInstanceOf: | 589 case IrOpcode::kJSInstanceOf: |
| 590 case IrOpcode::kJSOrdinaryHasInstance: |
| 590 // Type is Boolean. | 591 // Type is Boolean. |
| 591 CheckTypeIs(node, Type::Boolean()); | 592 CheckTypeIs(node, Type::Boolean()); |
| 592 break; | 593 break; |
| 593 case IrOpcode::kJSTypeOf: | 594 case IrOpcode::kJSTypeOf: |
| 594 // Type is String. | 595 // Type is String. |
| 595 CheckTypeIs(node, Type::String()); | 596 CheckTypeIs(node, Type::String()); |
| 596 break; | 597 break; |
| 597 | 598 |
| 598 case IrOpcode::kJSLoadContext: | 599 case IrOpcode::kJSLoadContext: |
| 599 // Type can be anything. | 600 // Type can be anything. |
| (...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1600 replacement->op()->EffectOutputCount() > 0); | 1601 replacement->op()->EffectOutputCount() > 0); |
| 1601 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1602 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
| 1602 replacement->opcode() == IrOpcode::kFrameState); | 1603 replacement->opcode() == IrOpcode::kFrameState); |
| 1603 } | 1604 } |
| 1604 | 1605 |
| 1605 #endif // DEBUG | 1606 #endif // DEBUG |
| 1606 | 1607 |
| 1607 } // namespace compiler | 1608 } // namespace compiler |
| 1608 } // namespace internal | 1609 } // namespace internal |
| 1609 } // namespace v8 | 1610 } // namespace v8 |
| OLD | NEW |