| 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 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 682 break; | 682 break; |
| 683 case IrOpcode::kNumberLessThan: | 683 case IrOpcode::kNumberLessThan: |
| 684 case IrOpcode::kNumberLessThanOrEqual: | 684 case IrOpcode::kNumberLessThanOrEqual: |
| 685 // (Number, Number) -> Boolean | 685 // (Number, Number) -> Boolean |
| 686 CheckValueInputIs(node, 0, Type::Number()); | 686 CheckValueInputIs(node, 0, Type::Number()); |
| 687 CheckValueInputIs(node, 1, Type::Number()); | 687 CheckValueInputIs(node, 1, Type::Number()); |
| 688 CheckUpperIs(node, Type::Boolean()); | 688 CheckUpperIs(node, Type::Boolean()); |
| 689 break; | 689 break; |
| 690 case IrOpcode::kSpeculativeNumberAdd: | 690 case IrOpcode::kSpeculativeNumberAdd: |
| 691 case IrOpcode::kSpeculativeNumberSubtract: | 691 case IrOpcode::kSpeculativeNumberSubtract: |
| 692 case IrOpcode::kSpeculativeNumberMultiply: |
| 693 case IrOpcode::kSpeculativeNumberDivide: |
| 694 case IrOpcode::kSpeculativeNumberModulus: |
| 692 CheckUpperIs(node, Type::Number()); | 695 CheckUpperIs(node, Type::Number()); |
| 693 break; | 696 break; |
| 694 case IrOpcode::kSpeculativeNumberEqual: | 697 case IrOpcode::kSpeculativeNumberEqual: |
| 695 case IrOpcode::kSpeculativeNumberLessThan: | 698 case IrOpcode::kSpeculativeNumberLessThan: |
| 696 case IrOpcode::kSpeculativeNumberLessThanOrEqual: | 699 case IrOpcode::kSpeculativeNumberLessThanOrEqual: |
| 697 CheckUpperIs(node, Type::Boolean()); | 700 CheckUpperIs(node, Type::Boolean()); |
| 698 break; | 701 break; |
| 699 case IrOpcode::kNumberAdd: | 702 case IrOpcode::kNumberAdd: |
| 700 case IrOpcode::kNumberSubtract: | 703 case IrOpcode::kNumberSubtract: |
| 701 case IrOpcode::kNumberMultiply: | 704 case IrOpcode::kNumberMultiply: |
| (...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1469 replacement->op()->EffectOutputCount() > 0); | 1472 replacement->op()->EffectOutputCount() > 0); |
| 1470 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1473 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
| 1471 replacement->opcode() == IrOpcode::kFrameState); | 1474 replacement->opcode() == IrOpcode::kFrameState); |
| 1472 } | 1475 } |
| 1473 | 1476 |
| 1474 #endif // DEBUG | 1477 #endif // DEBUG |
| 1475 | 1478 |
| 1476 } // namespace compiler | 1479 } // namespace compiler |
| 1477 } // namespace internal | 1480 } // namespace internal |
| 1478 } // namespace v8 | 1481 } // namespace v8 |
| OLD | NEW |