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

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

Issue 9421025: Improve double implementation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 10 months 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) 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 class Interceptors { 5 class Interceptors {
6 Compiler compiler; 6 Compiler compiler;
7 Interceptors(Compiler this.compiler); 7 Interceptors(Compiler this.compiler);
8 8
9 SourceString mapOperatorToMethodName(Operator op) { 9 SourceString mapOperatorToMethodName(Operator op) {
10 String name = op.source.stringValue; 10 String name = op.source.stringValue;
(...skipping 1872 matching lines...) Expand 10 before | Expand all | Expand 10 after
1883 push(new HAdd(target, prefix, pop())); 1883 push(new HAdd(target, prefix, pop()));
1884 } 1884 }
1885 } 1885 }
1886 1886
1887 visitStringInterpolationPart(StringInterpolationPart node) { 1887 visitStringInterpolationPart(StringInterpolationPart node) {
1888 // The parts are iterated in visitStringInterpolation. 1888 // The parts are iterated in visitStringInterpolation.
1889 unreachable(); 1889 unreachable();
1890 } 1890 }
1891 1891
1892 visitEmptyStatement(EmptyStatement node) { 1892 visitEmptyStatement(EmptyStatement node) {
1893 compiler.unimplemented('SsaBuilder.visitEmptyStatement', 1893 // Do nothing, empty statement.
1894 node: node);
1895 } 1894 }
1896 1895
1897 visitModifiers(Modifiers node) { 1896 visitModifiers(Modifiers node) {
1898 compiler.unimplemented('SsaBuilder.visitModifiers', node: node); 1897 compiler.unimplemented('SsaBuilder.visitModifiers', node: node);
1899 } 1898 }
1900 1899
1901 visitBreakStatement(BreakStatement node) { 1900 visitBreakStatement(BreakStatement node) {
1902 compiler.unimplemented('SsaBuilder.visitBreakStatement', node: node); 1901 compiler.unimplemented('SsaBuilder.visitBreakStatement', node: node);
1903 } 1902 }
1904 1903
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
2097 } 2096 }
2098 2097
2099 visitCatchBlock(CatchBlock node) { 2098 visitCatchBlock(CatchBlock node) {
2100 visit(node.block); 2099 visit(node.block);
2101 } 2100 }
2102 2101
2103 visitTypedef(Typedef node) { 2102 visitTypedef(Typedef node) {
2104 compiler.unimplemented('SsaBuilder.visitTypedef', node: node); 2103 compiler.unimplemented('SsaBuilder.visitTypedef', node: node);
2105 } 2104 }
2106 } 2105 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698