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

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

Issue 9293006: Refactoring of string literals. Implement static string addition. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
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) 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 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 1155 matching lines...) Expand 10 before | Expand all | Expand 10 after
1166 1166
1167 void visitLiteralDouble(LiteralDouble node) { 1167 void visitLiteralDouble(LiteralDouble node) {
1168 push(new HLiteral(node.value, HType.DOUBLE)); 1168 push(new HLiteral(node.value, HType.DOUBLE));
1169 } 1169 }
1170 1170
1171 void visitLiteralBool(LiteralBool node) { 1171 void visitLiteralBool(LiteralBool node) {
1172 push(new HLiteral(node.value, HType.BOOLEAN)); 1172 push(new HLiteral(node.value, HType.BOOLEAN));
1173 } 1173 }
1174 1174
1175 void visitLiteralString(LiteralString node) { 1175 void visitLiteralString(LiteralString node) {
1176 push(new HLiteral(node.quotedString, HType.STRING)); 1176 push(new HLiteral(node.dartString, HType.STRING));
1177 } 1177 }
1178 1178
1179 void visitLiteralNull(LiteralNull node) { 1179 void visitLiteralNull(LiteralNull node) {
1180 push(new HLiteral(null, HType.UNKNOWN)); 1180 push(new HLiteral(null, HType.UNKNOWN));
1181 } 1181 }
1182 1182
1183 visitNodeList(NodeList node) { 1183 visitNodeList(NodeList node) {
1184 for (Link<Node> link = node.nodes; !link.isEmpty(); link = link.tail) { 1184 for (Link<Node> link = node.nodes; !link.isEmpty(); link = link.tail) {
1185 visit(link.head); 1185 visit(link.head);
1186 } 1186 }
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
1414 } 1414 }
1415 1415
1416 visitCatchBlock(CatchBlock node) { 1416 visitCatchBlock(CatchBlock node) {
1417 compiler.unimplemented('SsaBuilder.visitCatchBlock', node: node); 1417 compiler.unimplemented('SsaBuilder.visitCatchBlock', node: node);
1418 } 1418 }
1419 1419
1420 visitTypedef(Typedef node) { 1420 visitTypedef(Typedef node) {
1421 compiler.unimplemented('SsaBuilder.visitTypedef', node: node); 1421 compiler.unimplemented('SsaBuilder.visitTypedef', node: node);
1422 } 1422 }
1423 } 1423 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698