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

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

Issue 901883002: Use type argument for abstract values. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix long line. Created 5 years, 10 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/expressions.dart' show 7 import '../constants/expressions.dart' show
8 ConstantExpression, 8 ConstantExpression,
9 PrimitiveConstantExpression; 9 PrimitiveConstantExpression;
10 import '../constants/values.dart'; 10 import '../constants/values.dart';
11 import '../dart_types.dart' as types; 11 import '../dart_types.dart' as types;
12 import '../dart2jslib.dart' as dart2js; 12 import '../dart2jslib.dart' as dart2js;
13 import '../tree/tree.dart' show LiteralDartString; 13 import '../tree/tree.dart' show LiteralDartString;
14 import '../util/util.dart'; 14 import '../util/util.dart';
15 import 'cps_ir_nodes.dart'; 15 import 'cps_ir_nodes.dart';
16 import '../types/types.dart' show TypeMask, TypesTask; 16 import '../types/types.dart' show TypeMask, TypesTask;
17 import '../core_types.dart' show CoreTypes;
17 import '../types/constants.dart' show computeTypeMask; 18 import '../types/constants.dart' show computeTypeMask;
18 import '../elements/elements.dart' show ClassElement, Element, Entity, 19 import '../elements/elements.dart' show ClassElement, Element, Entity,
19 FieldElement, FunctionElement, ParameterElement; 20 FieldElement, FunctionElement, ParameterElement;
20 import '../dart2jslib.dart' show ClassWorld; 21 import '../dart2jslib.dart' show ClassWorld;
21 22
22 part 'type_propagation.dart'; 23 part 'type_propagation.dart';
23 part 'redundant_phi.dart'; 24 part 'redundant_phi.dart';
24 part 'shrinking_reductions.dart'; 25 part 'shrinking_reductions.dart';
25 26
26 /// An optimization pass over the CPS IR. 27 /// An optimization pass over the CPS IR.
(...skipping 18 matching lines...) Expand all
45 46
46 void rewriteConstructorDefinition(ConstructorDefinition root) { 47 void rewriteConstructorDefinition(ConstructorDefinition root) {
47 if (root.isAbstract) return; 48 if (root.isAbstract) return;
48 rewriteExecutableDefinition(root); 49 rewriteExecutableDefinition(root);
49 } 50 }
50 void rewriteFieldDefinition(FieldDefinition root) { 51 void rewriteFieldDefinition(FieldDefinition root) {
51 if (!root.hasInitializer) return; 52 if (!root.hasInitializer) return;
52 rewriteExecutableDefinition(root); 53 rewriteExecutableDefinition(root);
53 } 54 }
54 } 55 }
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