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

Side by Side Diff: test/dart_codegen/expect/async/schedule_microtask.dart

Issue 1023543002: Enable inference in the core libs (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « test/codegen/expect/dart/core.js ('k') | test/dart_codegen/expect/async/zone.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 part of dart.async; 1 part of dart.async;
2 typedef void _AsyncCallback(); 2 typedef void _AsyncCallback();
3 class _AsyncCallbackEntry {final _AsyncCallback callback; 3 class _AsyncCallbackEntry {final _AsyncCallback callback;
4 _AsyncCallbackEntry next; 4 _AsyncCallbackEntry next;
5 _AsyncCallbackEntry(this.callback); 5 _AsyncCallbackEntry(this.callback);
6 } 6 }
7 _AsyncCallbackEntry _nextCallback; 7 _AsyncCallbackEntry _nextCallback;
8 _AsyncCallbackEntry _lastCallback; 8 _AsyncCallbackEntry _lastCallback;
9 _AsyncCallbackEntry _lastPriorityCallback; 9 _AsyncCallbackEntry _lastPriorityCallback;
10 bool _isInCallbackLoop = false; 10 bool _isInCallbackLoop = false;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 entry.next = _lastPriorityCallback.next; 55 entry.next = _lastPriorityCallback.next;
56 _lastPriorityCallback.next = entry; 56 _lastPriorityCallback.next = entry;
57 _lastPriorityCallback = entry; 57 _lastPriorityCallback = entry;
58 if (entry.next == null) { 58 if (entry.next == null) {
59 _lastCallback = entry; 59 _lastCallback = entry;
60 } 60 }
61 } 61 }
62 } 62 }
63 void scheduleMicrotask(void callback()) { 63 void scheduleMicrotask(void callback()) {
64 if (identical(_ROOT_ZONE, Zone.current)) { 64 if (identical(_ROOT_ZONE, Zone.current)) {
65 _rootScheduleMicrotask(null, null, DEVC$RT.cast(_ROOT_ZONE, dynamic, Zone, "Ca stGeneral", """line 130, column 40 of dart:async/schedule_microtask.dart: """, _ ROOT_ZONE is Zone, true), callback); 65 _rootScheduleMicrotask(null, null, _ROOT_ZONE, callback);
66 return;} 66 return;}
67 Zone.current.scheduleMicrotask(Zone.current.bindCallback(callback, runGuarded: true)); 67 Zone.current.scheduleMicrotask(Zone.current.bindCallback(callback, runGuarded: true));
68 } 68 }
69 class _AsyncRun {external static void _scheduleImmediate(void callback()); 69 class _AsyncRun {external static void _scheduleImmediate(void callback());
70 } 70 }
71 typedef void __t36(); 71 typedef void __t36();
OLDNEW
« no previous file with comments | « test/codegen/expect/dart/core.js ('k') | test/dart_codegen/expect/async/zone.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698