| 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 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 // Type is Context, and operand is Internal. | 652 // Type is Context, and operand is Internal. |
| 653 Node* context = NodeProperties::GetContextInput(node); | 653 Node* context = NodeProperties::GetContextInput(node); |
| 654 // TODO(bmeurer): This should say CheckTypeIs, but we don't have type | 654 // TODO(bmeurer): This should say CheckTypeIs, but we don't have type |
| 655 // OtherInternal on certain contexts, i.e. those from OsrValue inputs. | 655 // OtherInternal on certain contexts, i.e. those from OsrValue inputs. |
| 656 CheckTypeMaybe(context, Type::OtherInternal()); | 656 CheckTypeMaybe(context, Type::OtherInternal()); |
| 657 CheckTypeIs(node, Type::OtherInternal()); | 657 CheckTypeIs(node, Type::OtherInternal()); |
| 658 break; | 658 break; |
| 659 } | 659 } |
| 660 | 660 |
| 661 case IrOpcode::kJSCallConstruct: | 661 case IrOpcode::kJSCallConstruct: |
| 662 case IrOpcode::kJSCallConstructWithSpread: |
| 662 case IrOpcode::kJSConvertReceiver: | 663 case IrOpcode::kJSConvertReceiver: |
| 663 // Type is Receiver. | 664 // Type is Receiver. |
| 664 CheckTypeIs(node, Type::Receiver()); | 665 CheckTypeIs(node, Type::Receiver()); |
| 665 break; | 666 break; |
| 666 case IrOpcode::kJSCallFunction: | 667 case IrOpcode::kJSCallFunction: |
| 667 case IrOpcode::kJSCallRuntime: | 668 case IrOpcode::kJSCallRuntime: |
| 668 // Type can be anything. | 669 // Type can be anything. |
| 669 CheckTypeIs(node, Type::Any()); | 670 CheckTypeIs(node, Type::Any()); |
| 670 break; | 671 break; |
| 671 | 672 |
| (...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1653 replacement->op()->EffectOutputCount() > 0); | 1654 replacement->op()->EffectOutputCount() > 0); |
| 1654 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1655 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
| 1655 replacement->opcode() == IrOpcode::kFrameState); | 1656 replacement->opcode() == IrOpcode::kFrameState); |
| 1656 } | 1657 } |
| 1657 | 1658 |
| 1658 #endif // DEBUG | 1659 #endif // DEBUG |
| 1659 | 1660 |
| 1660 } // namespace compiler | 1661 } // namespace compiler |
| 1661 } // namespace internal | 1662 } // namespace internal |
| 1662 } // namespace v8 | 1663 } // namespace v8 |
| OLD | NEW |