| 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 closure; | 7 import '../closure.dart' as closure; |
| 8 import '../common.dart'; | 8 import '../common.dart'; |
| 9 import '../common/names.dart' show | 9 import '../common/names.dart' show |
| 10 Names, | 10 Names, |
| (...skipping 3526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3537 | 3537 |
| 3538 DartType unaliasType(DartType type) => type.unaliased; | 3538 DartType unaliasType(DartType type) => type.unaliased; |
| 3539 | 3539 |
| 3540 TypeMask getTypeMaskForForeign(NativeBehavior behavior) { | 3540 TypeMask getTypeMaskForForeign(NativeBehavior behavior) { |
| 3541 if (behavior == null) { | 3541 if (behavior == null) { |
| 3542 return _backend.dynamicType; | 3542 return _backend.dynamicType; |
| 3543 } | 3543 } |
| 3544 return TypeMaskFactory.fromNativeBehavior(behavior, _compiler); | 3544 return TypeMaskFactory.fromNativeBehavior(behavior, _compiler); |
| 3545 } | 3545 } |
| 3546 | 3546 |
| 3547 TypeMask getTypeMaskForNativeFunction(FunctionElement function) { |
| 3548 return _compiler.typesTask.getGuaranteedTypeOfElement(function); |
| 3549 } |
| 3550 |
| 3547 FieldElement locateSingleField(Selector selector, TypeMask type) { | 3551 FieldElement locateSingleField(Selector selector, TypeMask type) { |
| 3548 return _compiler.world.locateSingleField(selector, type); | 3552 return _compiler.world.locateSingleField(selector, type); |
| 3549 } | 3553 } |
| 3550 | 3554 |
| 3551 Element get closureConverter { | 3555 Element get closureConverter { |
| 3552 return _backend.helpers.closureConverter; | 3556 return _backend.helpers.closureConverter; |
| 3553 } | 3557 } |
| 3554 | 3558 |
| 3555 void addNativeMethod(FunctionElement function) { | 3559 void addNativeMethod(FunctionElement function) { |
| 3556 _backend.emitter.nativeEmitter.nativeMethods.add(function); | 3560 _backend.emitter.nativeEmitter.nativeMethods.add(function); |
| 3557 } | 3561 } |
| 3558 } | 3562 } |
| OLD | NEW |