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

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

Issue 1086323002: cps-ir: Remove redundant identical() calls in type propagation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase + update tests Created 5 years, 7 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/type_propagation.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.optimizers; 5 library dart2js.cps_ir.optimizers;
6 6
7 import '../constants/constant_system.dart';
8 import '../constants/expressions.dart';
9 import '../constants/values.dart';
10 import '../dart_types.dart' as types;
11 import '../dart2jslib.dart' as dart2js;
12 import '../resolution/operators.dart';
13 import '../tree/tree.dart' show LiteralDartString;
14 import 'cps_ir_nodes.dart'; 7 import 'cps_ir_nodes.dart';
15 import '../types/types.dart' show TypeMask, TypesTask;
16 import '../types/constants.dart' show computeTypeMask;
17 import '../elements/elements.dart' show ClassElement, Element, Entity,
18 FieldElement, FunctionElement, ParameterElement;
19 import '../dart2jslib.dart' show ClassWorld;
20 8
21 part 'type_propagation.dart'; 9 export 'type_propagation.dart' show TypePropagator, TypeSystem,
10 UnitTypeSystem, TypeMaskSystem;
11
22 part 'redundant_phi.dart'; 12 part 'redundant_phi.dart';
23 part 'shrinking_reductions.dart'; 13 part 'shrinking_reductions.dart';
24 14
15
25 /// An optimization pass over the CPS IR. 16 /// An optimization pass over the CPS IR.
26 abstract class Pass { 17 abstract class Pass {
27 /// Applies optimizations to root, rewriting it in the process. 18 /// Applies optimizations to root, rewriting it in the process.
28 void rewrite(RootNode root); 19 void rewrite(RootNode root);
29 20
30 String get passName; 21 String get passName;
31 } 22 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/type_propagation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698