OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 library dart2js.ir_builder_task; | 5 library dart2js.ir_builder_task; |
6 | 6 |
7 import '../closure.dart' as closurelib; | 7 import '../closure.dart' as closurelib; |
8 import '../closure.dart' hide ClosureScope; | 8 import '../closure.dart' hide ClosureScope; |
9 import '../common.dart'; | 9 import '../common.dart'; |
10 import '../common/names.dart' show | 10 import '../common/names.dart' show |
(...skipping 2137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2148 new Selector.setter(Names.dynamic_), [visit(rhs)]); | 2148 new Selector.setter(Names.dynamic_), [visit(rhs)]); |
2149 } | 2149 } |
2150 | 2150 |
2151 @override | 2151 @override |
2152 ir.Primitive visitAbstractClassConstructorInvoke( | 2152 ir.Primitive visitAbstractClassConstructorInvoke( |
2153 ast.NewExpression node, | 2153 ast.NewExpression node, |
2154 ConstructorElement element, | 2154 ConstructorElement element, |
2155 InterfaceType type, | 2155 InterfaceType type, |
2156 ast.NodeList arguments, | 2156 ast.NodeList arguments, |
2157 CallStructure callStructure, _) { | 2157 CallStructure callStructure, _) { |
| 2158 for (ast.Node argument in arguments) visit(argument); |
2158 return buildAbstractClassInstantiationError(element.enclosingClass); | 2159 return buildAbstractClassInstantiationError(element.enclosingClass); |
2159 } | 2160 } |
2160 | 2161 |
2161 @override | 2162 @override |
2162 ir.Primitive handleFinalStaticFieldSet( | 2163 ir.Primitive handleFinalStaticFieldSet( |
2163 ast.SendSet node, | 2164 ast.SendSet node, |
2164 FieldElement field, | 2165 FieldElement field, |
2165 ast.Node rhs, _) { | 2166 ast.Node rhs, _) { |
2166 // TODO(asgerf): Include class name somehow for static class members? | 2167 // TODO(asgerf): Include class name somehow for static class members? |
2167 return buildStaticNoSuchMethod( | 2168 return buildStaticNoSuchMethod( |
(...skipping 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3597 if (compiler.backend.isForeign(function)) { | 3598 if (compiler.backend.isForeign(function)) { |
3598 return handleForeignCode(node, function, argumentList, callStructure); | 3599 return handleForeignCode(node, function, argumentList, callStructure); |
3599 } else { | 3600 } else { |
3600 return irBuilder.buildStaticFunctionInvocation(function, callStructure, | 3601 return irBuilder.buildStaticFunctionInvocation(function, callStructure, |
3601 translateStaticArguments(argumentList, function, callStructure), | 3602 translateStaticArguments(argumentList, function, callStructure), |
3602 sourceInformation: | 3603 sourceInformation: |
3603 sourceInformationBuilder.buildCall(node, node.selector)); | 3604 sourceInformationBuilder.buildCall(node, node.selector)); |
3604 } | 3605 } |
3605 } | 3606 } |
3606 } | 3607 } |
OLD | NEW |