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

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

Issue 2221893003: pkg/compiler: fix imports (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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 library dart2js.cps_ir.update_refinements; 1 library dart2js.cps_ir.update_refinements;
2 2
3 import '../world.dart';
3 import 'cps_ir_nodes.dart'; 4 import 'cps_ir_nodes.dart';
4 import 'optimizers.dart' show Pass; 5 import 'optimizers.dart' show Pass;
5 import 'type_mask_system.dart'; 6 import 'type_mask_system.dart';
6 import '../world.dart';
7 7
8 /// Updates all references to use the most refined version in scope. 8 /// Updates all references to use the most refined version in scope.
9 /// 9 ///
10 /// [GVN] and [RedundantJoinElimination], and possibly other passes, can create 10 /// [GVN] and [RedundantJoinElimination], and possibly other passes, can create
11 /// references that don't use the best refinement in scope. This pass improves 11 /// references that don't use the best refinement in scope. This pass improves
12 /// the refinement information. 12 /// the refinement information.
13 /// 13 ///
14 // 14 //
15 // TODO(asgerf): Could be done during GVN for another adjacent pass. 15 // TODO(asgerf): Could be done during GVN for another adjacent pass.
16 // It is easier to measure performance and rearrange passes when it has its 16 // It is easier to measure performance and rearrange passes when it has its
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 if (def is Primitive) { 91 if (def is Primitive) {
92 Primitive refinement = refinementFor[def.effectiveDefinition]; 92 Primitive refinement = refinementFor[def.effectiveDefinition];
93 if (refinement != null && refinement != ref.definition) { 93 if (refinement != null && refinement != ref.definition) {
94 ref.changeTo(refinement); 94 ref.changeTo(refinement);
95 return true; 95 return true;
96 } 96 }
97 } 97 }
98 return false; 98 return false;
99 } 99 }
100 } 100 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/type_propagation.dart ('k') | pkg/compiler/lib/src/cps_ir/use_field_initializers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698