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

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

Issue 10855174: Lazy implementation of final variables. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix tests. Created 8 years, 4 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) 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('../leg.dart'); 9 #import('../leg.dart');
10 10
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 } 401 }
402 402
403 String visitReturn(HReturn node) => "Return ${temporaryId(node.inputs[0])}"; 403 String visitReturn(HReturn node) => "Return ${temporaryId(node.inputs[0])}";
404 404
405 String visitShiftLeft(HShiftLeft node) => visitInvokeStatic(node); 405 String visitShiftLeft(HShiftLeft node) => visitInvokeStatic(node);
406 406
407 String visitShiftRight(HShiftRight node) => visitInvokeStatic(node); 407 String visitShiftRight(HShiftRight node) => visitInvokeStatic(node);
408 408
409 String visitStatic(HStatic node) 409 String visitStatic(HStatic node)
410 => "Static ${node.element.name.slowToString()}"; 410 => "Static ${node.element.name.slowToString()}";
411
412 String visitLazyStatic(HLazyStatic node)
413 => "LazyStatic ${node.element.name.slowToString()}";
414
411 String visitStaticStore(HStaticStore node) { 415 String visitStaticStore(HStaticStore node) {
412 String lhs = node.element.name.slowToString(); 416 String lhs = node.element.name.slowToString();
413 return "Static $lhs = ${temporaryId(node.inputs[0])}"; 417 return "Static $lhs = ${temporaryId(node.inputs[0])}";
414 } 418 }
415 419
416 String visitStringConcat(HStringConcat node) { 420 String visitStringConcat(HStringConcat node) {
417 var leftId = temporaryId(node.left); 421 var leftId = temporaryId(node.left);
418 var rightId = temporaryId(node.right); 422 var rightId = temporaryId(node.right);
419 return "StringConcat: $leftId + $rightId"; 423 return "StringConcat: $leftId + $rightId";
420 } 424 }
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 String visitIs(HIs node) { 512 String visitIs(HIs node) {
509 String type = node.typeExpression.toString(); 513 String type = node.typeExpression.toString();
510 return "TypeTest: ${temporaryId(node.expression)} is $type"; 514 return "TypeTest: ${temporaryId(node.expression)} is $type";
511 } 515 }
512 516
513 String visitTypeConversion(HTypeConversion node) { 517 String visitTypeConversion(HTypeConversion node) {
514 String type = node.propagatedType.toString(); 518 String type = node.propagatedType.toString();
515 return "TypeConversion: ${temporaryId(node.inputs[0])} to $type"; 519 return "TypeConversion: ${temporaryId(node.inputs[0])} to $type";
516 } 520 }
517 } 521 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698