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

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

Issue 1762723002: Cleanup 1: split parts into their own libraries, remove unused imports (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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.backward_null_check_remover; 1 library dart2js.cps_ir.backward_null_check_remover;
2 2
3 import 'cps_ir_nodes.dart'; 3 import 'cps_ir_nodes.dart';
4 import 'optimizers.dart'; 4 import 'optimizers.dart';
5 import '../common/names.dart';
6 import '../universe/selector.dart';
7 import 'type_mask_system.dart'; 5 import 'type_mask_system.dart';
8 import 'cps_fragment.dart'; 6 import 'cps_fragment.dart';
9 7
10 /// Removes null checks that are follwed by another instruction that will 8 /// Removes null checks that are follwed by another instruction that will
11 /// perform the same check. 9 /// perform the same check.
12 /// 10 ///
13 /// For example: 11 /// For example:
14 /// 12 ///
15 /// x.toString; // NullCheck instruction 13 /// x.toString; // NullCheck instruction
16 /// print(x.length); 14 /// print(x.length);
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 void visitLetHandler(LetHandler node) { 117 void visitLetHandler(LetHandler node) {
120 nullCheckedValue = null; 118 nullCheckedValue = null;
121 } 119 }
122 120
123 visitInvokeContinuation(InvokeContinuation node) { 121 visitInvokeContinuation(InvokeContinuation node) {
124 if (!node.isRecursive) { 122 if (!node.isRecursive) {
125 nullCheckedValue = nullCheckedValueAt[node.continuation]; 123 nullCheckedValue = nullCheckedValueAt[node.continuation];
126 } 124 }
127 } 125 }
128 } 126 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698