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::kFloat64ExtractWord32: |
| 809 case IrOpcode::kFloat64InsertWord32: |
808 case IrOpcode::kLoadStackPointer: | 810 case IrOpcode::kLoadStackPointer: |
809 case IrOpcode::kCheckedLoad: | 811 case IrOpcode::kCheckedLoad: |
810 case IrOpcode::kCheckedStore: | 812 case IrOpcode::kCheckedStore: |
811 // TODO(rossberg): Check. | 813 // TODO(rossberg): Check. |
812 break; | 814 break; |
813 } | 815 } |
814 } | 816 } // NOLINT(readability/fn_size) |
815 | 817 |
816 | 818 |
817 void Verifier::Run(Graph* graph, Typing typing) { | 819 void Verifier::Run(Graph* graph, Typing typing) { |
818 CHECK_NOT_NULL(graph->start()); | 820 CHECK_NOT_NULL(graph->start()); |
819 CHECK_NOT_NULL(graph->end()); | 821 CHECK_NOT_NULL(graph->end()); |
820 Zone zone; | 822 Zone zone; |
821 Visitor visitor(&zone, typing); | 823 Visitor visitor(&zone, typing); |
822 for (Node* node : AllNodes(&zone, graph).live) visitor.Check(node); | 824 for (Node* node : AllNodes(&zone, graph).live) visitor.Check(node); |
823 } | 825 } |
824 | 826 |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1053 // Check inputs for all nodes in the block. | 1055 // Check inputs for all nodes in the block. |
1054 for (size_t i = 0; i < block->NodeCount(); i++) { | 1056 for (size_t i = 0; i < block->NodeCount(); i++) { |
1055 Node* node = block->NodeAt(i); | 1057 Node* node = block->NodeAt(i); |
1056 CheckInputsDominate(schedule, block, node, static_cast<int>(i) - 1); | 1058 CheckInputsDominate(schedule, block, node, static_cast<int>(i) - 1); |
1057 } | 1059 } |
1058 } | 1060 } |
1059 } | 1061 } |
1060 } | 1062 } |
1061 } | 1063 } |
1062 } // namespace v8::internal::compiler | 1064 } // namespace v8::internal::compiler |
OLD | NEW |