| 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/names.dart' show | 9 import '../common/names.dart' show |
| 10 Names, | 10 Names, |
| (...skipping 2047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2058 return buildInstanceNoSuchMethod( | 2058 return buildInstanceNoSuchMethod( |
| 2059 elements.getSelector(node), elements.getTypeMask(node), []); | 2059 elements.getSelector(node), elements.getTypeMask(node), []); |
| 2060 } | 2060 } |
| 2061 | 2061 |
| 2062 @override | 2062 @override |
| 2063 ir.Primitive bulkHandleNode(ast.Node node, String message, _) { | 2063 ir.Primitive bulkHandleNode(ast.Node node, String message, _) { |
| 2064 return giveup(node, "Unhandled node: ${message.replaceAll('#', '$node')}"); | 2064 return giveup(node, "Unhandled node: ${message.replaceAll('#', '$node')}"); |
| 2065 } | 2065 } |
| 2066 | 2066 |
| 2067 @override | 2067 @override |
| 2068 ir.Primitive bulkHandleError(ast.Send node, ErroneousElement error, _) { | 2068 ir.Primitive bulkHandleError(ast.Node node, ErroneousElement error, _) { |
| 2069 assert(compiler.compilationFailed); | |
| 2070 return irBuilder.buildNullConstant(); | 2069 return irBuilder.buildNullConstant(); |
| 2071 } | 2070 } |
| 2072 | 2071 |
| 2073 @override | 2072 @override |
| 2074 ir.Primitive visitClassTypeLiteralSet( | 2073 ir.Primitive visitClassTypeLiteralSet( |
| 2075 ast.SendSet node, | 2074 ast.SendSet node, |
| 2076 TypeConstantExpression constant, | 2075 TypeConstantExpression constant, |
| 2077 ast.Node rhs, _) { | 2076 ast.Node rhs, _) { |
| 2078 InterfaceType type = constant.type; | 2077 InterfaceType type = constant.type; |
| 2079 ClassElement element = type.element; | 2078 ClassElement element = type.element; |
| (...skipping 1496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3576 if (compiler.backend.isForeign(function)) { | 3575 if (compiler.backend.isForeign(function)) { |
| 3577 return handleForeignCode(node, function, argumentList, callStructure); | 3576 return handleForeignCode(node, function, argumentList, callStructure); |
| 3578 } else { | 3577 } else { |
| 3579 return irBuilder.buildStaticFunctionInvocation(function, callStructure, | 3578 return irBuilder.buildStaticFunctionInvocation(function, callStructure, |
| 3580 translateStaticArguments(argumentList, function, callStructure), | 3579 translateStaticArguments(argumentList, function, callStructure), |
| 3581 sourceInformation: | 3580 sourceInformation: |
| 3582 sourceInformationBuilder.buildCall(node, node.selector)); | 3581 sourceInformationBuilder.buildCall(node, node.selector)); |
| 3583 } | 3582 } |
| 3584 } | 3583 } |
| 3585 } | 3584 } |
| OLD | NEW |