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

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

Issue 79243002: Implement scheduleImmediate for the VM. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add comments and types. Created 7 years, 1 month 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
« no previous file with comments | « sdk/lib/_collection_dev/collection_dev_sources.gypi ('k') | sdk/lib/_internal/lib/async_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/enqueue.dart
diff --git a/sdk/lib/_internal/compiler/implementation/enqueue.dart b/sdk/lib/_internal/compiler/implementation/enqueue.dart
index 986ebec06d94620ba6c28520e89836f9ea4b9e4a..80aab2260104d04e96333d6a94c1eb300d11187c 100644
--- a/sdk/lib/_internal/compiler/implementation/enqueue.dart
+++ b/sdk/lib/_internal/compiler/implementation/enqueue.dart
@@ -636,10 +636,15 @@ class ResolutionEnqueuer extends Enqueuer {
} else if (uri == 'dart:async') {
if (element.name == '_createTimer' ||
floitsch 2013/11/21 17:39:47 _createTimer, _createPeriodicTimer and scheduleImm
element.name == '_createPeriodicTimer') {
- // The [:Timer:] class uses the event queue of the isolate
+ // The `Timer` class uses the event queue of the isolate
// library, so we make sure that event queue is generated.
enableIsolateSupport(library);
}
+ } else if (uri == 'dart:_collection-dev' &&
+ element.name == "scheduleImmediate") {
+ // `scheduleImmediate` class uses the event queue of the isolate
+ // library, so we make sure that event queue is generated.
+ enableIsolateSupport(library);
}
}
« no previous file with comments | « sdk/lib/_collection_dev/collection_dev_sources.gypi ('k') | sdk/lib/_internal/lib/async_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698