OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 part of ssa; | 5 part of ssa; |
6 | 6 |
7 /** | 7 /** |
8 * A special element for the extra parameter taken by intercepted | 8 * A special element for the extra parameter taken by intercepted |
9 * methods. We need to override [Element.computeType] because our | 9 * methods. We need to override [Element.computeType] because our |
10 * optimizers may look at its declared type. | 10 * optimizers may look at its declared type. |
(...skipping 1332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1343 if (assignment == null) { | 1343 if (assignment == null) { |
1344 value = graph.addConstantNull(constantSystem); | 1344 value = graph.addConstantNull(constantSystem); |
1345 } else { | 1345 } else { |
1346 Node right = assignment.arguments.head; | 1346 Node right = assignment.arguments.head; |
1347 TreeElements savedElements = elements; | 1347 TreeElements savedElements = elements; |
1348 elements = definitions; | 1348 elements = definitions; |
1349 // In case the field initializer uses closures, run the | 1349 // In case the field initializer uses closures, run the |
1350 // closure to class mapper. | 1350 // closure to class mapper. |
1351 compiler.closureToClassMapper.computeClosureToClassMapping( | 1351 compiler.closureToClassMapper.computeClosureToClassMapping( |
1352 member, node, elements); | 1352 member, node, elements); |
1353 sourceElementStack.add(member); | 1353 inlinedFrom(member, () => right.accept(this)); |
1354 right.accept(this); | |
1355 sourceElementStack.removeLast(); | |
1356 elements = savedElements; | 1354 elements = savedElements; |
1357 value = pop(); | 1355 value = pop(); |
1358 } | 1356 } |
1359 fieldValues[member] = value; | 1357 fieldValues[member] = value; |
1360 }); | 1358 }); |
1361 }, | 1359 }, |
1362 includeBackendMembers: true, | 1360 includeBackendMembers: true, |
1363 includeSuperMembers: false); | 1361 includeSuperMembers: false); |
1364 } | 1362 } |
1365 | 1363 |
(...skipping 3795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5161 new HSubGraphBlockInformation(elseBranch.graph)); | 5159 new HSubGraphBlockInformation(elseBranch.graph)); |
5162 | 5160 |
5163 HBasicBlock conditionStartBlock = conditionBranch.block; | 5161 HBasicBlock conditionStartBlock = conditionBranch.block; |
5164 conditionStartBlock.setBlockFlow(info, joinBlock); | 5162 conditionStartBlock.setBlockFlow(info, joinBlock); |
5165 SubGraph conditionGraph = conditionBranch.graph; | 5163 SubGraph conditionGraph = conditionBranch.graph; |
5166 HIf branch = conditionGraph.end.last; | 5164 HIf branch = conditionGraph.end.last; |
5167 assert(branch is HIf); | 5165 assert(branch is HIf); |
5168 branch.blockInformation = conditionStartBlock.blockFlow; | 5166 branch.blockInformation = conditionStartBlock.blockFlow; |
5169 } | 5167 } |
5170 } | 5168 } |
OLD | NEW |