| 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 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 CheckTypeIs(node, Type::OtherObject()); | 572 CheckTypeIs(node, Type::OtherObject()); |
| 573 break; | 573 break; |
| 574 case IrOpcode::kJSCreateClosure: | 574 case IrOpcode::kJSCreateClosure: |
| 575 // Type is Function. | 575 // Type is Function. |
| 576 CheckTypeIs(node, Type::Function()); | 576 CheckTypeIs(node, Type::Function()); |
| 577 break; | 577 break; |
| 578 case IrOpcode::kJSCreateIterResultObject: | 578 case IrOpcode::kJSCreateIterResultObject: |
| 579 // Type is OtherObject. | 579 // Type is OtherObject. |
| 580 CheckTypeIs(node, Type::OtherObject()); | 580 CheckTypeIs(node, Type::OtherObject()); |
| 581 break; | 581 break; |
| 582 case IrOpcode::kJSCreateKeyValueArray: |
| 583 // Type is OtherObject. |
| 584 CheckTypeIs(node, Type::OtherObject()); |
| 585 break; |
| 582 case IrOpcode::kJSCreateLiteralArray: | 586 case IrOpcode::kJSCreateLiteralArray: |
| 583 case IrOpcode::kJSCreateLiteralObject: | 587 case IrOpcode::kJSCreateLiteralObject: |
| 584 case IrOpcode::kJSCreateLiteralRegExp: | 588 case IrOpcode::kJSCreateLiteralRegExp: |
| 585 // Type is OtherObject. | 589 // Type is OtherObject. |
| 586 CheckTypeIs(node, Type::OtherObject()); | 590 CheckTypeIs(node, Type::OtherObject()); |
| 587 break; | 591 break; |
| 588 case IrOpcode::kJSLoadProperty: | 592 case IrOpcode::kJSLoadProperty: |
| 589 case IrOpcode::kJSLoadNamed: | 593 case IrOpcode::kJSLoadNamed: |
| 590 case IrOpcode::kJSLoadGlobal: | 594 case IrOpcode::kJSLoadGlobal: |
| 591 // Type can be anything. | 595 // Type can be anything. |
| (...skipping 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1624 replacement->op()->EffectOutputCount() > 0); | 1628 replacement->op()->EffectOutputCount() > 0); |
| 1625 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1629 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
| 1626 replacement->opcode() == IrOpcode::kFrameState); | 1630 replacement->opcode() == IrOpcode::kFrameState); |
| 1627 } | 1631 } |
| 1628 | 1632 |
| 1629 #endif // DEBUG | 1633 #endif // DEBUG |
| 1630 | 1634 |
| 1631 } // namespace compiler | 1635 } // namespace compiler |
| 1632 } // namespace internal | 1636 } // namespace internal |
| 1633 } // namespace v8 | 1637 } // namespace v8 |
| OLD | NEW |