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

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

Issue 10968008: Fix checked mode failure when tracing SSA graph (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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('../js_backend/js_backend.dart'); 9 #import('../js_backend/js_backend.dart');
10 #import('../leg.dart'); 10 #import('../leg.dart');
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 String visitMultiply(HMultiply node) => visitInvokeStatic(node); 387 String visitMultiply(HMultiply node) => visitInvokeStatic(node);
388 388
389 String visitNegate(HNegate node) => visitInvokeStatic(node); 389 String visitNegate(HNegate node) => visitInvokeStatic(node);
390 390
391 String visitNot(HNot node) => "Not: ${temporaryId(node.inputs[0])}"; 391 String visitNot(HNot node) => "Not: ${temporaryId(node.inputs[0])}";
392 392
393 String visitParameterValue(HParameterValue node) { 393 String visitParameterValue(HParameterValue node) {
394 return "p${node.sourceElement.name.slowToString()}"; 394 return "p${node.sourceElement.name.slowToString()}";
395 } 395 }
396 396
397 String visitLocalValue(HParameterValue node) { 397 String visitLocalValue(HLocalValue node) {
398 return "l${node.sourceElement.name.slowToString()}"; 398 return "l${node.sourceElement.name.slowToString()}";
399 } 399 }
400 400
401 String visitPhi(HPhi phi) { 401 String visitPhi(HPhi phi) {
402 StringBuffer buffer = new StringBuffer(); 402 StringBuffer buffer = new StringBuffer();
403 buffer.add("Phi("); 403 buffer.add("Phi(");
404 for (int i = 0; i < phi.inputs.length; i++) { 404 for (int i = 0; i < phi.inputs.length; i++) {
405 if (i > 0) buffer.add(", "); 405 if (i > 0) buffer.add(", ");
406 buffer.add(temporaryId(phi.inputs[i])); 406 buffer.add(temporaryId(phi.inputs[i]));
407 } 407 }
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 520
521 String visitIs(HIs node) { 521 String visitIs(HIs node) {
522 String type = node.typeExpression.toString(); 522 String type = node.typeExpression.toString();
523 return "TypeTest: ${temporaryId(node.expression)} is $type"; 523 return "TypeTest: ${temporaryId(node.expression)} is $type";
524 } 524 }
525 525
526 String visitTypeConversion(HTypeConversion node) { 526 String visitTypeConversion(HTypeConversion node) {
527 return "TypeConversion: ${temporaryId(node.inputs[0])} to ${node.type}"; 527 return "TypeConversion: ${temporaryId(node.inputs[0])} to ${node.type}";
528 } 528 }
529 } 529 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698