| 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 4084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4095 List<HInstruction> inputs = <HInstruction>[]; | 4095 List<HInstruction> inputs = <HInstruction>[]; |
| 4096 for (Link<Node> link = node.entries.nodes; | 4096 for (Link<Node> link = node.entries.nodes; |
| 4097 !link.isEmpty; | 4097 !link.isEmpty; |
| 4098 link = link.tail) { | 4098 link = link.tail) { |
| 4099 visit(link.head); | 4099 visit(link.head); |
| 4100 inputs.add(pop()); | 4100 inputs.add(pop()); |
| 4101 inputs.add(pop()); | 4101 inputs.add(pop()); |
| 4102 } | 4102 } |
| 4103 HLiteralList keyValuePairs = new HLiteralList(inputs); | 4103 HLiteralList keyValuePairs = new HLiteralList(inputs); |
| 4104 add(keyValuePairs); | 4104 add(keyValuePairs); |
| 4105 DartType mapType = compiler.mapLiteralClass.computeType(compiler); | 4105 DartType mapType = backend.mapLiteralClass.computeType(compiler); |
| 4106 // TODO(ngeoffray): Use the actual implementation type of a map | 4106 // TODO(ngeoffray): Use the actual implementation type of a map |
| 4107 // literal. | 4107 // literal. |
| 4108 pushInvokeHelper1(backend.getMapMaker(), keyValuePairs, | 4108 pushInvokeHelper1(backend.getMapMaker(), keyValuePairs, |
| 4109 new HType.nonNullSubtype(mapType, compiler)); | 4109 new HType.nonNullSubtype(mapType, compiler)); |
| 4110 } | 4110 } |
| 4111 | 4111 |
| 4112 visitLiteralMapEntry(LiteralMapEntry node) { | 4112 visitLiteralMapEntry(LiteralMapEntry node) { |
| 4113 visit(node.value); | 4113 visit(node.value); |
| 4114 visit(node.key); | 4114 visit(node.key); |
| 4115 } | 4115 } |
| (...skipping 974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5090 new HSubGraphBlockInformation(elseBranch.graph)); | 5090 new HSubGraphBlockInformation(elseBranch.graph)); |
| 5091 | 5091 |
| 5092 HBasicBlock conditionStartBlock = conditionBranch.block; | 5092 HBasicBlock conditionStartBlock = conditionBranch.block; |
| 5093 conditionStartBlock.setBlockFlow(info, joinBlock); | 5093 conditionStartBlock.setBlockFlow(info, joinBlock); |
| 5094 SubGraph conditionGraph = conditionBranch.graph; | 5094 SubGraph conditionGraph = conditionBranch.graph; |
| 5095 HIf branch = conditionGraph.end.last; | 5095 HIf branch = conditionGraph.end.last; |
| 5096 assert(branch is HIf); | 5096 assert(branch is HIf); |
| 5097 branch.blockInformation = conditionStartBlock.blockFlow; | 5097 branch.blockInformation = conditionStartBlock.blockFlow; |
| 5098 } | 5098 } |
| 5099 } | 5099 } |
| OLD | NEW |