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

Unified Diff: sdk/lib/_internal/compiler/implementation/deferred_load.dart

Issue 17759007: First pass at asynchronous input loading in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/deferred_load.dart
diff --git a/sdk/lib/_internal/compiler/implementation/deferred_load.dart b/sdk/lib/_internal/compiler/implementation/deferred_load.dart
index 1a8d77008f73be06af0e7b38b1200fe153ad33ff..f2b257cfd7f9c8331cdb4fcc1dd6f7a2fd8ae48e 100644
--- a/sdk/lib/_internal/compiler/implementation/deferred_load.dart
+++ b/sdk/lib/_internal/compiler/implementation/deferred_load.dart
@@ -4,6 +4,7 @@
library deferred_load;
+import 'dart:async';
import 'dart:collection'
show LinkedHashMap,
LinkedHashSet;
@@ -63,8 +64,9 @@ class DeferredLoadTask extends CompilerTask {
ClassElement findDeferredLibraryClass() {
var uri = new Uri(scheme: 'dart', path: 'async');
+ // TODO(rnystrom): Handle future.
Bob Nystrom 2013/06/26 01:03:24 I still have to get this working. This is a bit ha
ahe 2013/06/26 07:02:00 Actually, I think this is easy to fix. I just nee
Bob Nystrom 2013/06/27 00:38:18 This is breaking a couple of tests. Should I file
LibraryElement asyncLibrary =
- compiler.libraryLoader.loadLibrary(uri, null, uri);
+ deprecatedFutureValue(compiler.libraryLoader.loadLibrary(uri, null, uri));
var element = asyncLibrary.find(const SourceString('DeferredLibrary'));
if (element == null) {
compiler.internalErrorOnElement(

Powered by Google App Engine
This is Rietveld 408576698