| 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 1125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1136 | 1136 |
| 1137 void visitLiteralDouble(LiteralDouble node) { | 1137 void visitLiteralDouble(LiteralDouble node) { |
| 1138 push(new HLiteral(node.value, HType.DOUBLE)); | 1138 push(new HLiteral(node.value, HType.DOUBLE)); |
| 1139 } | 1139 } |
| 1140 | 1140 |
| 1141 void visitLiteralBool(LiteralBool node) { | 1141 void visitLiteralBool(LiteralBool node) { |
| 1142 push(new HLiteral(node.value, HType.BOOLEAN)); | 1142 push(new HLiteral(node.value, HType.BOOLEAN)); |
| 1143 } | 1143 } |
| 1144 | 1144 |
| 1145 void visitLiteralString(LiteralString node) { | 1145 void visitLiteralString(LiteralString node) { |
| 1146 if (node.value.stringValue[0] == '@') { | |
| 1147 compiler.unimplemented("SsaBuilder: raw strings", node: node); | |
| 1148 } | |
| 1149 push(new HLiteral(new QuotedString.explicit(node.value), HType.STRING)); | 1146 push(new HLiteral(new QuotedString.explicit(node.value), HType.STRING)); |
| 1150 } | 1147 } |
| 1151 | 1148 |
| 1152 void visitLiteralNull(LiteralNull node) { | 1149 void visitLiteralNull(LiteralNull node) { |
| 1153 push(new HLiteral(null, HType.UNKNOWN)); | 1150 push(new HLiteral(null, HType.UNKNOWN)); |
| 1154 } | 1151 } |
| 1155 | 1152 |
| 1156 visitNodeList(NodeList node) { | 1153 visitNodeList(NodeList node) { |
| 1157 for (Link<Node> link = node.nodes; !link.isEmpty(); link = link.tail) { | 1154 for (Link<Node> link = node.nodes; !link.isEmpty(); link = link.tail) { |
| 1158 visit(link.head); | 1155 visit(link.head); |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1410 } | 1407 } |
| 1411 | 1408 |
| 1412 visitCatchBlock(CatchBlock node) { | 1409 visitCatchBlock(CatchBlock node) { |
| 1413 compiler.unimplemented('SsaBuilder.visitCatchBlock', node: node); | 1410 compiler.unimplemented('SsaBuilder.visitCatchBlock', node: node); |
| 1414 } | 1411 } |
| 1415 | 1412 |
| 1416 visitTypedef(Typedef node) { | 1413 visitTypedef(Typedef node) { |
| 1417 compiler.unimplemented('SsaBuilder.visitTypedef', node: node); | 1414 compiler.unimplemented('SsaBuilder.visitTypedef', node: node); |
| 1418 } | 1415 } |
| 1419 } | 1416 } |
| OLD | NEW |