| 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 2478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2489 } | 2489 } |
| 2490 | 2490 |
| 2491 FunctionElement get stringifyFunction { | 2491 FunctionElement get stringifyFunction { |
| 2492 return _backend.getStringInterpolationHelper(); | 2492 return _backend.getStringInterpolationHelper(); |
| 2493 } | 2493 } |
| 2494 | 2494 |
| 2495 FunctionElement get throwTypeErrorHelper => _backend.getThrowTypeError(); | 2495 FunctionElement get throwTypeErrorHelper => _backend.getThrowTypeError(); |
| 2496 | 2496 |
| 2497 ClassElement get nullClass => _compiler.nullClass; | 2497 ClassElement get nullClass => _compiler.nullClass; |
| 2498 | 2498 |
| 2499 DartType unaliasType(DartType type) => type.unalias(_compiler); | 2499 DartType unaliasType(DartType type) => type.unalias(_compiler.resolution); |
| 2500 | 2500 |
| 2501 TypeMask getTypeMaskForForeign(NativeBehavior behavior) { | 2501 TypeMask getTypeMaskForForeign(NativeBehavior behavior) { |
| 2502 if (behavior == null) { | 2502 if (behavior == null) { |
| 2503 return _backend.dynamicType; | 2503 return _backend.dynamicType; |
| 2504 } | 2504 } |
| 2505 return TypeMaskFactory.fromNativeBehavior(behavior, _compiler); | 2505 return TypeMaskFactory.fromNativeBehavior(behavior, _compiler); |
| 2506 } | 2506 } |
| 2507 | 2507 |
| 2508 FieldElement locateSingleField(Selector selector, TypeMask type) { | 2508 FieldElement locateSingleField(Selector selector, TypeMask type) { |
| 2509 return _compiler.world.locateSingleField(selector, type); | 2509 return _compiler.world.locateSingleField(selector, type); |
| (...skipping 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3576 if (compiler.backend.isForeign(function)) { | 3576 if (compiler.backend.isForeign(function)) { |
| 3577 return handleForeignCode(node, function, argumentList, callStructure); | 3577 return handleForeignCode(node, function, argumentList, callStructure); |
| 3578 } else { | 3578 } else { |
| 3579 return irBuilder.buildStaticFunctionInvocation(function, callStructure, | 3579 return irBuilder.buildStaticFunctionInvocation(function, callStructure, |
| 3580 translateStaticArguments(argumentList, function, callStructure), | 3580 translateStaticArguments(argumentList, function, callStructure), |
| 3581 sourceInformation: | 3581 sourceInformation: |
| 3582 sourceInformationBuilder.buildCall(node, node.selector)); | 3582 sourceInformationBuilder.buildCall(node, node.selector)); |
| 3583 } | 3583 } |
| 3584 } | 3584 } |
| 3585 } | 3585 } |
| OLD | NEW |