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

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

Issue 1021813002: Redo "Use an explicit 'this' parameter instead of 'This' nodes." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 visitIdentical(cps_ir.Identical node) { 314 visitIdentical(cps_ir.Identical node) {
315 String left = formatReference(node.left); 315 String left = formatReference(node.left);
316 String right = formatReference(node.right); 316 String right = formatReference(node.right);
317 return "Identical($left, $right)"; 317 return "Identical($left, $right)";
318 } 318 }
319 319
320 visitInterceptor(cps_ir.Interceptor node) { 320 visitInterceptor(cps_ir.Interceptor node) {
321 return "Interceptor(${formatReference(node.input)})"; 321 return "Interceptor(${formatReference(node.input)})";
322 } 322 }
323 323
324 visitThis(cps_ir.This node) {
325 return "This";
326 }
327
328 visitReifyTypeVar(cps_ir.ReifyTypeVar node) { 324 visitReifyTypeVar(cps_ir.ReifyTypeVar node) {
329 return "ReifyTypeVar ${node.typeVariable.name}"; 325 return "ReifyTypeVar ${node.typeVariable.name}";
330 } 326 }
331 327
332 visitCreateFunction(cps_ir.CreateFunction node) { 328 visitCreateFunction(cps_ir.CreateFunction node) {
333 return "CreateFunction ${node.definition.element.name}"; 329 return "CreateFunction ${node.definition.element.name}";
334 } 330 }
335 331
336 visitGetMutableVariable(cps_ir.GetMutableVariable node) { 332 visitGetMutableVariable(cps_ir.GetMutableVariable node) {
337 String variable = names.name(node.variable.definition); 333 String variable = names.name(node.variable.definition);
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 538
543 visitLiteralList(cps_ir.LiteralList node) { 539 visitLiteralList(cps_ir.LiteralList node) {
544 unexpectedNode(node); 540 unexpectedNode(node);
545 } 541 }
546 visitLiteralMap(cps_ir.LiteralMap node) { 542 visitLiteralMap(cps_ir.LiteralMap node) {
547 unexpectedNode(node); 543 unexpectedNode(node);
548 } 544 }
549 visitConstant(cps_ir.Constant node) { 545 visitConstant(cps_ir.Constant node) {
550 unexpectedNode(node); 546 unexpectedNode(node);
551 } 547 }
552 visitThis(cps_ir.This node) {
553 unexpectedNode(node);
554 }
555 visitReifyTypeVar(cps_ir.ReifyTypeVar node) { 548 visitReifyTypeVar(cps_ir.ReifyTypeVar node) {
556 unexpectedNode(node); 549 unexpectedNode(node);
557 } 550 }
558 visitCreateFunction(cps_ir.CreateFunction node) { 551 visitCreateFunction(cps_ir.CreateFunction node) {
559 unexpectedNode(node); 552 unexpectedNode(node);
560 } 553 }
561 visitGetMutableVariable(cps_ir.GetMutableVariable node) { 554 visitGetMutableVariable(cps_ir.GetMutableVariable node) {
562 unexpectedNode(node); 555 unexpectedNode(node);
563 } 556 }
564 visitParameter(cps_ir.Parameter node) { 557 visitParameter(cps_ir.Parameter node) {
(...skipping 24 matching lines...) Expand all
589 @override 582 @override
590 visitReadTypeVariable(cps_ir.ReadTypeVariable node) { 583 visitReadTypeVariable(cps_ir.ReadTypeVariable node) {
591 unexpectedNode(node); 584 unexpectedNode(node);
592 } 585 }
593 586
594 @override 587 @override
595 visitReifyRuntimeType(cps_ir.ReifyRuntimeType node) { 588 visitReifyRuntimeType(cps_ir.ReifyRuntimeType node) {
596 unexpectedNode(node); 589 unexpectedNode(node);
597 } 590 }
598 } 591 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart ('k') | pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698