| 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 2478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2489 bool requiresRuntimeTypesFor(ClassElement cls) { | 2489 bool requiresRuntimeTypesFor(ClassElement cls) { |
| 2490 return cls.typeVariables.isNotEmpty && _backend.classNeedsRti(cls); | 2490 return cls.typeVariables.isNotEmpty && _backend.classNeedsRti(cls); |
| 2491 } | 2491 } |
| 2492 | 2492 |
| 2493 FunctionElement get stringifyFunction { | 2493 FunctionElement get stringifyFunction { |
| 2494 return _backend.helpers.stringInterpolationHelper; | 2494 return _backend.helpers.stringInterpolationHelper; |
| 2495 } | 2495 } |
| 2496 | 2496 |
| 2497 FunctionElement get throwTypeErrorHelper => _backend.helpers.throwTypeError; | 2497 FunctionElement get throwTypeErrorHelper => _backend.helpers.throwTypeError; |
| 2498 | 2498 |
| 2499 ClassElement get nullClass => _compiler.nullClass; | 2499 ClassElement get nullClass => _compiler.coreClasses.nullClass; |
| 2500 | 2500 |
| 2501 DartType unaliasType(DartType type) => type.unaliased; | 2501 DartType unaliasType(DartType type) => type.unaliased; |
| 2502 | 2502 |
| 2503 TypeMask getTypeMaskForForeign(NativeBehavior behavior) { | 2503 TypeMask getTypeMaskForForeign(NativeBehavior behavior) { |
| 2504 if (behavior == null) { | 2504 if (behavior == null) { |
| 2505 return _backend.dynamicType; | 2505 return _backend.dynamicType; |
| 2506 } | 2506 } |
| 2507 return TypeMaskFactory.fromNativeBehavior(behavior, _compiler); | 2507 return TypeMaskFactory.fromNativeBehavior(behavior, _compiler); |
| 2508 } | 2508 } |
| 2509 | 2509 |
| (...skipping 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3579 if (compiler.backend.isForeign(function)) { | 3579 if (compiler.backend.isForeign(function)) { |
| 3580 return handleForeignCode(node, function, argumentList, callStructure); | 3580 return handleForeignCode(node, function, argumentList, callStructure); |
| 3581 } else { | 3581 } else { |
| 3582 return irBuilder.buildStaticFunctionInvocation(function, callStructure, | 3582 return irBuilder.buildStaticFunctionInvocation(function, callStructure, |
| 3583 translateStaticArguments(argumentList, function, callStructure), | 3583 translateStaticArguments(argumentList, function, callStructure), |
| 3584 sourceInformation: | 3584 sourceInformation: |
| 3585 sourceInformationBuilder.buildCall(node, node.selector)); | 3585 sourceInformationBuilder.buildCall(node, node.selector)); |
| 3586 } | 3586 } |
| 3587 } | 3587 } |
| 3588 } | 3588 } |
| OLD | NEW |