| 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 5058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5069 enterBlock.setBlockFlow( | 5069 enterBlock.setBlockFlow( |
| 5070 new HTryBlockInformation( | 5070 new HTryBlockInformation( |
| 5071 wrapStatementGraph(bodyGraph), | 5071 wrapStatementGraph(bodyGraph), |
| 5072 exception, | 5072 exception, |
| 5073 wrapStatementGraph(catchGraph), | 5073 wrapStatementGraph(catchGraph), |
| 5074 wrapStatementGraph(finallyGraph)), | 5074 wrapStatementGraph(finallyGraph)), |
| 5075 exitBlock); | 5075 exitBlock); |
| 5076 inTryStatement = oldInTryStatement; | 5076 inTryStatement = oldInTryStatement; |
| 5077 } | 5077 } |
| 5078 | 5078 |
| 5079 visitScriptTag(ScriptTag node) { | |
| 5080 compiler.unimplemented('SsaBuilder.visitScriptTag', node: node); | |
| 5081 } | |
| 5082 | |
| 5083 visitCatchBlock(CatchBlock node) { | 5079 visitCatchBlock(CatchBlock node) { |
| 5084 visit(node.block); | 5080 visit(node.block); |
| 5085 } | 5081 } |
| 5086 | 5082 |
| 5087 visitTypedef(Typedef node) { | 5083 visitTypedef(Typedef node) { |
| 5088 compiler.unimplemented('SsaBuilder.visitTypedef', node: node); | 5084 compiler.unimplemented('SsaBuilder.visitTypedef', node: node); |
| 5089 } | 5085 } |
| 5090 | 5086 |
| 5091 visitTypeVariable(TypeVariable node) { | 5087 visitTypeVariable(TypeVariable node) { |
| 5092 compiler.internalError('SsaBuilder.visitTypeVariable'); | 5088 compiler.internalError('SsaBuilder.visitTypeVariable'); |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5505 new HSubGraphBlockInformation(elseBranch.graph)); | 5501 new HSubGraphBlockInformation(elseBranch.graph)); |
| 5506 | 5502 |
| 5507 HBasicBlock conditionStartBlock = conditionBranch.block; | 5503 HBasicBlock conditionStartBlock = conditionBranch.block; |
| 5508 conditionStartBlock.setBlockFlow(info, joinBlock); | 5504 conditionStartBlock.setBlockFlow(info, joinBlock); |
| 5509 SubGraph conditionGraph = conditionBranch.graph; | 5505 SubGraph conditionGraph = conditionBranch.graph; |
| 5510 HIf branch = conditionGraph.end.last; | 5506 HIf branch = conditionGraph.end.last; |
| 5511 assert(branch is HIf); | 5507 assert(branch is HIf); |
| 5512 branch.blockInformation = conditionStartBlock.blockFlow; | 5508 branch.blockInformation = conditionStartBlock.blockFlow; |
| 5513 } | 5509 } |
| 5514 } | 5510 } |
| OLD | NEW |