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 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
861 // (Any, Unique) -> Boolean | 861 // (Any, Unique) -> Boolean |
862 CheckUpperIs(node, Type::Boolean()); | 862 CheckUpperIs(node, Type::Boolean()); |
863 break; | 863 break; |
864 } | 864 } |
865 case IrOpcode::kObjectIsCallable: | 865 case IrOpcode::kObjectIsCallable: |
866 case IrOpcode::kObjectIsNumber: | 866 case IrOpcode::kObjectIsNumber: |
867 case IrOpcode::kObjectIsReceiver: | 867 case IrOpcode::kObjectIsReceiver: |
868 case IrOpcode::kObjectIsSmi: | 868 case IrOpcode::kObjectIsSmi: |
869 case IrOpcode::kObjectIsString: | 869 case IrOpcode::kObjectIsString: |
870 case IrOpcode::kObjectIsUndetectable: | 870 case IrOpcode::kObjectIsUndetectable: |
| 871 case IrOpcode::kArrayBufferWasNeutered: |
871 CheckValueInputIs(node, 0, Type::Any()); | 872 CheckValueInputIs(node, 0, Type::Any()); |
872 CheckUpperIs(node, Type::Boolean()); | 873 CheckUpperIs(node, Type::Boolean()); |
873 break; | 874 break; |
874 case IrOpcode::kAllocate: | 875 case IrOpcode::kAllocate: |
875 CheckValueInputIs(node, 0, Type::PlainNumber()); | 876 CheckValueInputIs(node, 0, Type::PlainNumber()); |
876 CheckUpperIs(node, Type::TaggedPointer()); | 877 CheckUpperIs(node, Type::TaggedPointer()); |
877 break; | 878 break; |
878 case IrOpcode::kEnsureWritableFastElements: | 879 case IrOpcode::kEnsureWritableFastElements: |
879 CheckValueInputIs(node, 0, Type::Any()); | 880 CheckValueInputIs(node, 0, Type::Any()); |
880 CheckValueInputIs(node, 1, Type::Internal()); | 881 CheckValueInputIs(node, 1, Type::Internal()); |
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1598 replacement->op()->EffectOutputCount() > 0); | 1599 replacement->op()->EffectOutputCount() > 0); |
1599 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1600 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
1600 replacement->opcode() == IrOpcode::kFrameState); | 1601 replacement->opcode() == IrOpcode::kFrameState); |
1601 } | 1602 } |
1602 | 1603 |
1603 #endif // DEBUG | 1604 #endif // DEBUG |
1604 | 1605 |
1605 } // namespace compiler | 1606 } // namespace compiler |
1606 } // namespace internal | 1607 } // namespace internal |
1607 } // namespace v8 | 1608 } // namespace v8 |
OLD | NEW |