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

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: rebase wrt CL 10832351. 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('../js_backend/js_backend.dart'); 9 #import('../js_backend/js_backend.dart');
10 #import('../leg.dart'); 10 #import('../leg.dart');
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 } 408 }
409 409
410 String visitReturn(HReturn node) => "Return ${temporaryId(node.inputs[0])}"; 410 String visitReturn(HReturn node) => "Return ${temporaryId(node.inputs[0])}";
411 411
412 String visitShiftLeft(HShiftLeft node) => visitInvokeStatic(node); 412 String visitShiftLeft(HShiftLeft node) => visitInvokeStatic(node);
413 413
414 String visitShiftRight(HShiftRight node) => visitInvokeStatic(node); 414 String visitShiftRight(HShiftRight node) => visitInvokeStatic(node);
415 415
416 String visitStatic(HStatic node) 416 String visitStatic(HStatic node)
417 => "Static ${node.element.name.slowToString()}"; 417 => "Static ${node.element.name.slowToString()}";
418
419 String visitLazyStatic(HLazyStatic node)
420 => "LazyStatic ${node.element.name.slowToString()}";
421
418 String visitStaticStore(HStaticStore node) { 422 String visitStaticStore(HStaticStore node) {
419 String lhs = node.element.name.slowToString(); 423 String lhs = node.element.name.slowToString();
420 return "Static $lhs = ${temporaryId(node.inputs[0])}"; 424 return "Static $lhs = ${temporaryId(node.inputs[0])}";
421 } 425 }
422 426
423 String visitStringConcat(HStringConcat node) { 427 String visitStringConcat(HStringConcat node) {
424 var leftId = temporaryId(node.left); 428 var leftId = temporaryId(node.left);
425 var rightId = temporaryId(node.right); 429 var rightId = temporaryId(node.right);
426 return "StringConcat: $leftId + $rightId"; 430 return "StringConcat: $leftId + $rightId";
427 } 431 }
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 518
515 String visitIs(HIs node) { 519 String visitIs(HIs node) {
516 String type = node.typeExpression.toString(); 520 String type = node.typeExpression.toString();
517 return "TypeTest: ${temporaryId(node.expression)} is $type"; 521 return "TypeTest: ${temporaryId(node.expression)} is $type";
518 } 522 }
519 523
520 String visitTypeConversion(HTypeConversion node) { 524 String visitTypeConversion(HTypeConversion node) {
521 return "TypeConversion: ${temporaryId(node.inputs[0])} to ${node.type}"; 525 return "TypeConversion: ${temporaryId(node.inputs[0])} to ${node.type}";
522 } 526 }
523 } 527 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698