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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/ir/ir_tracer.dart

Issue 349923004: Add support for superSend to the new IR and dart backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 dart2js.ir_tracer; 5 library dart2js.ir_tracer;
6 6
7 import 'dart:async' show EventSink; 7 import 'dart:async' show EventSink;
8 8
9 import 'ir_nodes.dart' as ir hide Function; 9 import 'ir_nodes.dart' as ir hide Function;
10 import '../tracer.dart'; 10 import '../tracer.dart';
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 String dummy = names.name(node); 160 String dummy = names.name(node);
161 String values = node.arguments.map(formatReference).join(', '); 161 String values = node.arguments.map(formatReference).join(', ');
162 printStmt(dummy, "ConstConstruction ($values)"); 162 printStmt(dummy, "ConstConstruction ($values)");
163 } 163 }
164 164
165 visitThis(ir.This node) { 165 visitThis(ir.This node) {
166 String dummy = names.name(node); 166 String dummy = names.name(node);
167 printStmt(dummy, "This"); 167 printStmt(dummy, "This");
168 } 168 }
169 169
170 visitSuper(ir.Super node) {
171 String dummy = names.name(node);
172 printStmt(dummy, "Super");
173 }
174
170 visitInvokeContinuation(ir.InvokeContinuation node) { 175 visitInvokeContinuation(ir.InvokeContinuation node) {
171 String dummy = names.name(node); 176 String dummy = names.name(node);
172 String kont = formatReference(node.continuation); 177 String kont = formatReference(node.continuation);
173 String args = node.arguments.map(formatReference).join(', '); 178 String args = node.arguments.map(formatReference).join(', ');
174 printStmt(dummy, "InvokeContinuation $kont ($args)"); 179 printStmt(dummy, "InvokeContinuation $kont ($args)");
175 } 180 }
176 181
177 visitBranch(ir.Branch node) { 182 visitBranch(ir.Branch node) {
178 String dummy = names.name(node); 183 String dummy = names.name(node);
179 String condition = visit(node.condition); 184 String condition = visit(node.condition);
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 } 349 }
345 } 350 }
346 351
347 visitContinuation(ir.Continuation c) { 352 visitContinuation(ir.Continuation c) {
348 var old_node = current_block; 353 var old_node = current_block;
349 current_block = getBlock(c); 354 current_block = getBlock(c);
350 visit(c.body); 355 visit(c.body);
351 current_block = old_node; 356 current_block = old_node;
352 } 357 }
353 } 358 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698