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

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

Issue 1175973005: dart2js cps: Introduce some built-in operators in type propagation. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Status files 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 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 node.target.parent = node; 662 node.target.parent = node;
663 } 663 }
664 664
665 processTypeExpression(TypeExpression node) { 665 processTypeExpression(TypeExpression node) {
666 node.arguments.forEach((Reference ref) => ref.parent = node); 666 node.arguments.forEach((Reference ref) => ref.parent = node);
667 } 667 }
668 668
669 processCreateInvocationMirror(CreateInvocationMirror node) { 669 processCreateInvocationMirror(CreateInvocationMirror node) {
670 node.arguments.forEach((Reference ref) => ref.parent = node); 670 node.arguments.forEach((Reference ref) => ref.parent = node);
671 } 671 }
672
673 processApplyBuiltinOperator(ApplyBuiltinOperator node) {
674 node.arguments.forEach((Reference ref) => ref.parent = node);
675 }
672 } 676 }
673 677
674 class _ReductionKind { 678 class _ReductionKind {
675 final String name; 679 final String name;
676 final int hashCode; 680 final int hashCode;
677 681
678 const _ReductionKind(this.name, this.hashCode); 682 const _ReductionKind(this.name, this.hashCode);
679 683
680 static const _ReductionKind DEAD_VAL = const _ReductionKind('dead-val', 0); 684 static const _ReductionKind DEAD_VAL = const _ReductionKind('dead-val', 0);
681 static const _ReductionKind DEAD_CONT = const _ReductionKind('dead-cont', 1); 685 static const _ReductionKind DEAD_CONT = const _ReductionKind('dead-cont', 1);
(...skipping 26 matching lines...) Expand all
708 } 712 }
709 713
710 String toString() => "$kind: $node"; 714 String toString() => "$kind: $node";
711 } 715 }
712 716
713 /// A dummy class used solely to mark nodes as deleted once they are removed 717 /// A dummy class used solely to mark nodes as deleted once they are removed
714 /// from a term. 718 /// from a term.
715 class _DeletedNode extends Node { 719 class _DeletedNode extends Node {
716 accept(_) => null; 720 accept(_) => null;
717 } 721 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_tracer.dart ('k') | pkg/compiler/lib/src/cps_ir/type_propagation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698