| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |