| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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.compiler_base; | 5 library dart2js.compiler_base; |
| 6 | 6 |
| 7 import 'dart:async' show Future; | 7 import 'dart:async' show Future; |
| 8 | 8 |
| 9 import '../compiler_new.dart' as api; | 9 import '../compiler_new.dart' as api; |
| 10 import 'closure.dart' as closureMapping show ClosureTask; | 10 import 'closure.dart' as closureMapping show ClosureTask; |
| (...skipping 1698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1709 } | 1709 } |
| 1710 return transformResolutionImpact(element, resolutionImpact); | 1710 return transformResolutionImpact(element, resolutionImpact); |
| 1711 }); | 1711 }); |
| 1712 }); | 1712 }); |
| 1713 } | 1713 } |
| 1714 | 1714 |
| 1715 @override | 1715 @override |
| 1716 WorldImpact transformResolutionImpact( | 1716 WorldImpact transformResolutionImpact( |
| 1717 Element element, ResolutionImpact resolutionImpact) { | 1717 Element element, ResolutionImpact resolutionImpact) { |
| 1718 WorldImpact worldImpact = _compiler.backend.impactTransformer | 1718 WorldImpact worldImpact = _compiler.backend.impactTransformer |
| 1719 .transformResolutionImpact(enqueuer, resolutionImpact); | 1719 .transformResolutionImpact(resolutionImpact); |
| 1720 _worldImpactCache[element] = worldImpact; | 1720 _worldImpactCache[element] = worldImpact; |
| 1721 return worldImpact; | 1721 return worldImpact; |
| 1722 } | 1722 } |
| 1723 | 1723 |
| 1724 @override | 1724 @override |
| 1725 void uncacheWorldImpact(Element element) { | 1725 void uncacheWorldImpact(Element element) { |
| 1726 assert(invariant(element, element.isDeclaration, | 1726 assert(invariant(element, element.isDeclaration, |
| 1727 message: "Element $element must be the declaration.")); | 1727 message: "Element $element must be the declaration.")); |
| 1728 if (retainCachesForTesting) return; | 1728 if (retainCachesForTesting) return; |
| 1729 if (_compiler.serialization.isDeserialized(element)) return; | 1729 if (_compiler.serialization.isDeserialized(element)) return; |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1815 | 1815 |
| 1816 ResolutionDynamicType get dynamicType => const ResolutionDynamicType(); | 1816 ResolutionDynamicType get dynamicType => const ResolutionDynamicType(); |
| 1817 | 1817 |
| 1818 @override | 1818 @override |
| 1819 LibraryEntity get mainLibrary => _compiler.mainApp; | 1819 LibraryEntity get mainLibrary => _compiler.mainApp; |
| 1820 | 1820 |
| 1821 @override | 1821 @override |
| 1822 FunctionEntity get mainFunction => _compiler.mainFunction; | 1822 FunctionEntity get mainFunction => _compiler.mainFunction; |
| 1823 | 1823 |
| 1824 @override | 1824 @override |
| 1825 Iterable<LibraryEntity> get libraries => _compiler.libraryLoader.libraries; |
| 1826 |
| 1827 @override |
| 1825 ResolutionInterfaceType getThisType(ClassElement cls) { | 1828 ResolutionInterfaceType getThisType(ClassElement cls) { |
| 1826 cls.ensureResolved(_resolution); | 1829 cls.ensureResolved(_resolution); |
| 1827 return cls.thisType; | 1830 return cls.thisType; |
| 1828 } | 1831 } |
| 1829 | 1832 |
| 1830 @override | 1833 @override |
| 1831 ResolutionInterfaceType getRawType(ClassElement cls) { | 1834 ResolutionInterfaceType getRawType(ClassElement cls) { |
| 1832 cls.ensureResolved(_resolution); | 1835 cls.ensureResolved(_resolution); |
| 1833 return cls.rawType; | 1836 return cls.rawType; |
| 1834 } | 1837 } |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2005 ResolutionFunctionType getLocalFunctionType(LocalFunctionElement function) { | 2008 ResolutionFunctionType getLocalFunctionType(LocalFunctionElement function) { |
| 2006 return function.type; | 2009 return function.type; |
| 2007 } | 2010 } |
| 2008 | 2011 |
| 2009 @override | 2012 @override |
| 2010 ResolutionDartType getUnaliasedType(ResolutionDartType type) { | 2013 ResolutionDartType getUnaliasedType(ResolutionDartType type) { |
| 2011 type.computeUnaliased(_resolution); | 2014 type.computeUnaliased(_resolution); |
| 2012 return type.unaliased; | 2015 return type.unaliased; |
| 2013 } | 2016 } |
| 2014 } | 2017 } |
| OLD | NEW |