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

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

Issue 10543027: Fixes for checked mode and change buildbot script to run dart2js tests in checked mode also. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 347
348 String visitModulo(HModulo node) => visitInvokeStatic(node); 348 String visitModulo(HModulo node) => visitInvokeStatic(node);
349 349
350 String visitMultiply(HMultiply node) => visitInvokeStatic(node); 350 String visitMultiply(HMultiply node) => visitInvokeStatic(node);
351 351
352 String visitNegate(HNegate node) => visitInvokeStatic(node); 352 String visitNegate(HNegate node) => visitInvokeStatic(node);
353 353
354 String visitNot(HNot node) => "Not: ${temporaryId(node.inputs[0])}"; 354 String visitNot(HNot node) => "Not: ${temporaryId(node.inputs[0])}";
355 355
356 String visitParameterValue(HParameterValue node) { 356 String visitParameterValue(HParameterValue node) {
357 return "p${node.element.name.slowToString()}"; 357 return "p${node.sourceElement.name.slowToString()}";
358 } 358 }
359 359
360 String visitPhi(HPhi phi) { 360 String visitPhi(HPhi phi) {
361 StringBuffer buffer = new StringBuffer(); 361 StringBuffer buffer = new StringBuffer();
362 buffer.add("Phi("); 362 buffer.add("Phi(");
363 for (int i = 0; i < phi.inputs.length; i++) { 363 for (int i = 0; i < phi.inputs.length; i++) {
364 if (i > 0) buffer.add(", "); 364 if (i > 0) buffer.add(", ");
365 buffer.add(temporaryId(phi.inputs[i])); 365 buffer.add(temporaryId(phi.inputs[i]));
366 } 366 }
367 buffer.add(")"); 367 buffer.add(")");
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 String visitIs(HIs node) { 463 String visitIs(HIs node) {
464 String type = node.typeExpression.toString(); 464 String type = node.typeExpression.toString();
465 return "TypeTest: ${temporaryId(node.expression)} is $type"; 465 return "TypeTest: ${temporaryId(node.expression)} is $type";
466 } 466 }
467 467
468 String visitTypeConversion(HTypeConversion node) { 468 String visitTypeConversion(HTypeConversion node) {
469 String type = node.propagatedType.toString(); 469 String type = node.propagatedType.toString();
470 return "TypeConversion: ${temporaryId(node.inputs[0])} to $type"; 470 return "TypeConversion: ${temporaryId(node.inputs[0])} to $type";
471 } 471 }
472 } 472 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/ssa/optimize.dart ('k') | lib/compiler/implementation/ssa/variable_allocator.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698