| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 deferred_load; | 5 library deferred_load; |
| 6 | 6 |
| 7 import 'constants/expressions.dart'; | 7 import 'constants/expressions.dart'; |
| 8 import 'constants/values.dart' show | 8 import 'constants/values.dart' show |
| 9 ConstantValue, | 9 ConstantValue, |
| 10 ConstructedConstantValue, | 10 ConstructedConstantValue, |
| (...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 769 : import; | 769 : import; |
| 770 compiler.reportError(failingImport.prefix, | 770 compiler.reportError(failingImport.prefix, |
| 771 MessageKind.DEFERRED_LIBRARY_DUPLICATE_PREFIX); | 771 MessageKind.DEFERRED_LIBRARY_DUPLICATE_PREFIX); |
| 772 } | 772 } |
| 773 usedPrefixes.add(prefix); | 773 usedPrefixes.add(prefix); |
| 774 } | 774 } |
| 775 } | 775 } |
| 776 }); | 776 }); |
| 777 } | 777 } |
| 778 if (isProgramSplit) { | 778 if (isProgramSplit) { |
| 779 isProgramSplit = compiler.backend.registerDeferredLoading( | 779 isProgramSplit = compiler.backend.enableDeferredLoadingIfSupported( |
| 780 lastDeferred, compiler.globalDependencies); | 780 lastDeferred, compiler.globalDependencies); |
| 781 } | 781 } |
| 782 } | 782 } |
| 783 | 783 |
| 784 /// If [send] is a static send with a deferred element, returns the | 784 /// If [send] is a static send with a deferred element, returns the |
| 785 /// [PrefixElement] that the first prefix of the send resolves to. | 785 /// [PrefixElement] that the first prefix of the send resolves to. |
| 786 /// Otherwise returns null. | 786 /// Otherwise returns null. |
| 787 /// | 787 /// |
| 788 /// Precondition: send must be static. | 788 /// Precondition: send must be static. |
| 789 /// | 789 /// |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 888 _importingLibrary = importingLibrary; | 888 _importingLibrary = importingLibrary; |
| 889 | 889 |
| 890 String get importingLibraryName { | 890 String get importingLibraryName { |
| 891 String libraryName = _importingLibrary.getLibraryName(); | 891 String libraryName = _importingLibrary.getLibraryName(); |
| 892 return libraryName == "" | 892 return libraryName == "" |
| 893 ? "<unnamed>" | 893 ? "<unnamed>" |
| 894 : libraryName; | 894 : libraryName; |
| 895 } | 895 } |
| 896 | 896 |
| 897 } | 897 } |
| OLD | NEW |