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

Side by Side Diff: pkg/compiler/lib/src/ssa/ssa_tracer.dart

Issue 891673003: dart2js: Refactoring, documentation, and a few bugfixes in Namer class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase Created 5 years, 9 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 | « pkg/compiler/lib/src/ssa/codegen.dart ('k') | tests/compiler/dart2js/mirrors_used_test.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) 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 ssa.tracer; 5 library ssa.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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 String receiver = temporaryId(node.receiver); 282 String receiver = temporaryId(node.receiver);
283 String index = temporaryId(node.index); 283 String index = temporaryId(node.index);
284 String value = temporaryId(node.value); 284 String value = temporaryId(node.value);
285 return "IndexAssign: $receiver[$index] = $value"; 285 return "IndexAssign: $receiver[$index] = $value";
286 } 286 }
287 287
288 String visitInterceptor(HInterceptor node) { 288 String visitInterceptor(HInterceptor node) {
289 String value = temporaryId(node.inputs[0]); 289 String value = temporaryId(node.inputs[0]);
290 if (node.interceptedClasses != null) { 290 if (node.interceptedClasses != null) {
291 JavaScriptBackend backend = compiler.backend; 291 JavaScriptBackend backend = compiler.backend;
292 String cls = backend.namer.getInterceptorSuffix(node.interceptedClasses); 292 String cls =
293 backend.namer.suffixForGetInterceptor(node.interceptedClasses);
293 return "Intercept ($cls): $value"; 294 return "Intercept ($cls): $value";
294 } 295 }
295 return "Intercept: $value"; 296 return "Intercept: $value";
296 } 297 }
297 298
298 String visitInvokeClosure(HInvokeClosure node) 299 String visitInvokeClosure(HInvokeClosure node)
299 => visitInvokeDynamic(node, "closure"); 300 => visitInvokeDynamic(node, "closure");
300 301
301 String visitInvokeDynamic(HInvokeDynamic invoke, String kind) { 302 String visitInvokeDynamic(HInvokeDynamic invoke, String kind) {
302 String receiver = temporaryId(invoke.receiver); 303 String receiver = temporaryId(invoke.receiver);
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 } 522 }
522 523
523 String visitAwait(HAwait node) { 524 String visitAwait(HAwait node) {
524 return "await ${temporaryId(node.inputs[0])}"; 525 return "await ${temporaryId(node.inputs[0])}";
525 } 526 }
526 527
527 String visitYield(HYield node) { 528 String visitYield(HYield node) {
528 return "yield${node.hasStar ? "*" : ""} ${temporaryId(node.inputs[0])}"; 529 return "yield${node.hasStar ? "*" : ""} ${temporaryId(node.inputs[0])}";
529 } 530 }
530 } 531 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/codegen.dart ('k') | tests/compiler/dart2js/mirrors_used_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698