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

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

Issue 1018403002: Revert "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
324 visitReifyTypeVar(cps_ir.ReifyTypeVar node) { 328 visitReifyTypeVar(cps_ir.ReifyTypeVar node) {
325 return "ReifyTypeVar ${node.typeVariable.name}"; 329 return "ReifyTypeVar ${node.typeVariable.name}";
326 } 330 }
327 331
328 visitCreateFunction(cps_ir.CreateFunction node) { 332 visitCreateFunction(cps_ir.CreateFunction node) {
329 return "CreateFunction ${node.definition.element.name}"; 333 return "CreateFunction ${node.definition.element.name}";
330 } 334 }
331 335
332 visitGetMutableVariable(cps_ir.GetMutableVariable node) { 336 visitGetMutableVariable(cps_ir.GetMutableVariable node) {
333 String variable = names.name(node.variable.definition); 337 String variable = names.name(node.variable.definition);
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 542
539 visitLiteralList(cps_ir.LiteralList node) { 543 visitLiteralList(cps_ir.LiteralList node) {
540 unexpectedNode(node); 544 unexpectedNode(node);
541 } 545 }
542 visitLiteralMap(cps_ir.LiteralMap node) { 546 visitLiteralMap(cps_ir.LiteralMap node) {
543 unexpectedNode(node); 547 unexpectedNode(node);
544 } 548 }
545 visitConstant(cps_ir.Constant node) { 549 visitConstant(cps_ir.Constant node) {
546 unexpectedNode(node); 550 unexpectedNode(node);
547 } 551 }
552 visitThis(cps_ir.This node) {
553 unexpectedNode(node);
554 }
548 visitReifyTypeVar(cps_ir.ReifyTypeVar node) { 555 visitReifyTypeVar(cps_ir.ReifyTypeVar node) {
549 unexpectedNode(node); 556 unexpectedNode(node);
550 } 557 }
551 visitCreateFunction(cps_ir.CreateFunction node) { 558 visitCreateFunction(cps_ir.CreateFunction node) {
552 unexpectedNode(node); 559 unexpectedNode(node);
553 } 560 }
554 visitGetMutableVariable(cps_ir.GetMutableVariable node) { 561 visitGetMutableVariable(cps_ir.GetMutableVariable node) {
555 unexpectedNode(node); 562 unexpectedNode(node);
556 } 563 }
557 visitParameter(cps_ir.Parameter node) { 564 visitParameter(cps_ir.Parameter node) {
(...skipping 24 matching lines...) Expand all
582 @override 589 @override
583 visitReadTypeVariable(cps_ir.ReadTypeVariable node) { 590 visitReadTypeVariable(cps_ir.ReadTypeVariable node) {
584 unexpectedNode(node); 591 unexpectedNode(node);
585 } 592 }
586 593
587 @override 594 @override
588 visitReifyRuntimeType(cps_ir.ReifyRuntimeType node) { 595 visitReifyRuntimeType(cps_ir.ReifyRuntimeType node) {
589 unexpectedNode(node); 596 unexpectedNode(node);
590 } 597 }
591 } 598 }
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