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

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

Issue 1330503003: dart2js cps: Add path-sensitive types by inserting refinement IR nodes. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Comments Created 5 years, 3 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 library dart2js.cps_ir.scalar_replacement;
4 5
5 import 'optimizers.dart'; 6 import 'optimizers.dart';
6 7
7 import 'dart:collection' show Queue; 8 import 'dart:collection' show Queue;
8 9
9 import '../closure.dart' show 10 import '../closure.dart' show
10 ClosureClassElement, Identifiers; 11 ClosureClassElement, Identifiers;
11 import '../common/names.dart' show 12 import '../common/names.dart' show
12 Selectors, Identifiers; 13 Selectors, Identifiers;
13 import '../compiler.dart' as dart2js show 14 import '../compiler.dart' as dart2js show
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 class ScalarReplacementRemovalVisitor extends RecursiveVisitor { 243 class ScalarReplacementRemovalVisitor extends RecursiveVisitor {
243 ScalarReplacementVisitor process; 244 ScalarReplacementVisitor process;
244 245
245 ScalarReplacementRemovalVisitor(this.process); 246 ScalarReplacementRemovalVisitor(this.process);
246 247
247 processReference(Reference reference) { 248 processReference(Reference reference) {
248 process.reconsider(reference.definition); 249 process.reconsider(reference.definition);
249 reference.unlink(); 250 reference.unlink();
250 } 251 }
251 } 252 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/remove_refinements.dart ('k') | pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698