| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 class SsaBuilderTask extends CompilerTask { | 5 class SsaBuilderTask extends CompilerTask { |
| 6 SsaBuilderTask(Compiler compiler) : super(compiler); | 6 SsaBuilderTask(Compiler compiler) : super(compiler); |
| 7 String get name() => 'SSA builder'; | 7 String get name() => 'SSA builder'; |
| 8 | 8 |
| 9 HGraph build(FunctionElement element, TreeElements elements) { | 9 HGraph build(FunctionElement element, TreeElements elements) { |
| 10 return measure(() { | 10 return measure(() { |
| (...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 947 HBasicBlock joinBlock = addNewBlock(); | 947 HBasicBlock joinBlock = addNewBlock(); |
| 948 thenBlock.addSuccessor(joinBlock); | 948 thenBlock.addSuccessor(joinBlock); |
| 949 elseBlock.addSuccessor(joinBlock); | 949 elseBlock.addSuccessor(joinBlock); |
| 950 open(joinBlock); | 950 open(joinBlock); |
| 951 | 951 |
| 952 definitions = joinDefinitions(joinBlock, thenDefinitions, definitions); | 952 definitions = joinDefinitions(joinBlock, thenDefinitions, definitions); |
| 953 HPhi phi = new HPhi.manyInputs(null, [thenInstruction, elseInstruction]); | 953 HPhi phi = new HPhi.manyInputs(null, [thenInstruction, elseInstruction]); |
| 954 joinBlock.addPhi(phi); | 954 joinBlock.addPhi(phi); |
| 955 stack.add(phi); | 955 stack.add(phi); |
| 956 } | 956 } |
| 957 |
| 958 visitStringInterpolation(StringInterpolation node) { |
| 959 compiler.unimplemented('SsaBuilder.visitStringInterpolation', node: node); |
| 960 } |
| 961 |
| 962 visitStringInterpolationPart(StringInterpolationPart node) { |
| 963 compiler.unimplemented('SsaBuilder.visitStringInterpolationPart', |
| 964 node: node); |
| 965 } |
| 957 } | 966 } |
| OLD | NEW |