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

Side by Side Diff: pkg/compiler/lib/src/cps_ir/cps_ir_tracer.dart

Issue 806103003: cps-ir: Add support for intercepted calls. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Bailout on special selectors. Created 6 years 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 'cps_ir_nodes.dart' as cps_ir hide Function; 9 import 'cps_ir_nodes.dart' as cps_ir hide Function;
10 import '../tracer.dart'; 10 import '../tracer.dart';
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 visitIsTrue(cps_ir.IsTrue node) { 242 visitIsTrue(cps_ir.IsTrue node) {
243 return "IsTrue(${names.name(node.value.definition)})"; 243 return "IsTrue(${names.name(node.value.definition)})";
244 } 244 }
245 245
246 visitIdentical(cps_ir.Identical node) { 246 visitIdentical(cps_ir.Identical node) {
247 String left = formatReference(node.left); 247 String left = formatReference(node.left);
248 String right = formatReference(node.right); 248 String right = formatReference(node.right);
249 return "Identical($left, $right)"; 249 return "Identical($left, $right)";
250 } 250 }
251 251
252 visitInterceptor(cps_ir.Interceptor node) {
253 return "Interceptor(${node.input})";
254 }
255
252 visitThis(cps_ir.This node) { 256 visitThis(cps_ir.This node) {
253 return "This"; 257 return "This";
254 } 258 }
255 259
256 visitReifyTypeVar(cps_ir.ReifyTypeVar node) { 260 visitReifyTypeVar(cps_ir.ReifyTypeVar node) {
257 return "ReifyTypeVar ${node.typeVariable.name}"; 261 return "ReifyTypeVar ${node.typeVariable.name}";
258 } 262 }
259 263
260 visitCreateFunction(cps_ir.CreateFunction node) { 264 visitCreateFunction(cps_ir.CreateFunction node) {
261 return "CreateFunction ${node.definition.element.name}"; 265 return "CreateFunction ${node.definition.element.name}";
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 } 419 }
416 } 420 }
417 421
418 visitContinuation(cps_ir.Continuation c) { 422 visitContinuation(cps_ir.Continuation c) {
419 var old_node = current_block; 423 var old_node = current_block;
420 current_block = getBlock(c); 424 current_block = getBlock(c);
421 visit(c.body); 425 visit(c.body);
422 current_block = old_node; 426 current_block = old_node;
423 } 427 }
424 } 428 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698