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

Unified Diff: lib/compiler/implementation/enqueue.dart

Issue 11304021: Add NativeEnqueuer to work with the Enqueuer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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: lib/compiler/implementation/enqueue.dart
diff --git a/lib/compiler/implementation/enqueue.dart b/lib/compiler/implementation/enqueue.dart
index 6ac8d8f8fa1fce744fa567f3016d24a42f1a35e8..52d02738f1bf082633659a0c1436d02fcc9ad3ba 100644
--- a/lib/compiler/implementation/enqueue.dart
+++ b/lib/compiler/implementation/enqueue.dart
@@ -41,6 +41,8 @@ class Enqueuer {
bool queueIsClosed = false;
EnqueueTask task;
+ NativeEnqueuer nativeEnqueuer; // Set by compiler.
+
Enqueuer(this.name, this.compiler,
ItemCompilationContext itemCompilationContextCreator())
: this.itemCompilationContextCreator = itemCompilationContextCreator,
@@ -114,6 +116,8 @@ class Enqueuer {
&& library.uri.toString() == 'dart:isolate') {
compiler.enableIsolateSupport(library);
}
+
+ nativeEnqueuer.registerElement(element);
}
/**
@@ -295,6 +299,9 @@ class Enqueuer {
}
return false;
});
+ // TODO(sra):
+ // getter selectors on native fields call nativeEnqueuer.registerFieldLoad,
+ // setter selector on native fields call nativeEnqueuer.registerFieldStore.
}
/**

Powered by Google App Engine
This is Rietveld 408576698