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

Side by Side Diff: test/codegen/expect/dart/async.js

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/_native_typed_data.js ('k') | test/codegen/expect/dart/convert.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var async; 1 var async;
2 (function(exports) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 // Function _invokeErrorHandler: (Function, Object, StackTrace) → dynamic 4 // Function _invokeErrorHandler: (Function, Object, StackTrace) → dynamic
5 function _invokeErrorHandler(errorHandler, error, stackTrace) { 5 function _invokeErrorHandler(errorHandler, error, stackTrace) {
6 if (dart.is(errorHandler, ZoneBinaryCallback)) { 6 if (dart.is(errorHandler, ZoneBinaryCallback)) {
7 return dart.dinvokef(errorHandler, error, stackTrace); 7 return dart.dinvokef(errorHandler, error, stackTrace);
8 } else { 8 } else {
9 return dart.dinvokef(errorHandler, error); 9 return dart.dinvokef(errorHandler, error);
10 } 10 }
(...skipping 1368 matching lines...) Expand 10 before | Expand all | Expand 10 after
1379 exports._lastPriorityCallback.next = entry; 1379 exports._lastPriorityCallback.next = entry;
1380 exports._lastPriorityCallback = entry; 1380 exports._lastPriorityCallback = entry;
1381 if (entry.next === null) { 1381 if (entry.next === null) {
1382 exports._lastCallback = entry; 1382 exports._lastCallback = entry;
1383 } 1383 }
1384 } 1384 }
1385 } 1385 }
1386 // Function scheduleMicrotask: (() → void) → void 1386 // Function scheduleMicrotask: (() → void) → void
1387 function scheduleMicrotask(callback) { 1387 function scheduleMicrotask(callback) {
1388 if (core.identical(_ROOT_ZONE, Zone.current)) { 1388 if (core.identical(_ROOT_ZONE, Zone.current)) {
1389 _rootScheduleMicrotask(null, null, dart.as(_ROOT_ZONE, Zone), callback); 1389 _rootScheduleMicrotask(null, null, _ROOT_ZONE, callback);
1390 return; 1390 return;
1391 } 1391 }
1392 Zone.current.scheduleMicrotask(Zone.current.bindCallback(callback, {runGuard ed: true})); 1392 Zone.current.scheduleMicrotask(Zone.current.bindCallback(callback, {runGuard ed: true}));
1393 } 1393 }
1394 let _scheduleImmediate = Symbol('_scheduleImmediate'); 1394 let _scheduleImmediate = Symbol('_scheduleImmediate');
1395 let _initializeScheduleImmediate = Symbol('_initializeScheduleImmediate'); 1395 let _initializeScheduleImmediate = Symbol('_initializeScheduleImmediate');
1396 let _scheduleImmediateJsOverride = Symbol('_scheduleImmediateJsOverride'); 1396 let _scheduleImmediateJsOverride = Symbol('_scheduleImmediateJsOverride');
1397 let _scheduleImmediateWithSetImmediate = Symbol('_scheduleImmediateWithSetImme diate'); 1397 let _scheduleImmediateWithSetImmediate = Symbol('_scheduleImmediateWithSetImme diate');
1398 let _scheduleImmediateWithTimer = Symbol('_scheduleImmediateWithTimer'); 1398 let _scheduleImmediateWithTimer = Symbol('_scheduleImmediateWithTimer');
1399 class _AsyncRun extends core.Object { 1399 class _AsyncRun extends core.Object {
(...skipping 2850 matching lines...) Expand 10 before | Expand all | Expand 10 after
4250 let previous = _current; 4250 let previous = _current;
4251 _current = zone; 4251 _current = zone;
4252 return previous; 4252 return previous;
4253 } 4253 }
4254 static [_leave](previous) { 4254 static [_leave](previous) {
4255 dart.assert(previous !== null); 4255 dart.assert(previous !== null);
4256 Zone[_current] = previous; 4256 Zone[_current] = previous;
4257 } 4257 }
4258 } 4258 }
4259 dart.defineNamedConstructor(Zone, '_'); 4259 dart.defineNamedConstructor(Zone, '_');
4260 Zone.ROOT = dart.as(_ROOT_ZONE, Zone); 4260 Zone.ROOT = _ROOT_ZONE;
4261 Zone._current = dart.as(_ROOT_ZONE, Zone); 4261 Zone._current = _ROOT_ZONE;
4262 let _delegate = Symbol('_delegate'); 4262 let _delegate = Symbol('_delegate');
4263 // Function _parentDelegate: (_Zone) → ZoneDelegate 4263 // Function _parentDelegate: (_Zone) → ZoneDelegate
4264 function _parentDelegate(zone) { 4264 function _parentDelegate(zone) {
4265 if (zone.parent === null) 4265 if (zone.parent === null)
4266 return null; 4266 return null;
4267 return zone.parent[_delegate]; 4267 return zone.parent[_delegate];
4268 } 4268 }
4269 let _delegationTarget = Symbol('_delegationTarget'); 4269 let _delegationTarget = Symbol('_delegationTarget');
4270 let _handleUncaughtError = Symbol('_handleUncaughtError'); 4270 let _handleUncaughtError = Symbol('_handleUncaughtError');
4271 let _run = Symbol('_run'); 4271 let _run = Symbol('_run');
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
4604 function _rootRegisterBinaryCallback(self, parent, zone, f) { 4604 function _rootRegisterBinaryCallback(self, parent, zone, f) {
4605 return f; 4605 return f;
4606 } 4606 }
4607 // Function _rootErrorCallback: (Zone, ZoneDelegate, Zone, Object, StackTrace) → AsyncError 4607 // Function _rootErrorCallback: (Zone, ZoneDelegate, Zone, Object, StackTrace) → AsyncError
4608 function _rootErrorCallback(self, parent, zone, error, stackTrace) { 4608 function _rootErrorCallback(self, parent, zone, error, stackTrace) {
4609 return null; 4609 return null;
4610 } 4610 }
4611 // Function _rootScheduleMicrotask: (Zone, ZoneDelegate, Zone, () → dynamic) → void 4611 // Function _rootScheduleMicrotask: (Zone, ZoneDelegate, Zone, () → dynamic) → void
4612 function _rootScheduleMicrotask(self, parent, zone, f) { 4612 function _rootScheduleMicrotask(self, parent, zone, f) {
4613 if (!dart.notNull(core.identical(_ROOT_ZONE, zone))) { 4613 if (!dart.notNull(core.identical(_ROOT_ZONE, zone))) {
4614 let hasErrorHandler = dart.dunary('!', dart.dinvoke(_ROOT_ZONE, 'inSameErr orZone', zone)); 4614 let hasErrorHandler = !dart.notNull(_ROOT_ZONE.inSameErrorZone(zone));
4615 f = zone.bindCallback(f, {runGuarded: hasErrorHandler}); 4615 f = zone.bindCallback(f, {runGuarded: hasErrorHandler});
4616 } 4616 }
4617 _scheduleAsyncCallback(f); 4617 _scheduleAsyncCallback(f);
4618 } 4618 }
4619 // Function _rootCreateTimer: (Zone, ZoneDelegate, Zone, Duration, () → void) → Timer 4619 // Function _rootCreateTimer: (Zone, ZoneDelegate, Zone, Duration, () → void) → Timer
4620 function _rootCreateTimer(self, parent, zone, duration, callback) { 4620 function _rootCreateTimer(self, parent, zone, duration, callback) {
4621 if (!dart.notNull(core.identical(_ROOT_ZONE, zone))) { 4621 if (!dart.notNull(core.identical(_ROOT_ZONE, zone))) {
4622 callback = zone.bindCallback(callback); 4622 callback = zone.bindCallback(callback);
4623 } 4623 }
4624 return Timer._createTimer(duration, callback); 4624 return Timer._createTimer(duration, callback);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
4697 } 4697 }
4698 get fork() { 4698 get fork() {
4699 return _rootFork; 4699 return _rootFork;
4700 } 4700 }
4701 } 4701 }
4702 class _RootZone extends _Zone { 4702 class _RootZone extends _Zone {
4703 _RootZone() { 4703 _RootZone() {
4704 super._Zone(); 4704 super._Zone();
4705 } 4705 }
4706 get [_run]() { 4706 get [_run]() {
4707 return new _ZoneFunction(dart.as(_ROOT_ZONE, _Zone), _rootRun); 4707 return new _ZoneFunction(_ROOT_ZONE, _rootRun);
4708 } 4708 }
4709 get [_runUnary]() { 4709 get [_runUnary]() {
4710 return new _ZoneFunction(dart.as(_ROOT_ZONE, _Zone), _rootRunUnary); 4710 return new _ZoneFunction(_ROOT_ZONE, _rootRunUnary);
4711 } 4711 }
4712 get [_runBinary]() { 4712 get [_runBinary]() {
4713 return new _ZoneFunction(dart.as(_ROOT_ZONE, _Zone), _rootRunBinary); 4713 return new _ZoneFunction(_ROOT_ZONE, _rootRunBinary);
4714 } 4714 }
4715 get [_registerCallback]() { 4715 get [_registerCallback]() {
4716 return new _ZoneFunction(dart.as(_ROOT_ZONE, _Zone), _rootRegisterCallback ); 4716 return new _ZoneFunction(_ROOT_ZONE, _rootRegisterCallback);
4717 } 4717 }
4718 get [_registerUnaryCallback]() { 4718 get [_registerUnaryCallback]() {
4719 return new _ZoneFunction(dart.as(_ROOT_ZONE, _Zone), _rootRegisterUnaryCal lback); 4719 return new _ZoneFunction(_ROOT_ZONE, _rootRegisterUnaryCallback);
4720 } 4720 }
4721 get [_registerBinaryCallback]() { 4721 get [_registerBinaryCallback]() {
4722 return new _ZoneFunction(dart.as(_ROOT_ZONE, _Zone), _rootRegisterBinaryCa llback); 4722 return new _ZoneFunction(_ROOT_ZONE, _rootRegisterBinaryCallback);
4723 } 4723 }
4724 get [_errorCallback]() { 4724 get [_errorCallback]() {
4725 return new _ZoneFunction(dart.as(_ROOT_ZONE, _Zone), _rootErrorCallback); 4725 return new _ZoneFunction(_ROOT_ZONE, _rootErrorCallback);
4726 } 4726 }
4727 get [_scheduleMicrotask]() { 4727 get [_scheduleMicrotask]() {
4728 return new _ZoneFunction(dart.as(_ROOT_ZONE, _Zone), _rootScheduleMicrotas k); 4728 return new _ZoneFunction(_ROOT_ZONE, _rootScheduleMicrotask);
4729 } 4729 }
4730 get [_createTimer]() { 4730 get [_createTimer]() {
4731 return new _ZoneFunction(dart.as(_ROOT_ZONE, _Zone), _rootCreateTimer); 4731 return new _ZoneFunction(_ROOT_ZONE, _rootCreateTimer);
4732 } 4732 }
4733 get [_createPeriodicTimer]() { 4733 get [_createPeriodicTimer]() {
4734 return new _ZoneFunction(dart.as(_ROOT_ZONE, _Zone), _rootCreatePeriodicTi mer); 4734 return new _ZoneFunction(_ROOT_ZONE, _rootCreatePeriodicTimer);
4735 } 4735 }
4736 get [_print]() { 4736 get [_print]() {
4737 return new _ZoneFunction(dart.as(_ROOT_ZONE, _Zone), _rootPrint); 4737 return new _ZoneFunction(_ROOT_ZONE, _rootPrint);
4738 } 4738 }
4739 get [_fork]() { 4739 get [_fork]() {
4740 return new _ZoneFunction(dart.as(_ROOT_ZONE, _Zone), _rootFork); 4740 return new _ZoneFunction(_ROOT_ZONE, _rootFork);
4741 } 4741 }
4742 get [_handleUncaughtError]() { 4742 get [_handleUncaughtError]() {
4743 return new _ZoneFunction(dart.as(_ROOT_ZONE, _Zone), _rootHandleUncaughtEr ror); 4743 return new _ZoneFunction(_ROOT_ZONE, _rootHandleUncaughtError);
4744 } 4744 }
4745 get parent() { 4745 get parent() {
4746 return null; 4746 return null;
4747 } 4747 }
4748 get [_map]() { 4748 get [_map]() {
4749 return _rootMap; 4749 return _rootMap;
4750 } 4750 }
4751 get [_delegate]() { 4751 get [_delegate]() {
4752 if (_rootDelegate !== null) 4752 if (_rootDelegate !== null)
4753 return _rootDelegate; 4753 return _rootDelegate;
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
4943 exports.StreamIterator$ = StreamIterator$; 4943 exports.StreamIterator$ = StreamIterator$;
4944 exports.StreamController = StreamController; 4944 exports.StreamController = StreamController;
4945 exports.StreamController$ = StreamController$; 4945 exports.StreamController$ = StreamController$;
4946 exports.Timer = Timer; 4946 exports.Timer = Timer;
4947 exports.AsyncError = AsyncError; 4947 exports.AsyncError = AsyncError;
4948 exports.ZoneSpecification = ZoneSpecification; 4948 exports.ZoneSpecification = ZoneSpecification;
4949 exports.ZoneDelegate = ZoneDelegate; 4949 exports.ZoneDelegate = ZoneDelegate;
4950 exports.Zone = Zone; 4950 exports.Zone = Zone;
4951 exports.runZoned = runZoned; 4951 exports.runZoned = runZoned;
4952 })(async || (async = {})); 4952 })(async || (async = {}));
OLDNEW
« no previous file with comments | « test/codegen/expect/dart/_native_typed_data.js ('k') | test/codegen/expect/dart/convert.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698