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

Side by Side Diff: frog/leg/ssa/tracer.dart

Issue 9632018: Switch-implementation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 8 years, 9 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 205
206 String visitBoundsCheck(HBoundsCheck node) { 206 String visitBoundsCheck(HBoundsCheck node) {
207 String lengthId = temporaryId(node.length); 207 String lengthId = temporaryId(node.length);
208 String indexId = temporaryId(node.index); 208 String indexId = temporaryId(node.index);
209 return "Bounds check: length = $lengthId, index = $indexId"; 209 return "Bounds check: length = $lengthId, index = $indexId";
210 } 210 }
211 211
212 String visitBreak(HBreak node) { 212 String visitBreak(HBreak node) {
213 HBasicBlock target = currentBlock.successors[0]; 213 HBasicBlock target = currentBlock.successors[0];
214 if (node.label !== null) { 214 if (node.label !== null) {
215 return "Break ${node.label.slowToString()}: (B${target.id})"; 215 return "Break ${node.label.labelName}: (B${target.id})";
216 } 216 }
217 return "Break: (B${target.id})"; 217 return "Break: (B${target.id})";
218 } 218 }
219 219
220 String visitConstant(HConstant constant) => "Constant ${constant.constant}"; 220 String visitConstant(HConstant constant) => "Constant ${constant.constant}";
221 221
222 String visitDivide(HDivide node) => visitInvokeStatic(node); 222 String visitDivide(HDivide node) => visitInvokeStatic(node);
223 223
224 String visitEquals(HEquals node) => visitInvokeStatic(node); 224 String visitEquals(HEquals node) => visitInvokeStatic(node);
225 225
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 default: unreachable(); 443 default: unreachable();
444 } 444 }
445 return "TypeGuard: ${temporaryId(node.inputs[0])} is $type"; 445 return "TypeGuard: ${temporaryId(node.inputs[0])} is $type";
446 } 446 }
447 447
448 String visitIs(HIs node) { 448 String visitIs(HIs node) {
449 String type = node.typeExpression.toString(); 449 String type = node.typeExpression.toString();
450 return "TypeTest: ${temporaryId(node.expression)} is $type"; 450 return "TypeTest: ${temporaryId(node.expression)} is $type";
451 } 451 }
452 } 452 }
OLDNEW
« no previous file with comments | « frog/leg/ssa/nodes.dart ('k') | frog/leg/tree/nodes.dart » ('j') | tests/co19/co19-leg.status » ('J')

Powered by Google App Engine
This is Rietveld 408576698