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

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 and merge. 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 | « lib/compiler/implementation/ssa/optimize.dart ('k') | tests/co19/co19-dart2js.status » ('j') | 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 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 } 410 }
411 411
412 String visitReturn(HReturn node) => "Return ${temporaryId(node.inputs[0])}"; 412 String visitReturn(HReturn node) => "Return ${temporaryId(node.inputs[0])}";
413 413
414 String visitShiftLeft(HShiftLeft node) => visitInvokeStatic(node); 414 String visitShiftLeft(HShiftLeft node) => visitInvokeStatic(node);
415 415
416 String visitShiftRight(HShiftRight node) => visitInvokeStatic(node); 416 String visitShiftRight(HShiftRight node) => visitInvokeStatic(node);
417 417
418 String visitStatic(HStatic node) 418 String visitStatic(HStatic node)
419 => "Static ${node.element.name.slowToString()}"; 419 => "Static ${node.element.name.slowToString()}";
420
421 String visitLazyStatic(HLazyStatic node)
422 => "LazyStatic ${node.element.name.slowToString()}";
423
420 String visitStaticStore(HStaticStore node) { 424 String visitStaticStore(HStaticStore node) {
421 String lhs = node.element.name.slowToString(); 425 String lhs = node.element.name.slowToString();
422 return "Static $lhs = ${temporaryId(node.inputs[0])}"; 426 return "Static $lhs = ${temporaryId(node.inputs[0])}";
423 } 427 }
424 428
425 String visitStringConcat(HStringConcat node) { 429 String visitStringConcat(HStringConcat node) {
426 var leftId = temporaryId(node.left); 430 var leftId = temporaryId(node.left);
427 var rightId = temporaryId(node.right); 431 var rightId = temporaryId(node.right);
428 return "StringConcat: $leftId + $rightId"; 432 return "StringConcat: $leftId + $rightId";
429 } 433 }
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 520
517 String visitIs(HIs node) { 521 String visitIs(HIs node) {
518 String type = node.typeExpression.toString(); 522 String type = node.typeExpression.toString();
519 return "TypeTest: ${temporaryId(node.expression)} is $type"; 523 return "TypeTest: ${temporaryId(node.expression)} is $type";
520 } 524 }
521 525
522 String visitTypeConversion(HTypeConversion node) { 526 String visitTypeConversion(HTypeConversion node) {
523 return "TypeConversion: ${temporaryId(node.inputs[0])} to ${node.type}"; 527 return "TypeConversion: ${temporaryId(node.inputs[0])} to ${node.type}";
524 } 528 }
525 } 529 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/ssa/optimize.dart ('k') | tests/co19/co19-dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698