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

Side by Side Diff: frog/leg/ssa/tracer.dart

Issue 8513004: Throw and a small fix to If. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 9 years, 1 month 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 | « frog/leg/ssa/nodes.dart ('k') | frog/leg/ssa/validate.dart » ('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) 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 class HTracer extends HGraphVisitor { 5 class HTracer extends HGraphVisitor {
6 int indent = 0; 6 int indent = 0;
7 final StringBuffer output; 7 final StringBuffer output;
8 8
9 factory HTracer.singleton() { 9 factory HTracer.singleton() {
10 if (_singleton === null) _singleton = new HTracer._internal(); 10 if (_singleton === null) _singleton = new HTracer._internal();
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 String visitParameter(HParameter node) => "p${node.parameterIndex}"; 185 String visitParameter(HParameter node) => "p${node.parameterIndex}";
186 186
187 String visitPhi(HPhi phi) { 187 String visitPhi(HPhi phi) {
188 return "Phi(${temporaryId(phi.inputs[0])}, ${temporaryId(phi.inputs[1])})"; 188 return "Phi(${temporaryId(phi.inputs[0])}, ${temporaryId(phi.inputs[1])})";
189 } 189 }
190 190
191 String visitReturn(HReturn node) => "Return ${temporaryId(node.inputs[0])}"; 191 String visitReturn(HReturn node) => "Return ${temporaryId(node.inputs[0])}";
192 192
193 String visitSubtract(HSubtract node) => visitInvoke(node); 193 String visitSubtract(HSubtract node) => visitInvoke(node);
194 194
195 String visitThrow(HThrow node) => "Throw ${temporaryId(node.inputs[0])}";
196
195 String visitTruncatingDivide(HTruncatingDivide node) => visitInvoke(node); 197 String visitTruncatingDivide(HTruncatingDivide node) => visitInvoke(node);
196 } 198 }
OLDNEW
« no previous file with comments | « frog/leg/ssa/nodes.dart ('k') | frog/leg/ssa/validate.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698