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

Side by Side Diff: pkg/compiler/lib/src/cps_ir/backward_null_check_remover.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.backward_null_check_remover; 1 library dart2js.cps_ir.backward_null_check_remover;
2 2
3 import 'cps_fragment.dart';
3 import 'cps_ir_nodes.dart'; 4 import 'cps_ir_nodes.dart';
4 import 'optimizers.dart'; 5 import 'optimizers.dart';
5 import 'type_mask_system.dart'; 6 import 'type_mask_system.dart';
6 import 'cps_fragment.dart';
7 7
8 /// Removes null checks that are follwed by another instruction that will 8 /// Removes null checks that are follwed by another instruction that will
9 /// perform the same check. 9 /// perform the same check.
10 /// 10 ///
11 /// For example: 11 /// For example:
12 /// 12 ///
13 /// x.toString; // NullCheck instruction 13 /// x.toString; // NullCheck instruction
14 /// print(x.length); 14 /// print(x.length);
15 /// 15 ///
16 /// ==> 16 /// ==>
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 void visitLetHandler(LetHandler node) { 119 void visitLetHandler(LetHandler node) {
120 nullCheckedValue = null; 120 nullCheckedValue = null;
121 } 121 }
122 122
123 visitInvokeContinuation(InvokeContinuation node) { 123 visitInvokeContinuation(InvokeContinuation node) {
124 if (!node.isRecursive) { 124 if (!node.isRecursive) {
125 nullCheckedValue = nullCheckedValueAt[node.continuation]; 125 nullCheckedValue = nullCheckedValueAt[node.continuation];
126 } 126 }
127 } 127 }
128 } 128 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/constants/constant_system.dart ('k') | pkg/compiler/lib/src/cps_ir/bounds_checker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698