| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 | 4 |
| 5 import '../common.dart'; | 5 import '../common.dart'; |
| 6 import '../io/source_information.dart'; | 6 import '../io/source_information.dart'; |
| 7 import '../tree/tree.dart' as ast; | |
| 8 | 7 |
| 9 import 'graph_builder.dart'; | 8 import 'graph_builder.dart'; |
| 10 import 'locals_handler.dart'; | 9 import 'locals_handler.dart'; |
| 11 import 'nodes.dart'; | 10 import 'nodes.dart'; |
| 12 | 11 |
| 13 class SsaBranch { | 12 class SsaBranch { |
| 14 final SsaBranchBuilder branchBuilder; | 13 final SsaBranchBuilder branchBuilder; |
| 15 final HBasicBlock block; | 14 final HBasicBlock block; |
| 16 LocalsHandler startLocals; | 15 LocalsHandler startLocals; |
| 17 LocalsHandler exitLocals; | 16 LocalsHandler exitLocals; |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 new HSubGraphBlockInformation(elseBranch.graph)); | 218 new HSubGraphBlockInformation(elseBranch.graph)); |
| 220 | 219 |
| 221 HBasicBlock conditionStartBlock = conditionBranch.block; | 220 HBasicBlock conditionStartBlock = conditionBranch.block; |
| 222 conditionStartBlock.setBlockFlow(info, joinBlock); | 221 conditionStartBlock.setBlockFlow(info, joinBlock); |
| 223 SubGraph conditionGraph = conditionBranch.graph; | 222 SubGraph conditionGraph = conditionBranch.graph; |
| 224 HIf branch = conditionGraph.end.last; | 223 HIf branch = conditionGraph.end.last; |
| 225 assert(branch is HIf); | 224 assert(branch is HIf); |
| 226 branch.blockInformation = conditionStartBlock.blockFlow; | 225 branch.blockInformation = conditionStartBlock.blockFlow; |
| 227 } | 226 } |
| 228 } | 227 } |
| OLD | NEW |