Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(594)

Side by Side Diff: dart/frog/leg/ssa/builder.dart

Issue 8993009: Implement string interpolation up to SSA. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698