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

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

Issue 10387080: Accept more labels per switch case. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 8 years, 7 months 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 #library('tracer'); 5 #library('tracer');
6 6
7 #import('dart:io'); 7 #import('dart:io');
8 #import('ssa.dart'); 8 #import('ssa.dart');
9 #import('../leg.dart'); 9 #import('../leg.dart');
10 10
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 case HType.READABLE_ARRAY: prefix = 'a'; break; 174 case HType.READABLE_ARRAY: prefix = 'a'; break;
175 case HType.EXTENDABLE_ARRAY: prefix = 'e'; break; 175 case HType.EXTENDABLE_ARRAY: prefix = 'e'; break;
176 case HType.BOOLEAN: prefix = 'b'; break; 176 case HType.BOOLEAN: prefix = 'b'; break;
177 case HType.INTEGER: prefix = 'i'; break; 177 case HType.INTEGER: prefix = 'i'; break;
178 case HType.DOUBLE: prefix = 'd'; break; 178 case HType.DOUBLE: prefix = 'd'; break;
179 case HType.NUMBER: prefix = 'n'; break; 179 case HType.NUMBER: prefix = 'n'; break;
180 case HType.STRING: prefix = 's'; break; 180 case HType.STRING: prefix = 's'; break;
181 case HType.UNKNOWN: prefix = 'v'; break; 181 case HType.UNKNOWN: prefix = 'v'; break;
182 case HType.CONFLICTING: prefix = 'c'; break; 182 case HType.CONFLICTING: prefix = 'c'; break;
183 case HType.INDEXABLE_PRIMITIVE: prefix = 'r'; break; 183 case HType.INDEXABLE_PRIMITIVE: prefix = 'r'; break;
184 case HType.NULL: prefix = 'u'; break;
184 default: unreachable(); 185 default: unreachable();
185 } 186 }
186 } 187 }
187 return "$prefix${instruction.id}"; 188 return "$prefix${instruction.id}";
188 } 189 }
189 190
190 String visitBoolify(HBoolify node) { 191 String visitBoolify(HBoolify node) {
191 return "Boolify: ${temporaryId(node.inputs[0])}"; 192 return "Boolify: ${temporaryId(node.inputs[0])}";
192 } 193 }
193 194
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 String visitIs(HIs node) { 436 String visitIs(HIs node) {
436 String type = node.typeExpression.toString(); 437 String type = node.typeExpression.toString();
437 return "TypeTest: ${temporaryId(node.expression)} is $type"; 438 return "TypeTest: ${temporaryId(node.expression)} is $type";
438 } 439 }
439 440
440 String visitTypeConversion(HTypeConversion node) { 441 String visitTypeConversion(HTypeConversion node) {
441 String type = node.propagatedType.toString(); 442 String type = node.propagatedType.toString();
442 return "TypeConversion: ${temporaryId(node.inputs[0])} to $type"; 443 return "TypeConversion: ${temporaryId(node.inputs[0])} to $type";
443 } 444 }
444 } 445 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/ssa/builder.dart ('k') | lib/compiler/implementation/tree/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698