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