| 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 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |