Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Side by Side Diff: pkg/compiler/lib/src/deferred_load.dart

Issue 1167353003: Opt-in to generate code for compile-time error. Only supported for SSA. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/dart_backend/backend.dart ('k') | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698