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

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

Issue 1204733002: dart2js cps: Make Identical a built-in and add Interceptor to Tree IR. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
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.cps_ir.shrinking_reductions; 5 library dart2js.cps_ir.shrinking_reductions;
6 6
7 import 'cps_ir_nodes.dart'; 7 import 'cps_ir_nodes.dart';
8 import 'optimizers.dart'; 8 import 'optimizers.dart';
9 9
10 /** 10 /**
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 node.parameters.forEach((Parameter parameter) { 609 node.parameters.forEach((Parameter parameter) {
610 parameter.parent = node; 610 parameter.parent = node;
611 parameter.parentIndex = index++; 611 parameter.parentIndex = index++;
612 }); 612 });
613 } 613 }
614 614
615 processIsTrue(IsTrue node) { 615 processIsTrue(IsTrue node) {
616 node.value.parent = node; 616 node.value.parent = node;
617 } 617 }
618 618
619 processIdentical(Identical node) {
620 node.left.parent = node;
621 node.right.parent = node;
622 }
623
624 processInterceptor(Interceptor node) { 619 processInterceptor(Interceptor node) {
625 node.input.parent = node; 620 node.input.parent = node;
626 } 621 }
627 622
628 processSetField(SetField node) { 623 processSetField(SetField node) {
629 node.object.parent = node; 624 node.object.parent = node;
630 node.value.parent = node; 625 node.value.parent = node;
631 node.body.parent = node; 626 node.body.parent = node;
632 } 627 }
633 628
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 } 715 }
721 716
722 String toString() => "$kind: $node"; 717 String toString() => "$kind: $node";
723 } 718 }
724 719
725 /// A dummy class used solely to mark nodes as deleted once they are removed 720 /// A dummy class used solely to mark nodes as deleted once they are removed
726 /// from a term. 721 /// from a term.
727 class _DeletedNode extends Node { 722 class _DeletedNode extends Node {
728 accept(_) => null; 723 accept(_) => null;
729 } 724 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698