| 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 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 798 case IrOpcode::kTruncateInt64ToInt32: | 798 case IrOpcode::kTruncateInt64ToInt32: |
| 799 case IrOpcode::kTruncateFloat64ToFloat32: | 799 case IrOpcode::kTruncateFloat64ToFloat32: |
| 800 case IrOpcode::kTruncateFloat64ToInt32: | 800 case IrOpcode::kTruncateFloat64ToInt32: |
| 801 case IrOpcode::kChangeInt32ToInt64: | 801 case IrOpcode::kChangeInt32ToInt64: |
| 802 case IrOpcode::kChangeUint32ToUint64: | 802 case IrOpcode::kChangeUint32ToUint64: |
| 803 case IrOpcode::kChangeInt32ToFloat64: | 803 case IrOpcode::kChangeInt32ToFloat64: |
| 804 case IrOpcode::kChangeUint32ToFloat64: | 804 case IrOpcode::kChangeUint32ToFloat64: |
| 805 case IrOpcode::kChangeFloat32ToFloat64: | 805 case IrOpcode::kChangeFloat32ToFloat64: |
| 806 case IrOpcode::kChangeFloat64ToInt32: | 806 case IrOpcode::kChangeFloat64ToInt32: |
| 807 case IrOpcode::kChangeFloat64ToUint32: | 807 case IrOpcode::kChangeFloat64ToUint32: |
| 808 case IrOpcode::kFloat64ExtractLowWord32: |
| 809 case IrOpcode::kFloat64ExtractHighWord32: |
| 810 case IrOpcode::kFloat64InsertLowWord32: |
| 811 case IrOpcode::kFloat64InsertHighWord32: |
| 808 case IrOpcode::kLoadStackPointer: | 812 case IrOpcode::kLoadStackPointer: |
| 809 case IrOpcode::kCheckedLoad: | 813 case IrOpcode::kCheckedLoad: |
| 810 case IrOpcode::kCheckedStore: | 814 case IrOpcode::kCheckedStore: |
| 811 // TODO(rossberg): Check. | 815 // TODO(rossberg): Check. |
| 812 break; | 816 break; |
| 813 } | 817 } |
| 814 } | 818 } // NOLINT(readability/fn_size) |
| 815 | 819 |
| 816 | 820 |
| 817 void Verifier::Run(Graph* graph, Typing typing) { | 821 void Verifier::Run(Graph* graph, Typing typing) { |
| 818 CHECK_NOT_NULL(graph->start()); | 822 CHECK_NOT_NULL(graph->start()); |
| 819 CHECK_NOT_NULL(graph->end()); | 823 CHECK_NOT_NULL(graph->end()); |
| 820 Zone zone; | 824 Zone zone; |
| 821 Visitor visitor(&zone, typing); | 825 Visitor visitor(&zone, typing); |
| 822 for (Node* node : AllNodes(&zone, graph).live) visitor.Check(node); | 826 for (Node* node : AllNodes(&zone, graph).live) visitor.Check(node); |
| 823 } | 827 } |
| 824 | 828 |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1053 // Check inputs for all nodes in the block. | 1057 // Check inputs for all nodes in the block. |
| 1054 for (size_t i = 0; i < block->NodeCount(); i++) { | 1058 for (size_t i = 0; i < block->NodeCount(); i++) { |
| 1055 Node* node = block->NodeAt(i); | 1059 Node* node = block->NodeAt(i); |
| 1056 CheckInputsDominate(schedule, block, node, static_cast<int>(i) - 1); | 1060 CheckInputsDominate(schedule, block, node, static_cast<int>(i) - 1); |
| 1057 } | 1061 } |
| 1058 } | 1062 } |
| 1059 } | 1063 } |
| 1060 } | 1064 } |
| 1061 } | 1065 } |
| 1062 } // namespace v8::internal::compiler | 1066 } // namespace v8::internal::compiler |
| OLD | NEW |