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

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

Issue 172133006: Use temporaryId instead of the Ssa node in the tracer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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:async' show EventSink; 7 import 'dart:async' show EventSink;
8 8
9 import 'ssa.dart'; 9 import 'ssa.dart';
10 import '../js_backend/js_backend.dart'; 10 import '../js_backend/js_backend.dart';
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 return "Static $lhs = ${temporaryId(node.inputs[0])}"; 442 return "Static $lhs = ${temporaryId(node.inputs[0])}";
443 } 443 }
444 444
445 String visitStringConcat(HStringConcat node) { 445 String visitStringConcat(HStringConcat node) {
446 var leftId = temporaryId(node.left); 446 var leftId = temporaryId(node.left);
447 var rightId = temporaryId(node.right); 447 var rightId = temporaryId(node.right);
448 return "StringConcat: $leftId + $rightId"; 448 return "StringConcat: $leftId + $rightId";
449 } 449 }
450 450
451 String visitStringify(HStringify node) { 451 String visitStringify(HStringify node) {
452 return "Stringify: ${node.inputs[0]}"; 452 return "Stringify ${temporaryId(node.inputs[0])}";
453 } 453 }
454 454
455 String visitSubtract(HSubtract node) => handleInvokeBinary(node, '-'); 455 String visitSubtract(HSubtract node) => handleInvokeBinary(node, '-');
456 456
457 String visitSwitch(HSwitch node) { 457 String visitSwitch(HSwitch node) {
458 StringBuffer buf = new StringBuffer(); 458 StringBuffer buf = new StringBuffer();
459 buf.write("Switch: ("); 459 buf.write("Switch: (");
460 buf.write(temporaryId(node.inputs[0])); 460 buf.write(temporaryId(node.inputs[0]));
461 buf.write(") "); 461 buf.write(") ");
462 for (int i = 1; i < node.inputs.length; i++) { 462 for (int i = 1; i < node.inputs.length; i++) {
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 } 539 }
540 540
541 String visitInterfaceType(HInterfaceType node) { 541 String visitInterfaceType(HInterfaceType node) {
542 return "InterfaceType: ${node.dartType}"; 542 return "InterfaceType: ${node.dartType}";
543 } 543 }
544 544
545 String visitDynamicType(HDynamicType node) { 545 String visitDynamicType(HDynamicType node) {
546 return "DynamicType"; 546 return "DynamicType";
547 } 547 }
548 } 548 }
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