Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Side by Side Diff: lib/compiler/implementation/ssa/validate.dart

Issue 11262032: Add 'part of' in dart2js code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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;
6
5 class HValidator extends HInstructionVisitor { 7 class HValidator extends HInstructionVisitor {
6 bool isValid = true; 8 bool isValid = true;
7 HGraph graph; 9 HGraph graph;
8 10
9 void visitGraph(HGraph visitee) { 11 void visitGraph(HGraph visitee) {
10 graph = visitee; 12 graph = visitee;
11 visitDominatorTree(visitee); 13 visitDominatorTree(visitee);
12 } 14 }
13 15
14 void markInvalid(String reason) { 16 void markInvalid(String reason) {
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 markInvalid("Instruction in wrong block"); 172 markInvalid("Instruction in wrong block");
171 } 173 }
172 if (!hasCorrectInputs()) { 174 if (!hasCorrectInputs()) {
173 markInvalid("Incorrect inputs"); 175 markInvalid("Incorrect inputs");
174 } 176 }
175 if (!hasCorrectUses()) { 177 if (!hasCorrectUses()) {
176 markInvalid("Incorrect uses"); 178 markInvalid("Incorrect uses");
177 } 179 }
178 } 180 }
179 } 181 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/ssa/types_propagation.dart ('k') | lib/compiler/implementation/ssa/value_range_analyzer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698