Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of ssa; | 5 |
|
sra1
2016/03/04 01:21:10
extra line
Siggi Cherem (dart-lang)
2016/03/14 21:05:29
Done.
| |
| 6 import 'nodes.dart'; | |
| 6 | 7 |
| 7 class HValidator extends HInstructionVisitor { | 8 class HValidator extends HInstructionVisitor { |
| 8 bool isValid = true; | 9 bool isValid = true; |
| 9 HGraph graph; | 10 HGraph graph; |
| 10 | 11 |
| 11 void visitGraph(HGraph visitee) { | 12 void visitGraph(HGraph visitee) { |
| 12 graph = visitee; | 13 graph = visitee; |
| 13 visitDominatorTree(visitee); | 14 visitDominatorTree(visitee); |
| 14 } | 15 } |
| 15 | 16 |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 191 markInvalid("Instruction in wrong block"); | 192 markInvalid("Instruction in wrong block"); |
| 192 } | 193 } |
| 193 if (!hasCorrectInputs()) { | 194 if (!hasCorrectInputs()) { |
| 194 markInvalid("Incorrect inputs"); | 195 markInvalid("Incorrect inputs"); |
| 195 } | 196 } |
| 196 if (!hasCorrectUses()) { | 197 if (!hasCorrectUses()) { |
| 197 markInvalid("Incorrect uses"); | 198 markInvalid("Incorrect uses"); |
| 198 } | 199 } |
| 199 } | 200 } |
| 200 } | 201 } |
| OLD | NEW |