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

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

Issue 9190038: Handle escapes in string literals. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Removed validation from scanner Created 8 years, 11 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
« no previous file with comments | « frog/leg/scanner/vm_scanner_bench.dart ('k') | frog/leg/ssa/codegen.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after
1144 1144
1145 void visitLiteralDouble(LiteralDouble node) { 1145 void visitLiteralDouble(LiteralDouble node) {
1146 push(new HLiteral(node.value, HType.DOUBLE)); 1146 push(new HLiteral(node.value, HType.DOUBLE));
1147 } 1147 }
1148 1148
1149 void visitLiteralBool(LiteralBool node) { 1149 void visitLiteralBool(LiteralBool node) {
1150 push(new HLiteral(node.value, HType.BOOLEAN)); 1150 push(new HLiteral(node.value, HType.BOOLEAN));
1151 } 1151 }
1152 1152
1153 void visitLiteralString(LiteralString node) { 1153 void visitLiteralString(LiteralString node) {
1154 if (node.value.stringValue[0] == '@') {
1155 compiler.unimplemented("SsaBuilder: raw strings", node: node);
1156 }
1157 push(new HLiteral(new QuotedString.explicit(node.value), HType.STRING)); 1154 push(new HLiteral(new QuotedString.explicit(node.value), HType.STRING));
1158 } 1155 }
1159 1156
1160 void visitLiteralNull(LiteralNull node) { 1157 void visitLiteralNull(LiteralNull node) {
1161 push(new HLiteral(null, HType.UNKNOWN)); 1158 push(new HLiteral(null, HType.UNKNOWN));
1162 } 1159 }
1163 1160
1164 visitNodeList(NodeList node) { 1161 visitNodeList(NodeList node) {
1165 for (Link<Node> link = node.nodes; !link.isEmpty(); link = link.tail) { 1162 for (Link<Node> link = node.nodes; !link.isEmpty(); link = link.tail) {
1166 visit(link.head); 1163 visit(link.head);
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
1418 } 1415 }
1419 1416
1420 visitCatchBlock(CatchBlock node) { 1417 visitCatchBlock(CatchBlock node) {
1421 compiler.unimplemented('SsaBuilder.visitCatchBlock', node: node); 1418 compiler.unimplemented('SsaBuilder.visitCatchBlock', node: node);
1422 } 1419 }
1423 1420
1424 visitTypedef(Typedef node) { 1421 visitTypedef(Typedef node) {
1425 compiler.unimplemented('SsaBuilder.visitTypedef', node: node); 1422 compiler.unimplemented('SsaBuilder.visitTypedef', node: node);
1426 } 1423 }
1427 } 1424 }
OLDNEW
« no previous file with comments | « frog/leg/scanner/vm_scanner_bench.dart ('k') | frog/leg/ssa/codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698