| OLD | NEW |
| 1 library dart2js.cps_ir_integrity; | 1 library dart2js.cps_ir_integrity; |
| 2 | 2 |
| 3 import '../tracer.dart' as tracer; |
| 3 import 'cps_ir_nodes.dart'; | 4 import 'cps_ir_nodes.dart'; |
| 4 import 'cps_ir_nodes_sexpr.dart'; | 5 import 'cps_ir_nodes_sexpr.dart'; |
| 5 import '../tracer.dart' as tracer; | |
| 6 | 6 |
| 7 /// Dump S-expressions on error if the tracer is enabled. | 7 /// Dump S-expressions on error if the tracer is enabled. |
| 8 /// | 8 /// |
| 9 /// Technically this has nothing to do with the tracer, but if you want one | 9 /// Technically this has nothing to do with the tracer, but if you want one |
| 10 /// enabled, you typically want the other as well, so we use the same flag. | 10 /// enabled, you typically want the other as well, so we use the same flag. |
| 11 const bool ENABLE_DUMP = tracer.TRACE_FILTER_PATTERN != null; | 11 const bool ENABLE_DUMP = tracer.TRACE_FILTER_PATTERN != null; |
| 12 | 12 |
| 13 enum ScopeType { InScope, InDefinition, NotInScope } | 13 enum ScopeType { InScope, InDefinition, NotInScope } |
| 14 | 14 |
| 15 /// Performs integrity checks on the CPS IR. | 15 /// Performs integrity checks on the CPS IR. |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 } | 267 } |
| 268 | 268 |
| 269 @override | 269 @override |
| 270 processReference(Reference node) { | 270 processReference(Reference node) { |
| 271 if (node.parent != _parent) { | 271 if (node.parent != _parent) { |
| 272 error('Parent pointer on $node is ${node.parent} but should be $_parent', | 272 error('Parent pointer on $node is ${node.parent} but should be $_parent', |
| 273 node); | 273 node); |
| 274 } | 274 } |
| 275 } | 275 } |
| 276 } | 276 } |
| OLD | NEW |