| 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 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 920 HBasicBlock joinBlock = addNewBlock(); | 920 HBasicBlock joinBlock = addNewBlock(); |
| 921 thenBlock.addSuccessor(joinBlock); | 921 thenBlock.addSuccessor(joinBlock); |
| 922 elseBlock.addSuccessor(joinBlock); | 922 elseBlock.addSuccessor(joinBlock); |
| 923 open(joinBlock); | 923 open(joinBlock); |
| 924 | 924 |
| 925 definitions = joinDefinitions(joinBlock, thenDefinitions, definitions); | 925 definitions = joinDefinitions(joinBlock, thenDefinitions, definitions); |
| 926 HPhi phi = new HPhi.manyInputs(null, [thenInstruction, elseInstruction]); | 926 HPhi phi = new HPhi.manyInputs(null, [thenInstruction, elseInstruction]); |
| 927 joinBlock.addPhi(phi); | 927 joinBlock.addPhi(phi); |
| 928 stack.add(phi); | 928 stack.add(phi); |
| 929 } | 929 } |
| 930 |
| 931 visitStringInterpolation(StringInterpolation node) { |
| 932 compiler.unimplemented('SsaBuilder.visitStringInterpolation', node: node); |
| 933 } |
| 934 |
| 935 visitStringInterpolationPart(StringInterpolationPart node) { |
| 936 compiler.unimplemented('SsaBuilder.visitStringInterpolationPart', |
| 937 node: node); |
| 938 } |
| 930 } | 939 } |
| OLD | NEW |