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

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

Issue 961513002: Flesh out dynamic invocation code (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Streamline ++ and -- in fallback case 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/_js_helper.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 dart.copyProperties(exports, { 4 dart.copyProperties(exports, {
5 get _hasDocument() { 5 get _hasDocument() {
6 return dart.equals(typeof document, 'object'); 6 return dart.equals(typeof document, 'object');
7 } 7 }
8 }); 8 });
9 // Function _invokeErrorHandler: (Function, Object, StackTrace) → dynamic 9 // Function _invokeErrorHandler: (Function, Object, StackTrace) → dynamic
10 function _invokeErrorHandler(errorHandler, error, stackTrace) { 10 function _invokeErrorHandler(errorHandler, error, stackTrace) {
(...skipping 4598 matching lines...) Expand 10 before | Expand all | Expand 10 after
4609 function _rootRegisterBinaryCallback(self, parent, zone, f) { 4609 function _rootRegisterBinaryCallback(self, parent, zone, f) {
4610 return f; 4610 return f;
4611 } 4611 }
4612 // Function _rootErrorCallback: (Zone, ZoneDelegate, Zone, Object, StackTrace) → AsyncError 4612 // Function _rootErrorCallback: (Zone, ZoneDelegate, Zone, Object, StackTrace) → AsyncError
4613 function _rootErrorCallback(self, parent, zone, error, stackTrace) { 4613 function _rootErrorCallback(self, parent, zone, error, stackTrace) {
4614 return null; 4614 return null;
4615 } 4615 }
4616 // Function _rootScheduleMicrotask: (Zone, ZoneDelegate, Zone, () → dynamic) → void 4616 // Function _rootScheduleMicrotask: (Zone, ZoneDelegate, Zone, () → dynamic) → void
4617 function _rootScheduleMicrotask(self, parent, zone, f) { 4617 function _rootScheduleMicrotask(self, parent, zone, f) {
4618 if (!dart.notNull(core.identical(_ROOT_ZONE, zone))) { 4618 if (!dart.notNull(core.identical(_ROOT_ZONE, zone))) {
4619 let hasErrorHandler = dart.throw_("Unimplemented PrefixExpression: !_ROOT_ ZONE.inSameErrorZone(zone)"); 4619 let hasErrorHandler = dart.dunary('!', dart.dinvoke(_ROOT_ZONE, 'inSameErr orZone', zone));
4620 f = zone.bindCallback(f, {runGuarded: hasErrorHandler}); 4620 f = zone.bindCallback(f, {runGuarded: hasErrorHandler});
4621 } 4621 }
4622 _scheduleAsyncCallback(f); 4622 _scheduleAsyncCallback(f);
4623 } 4623 }
4624 // Function _rootCreateTimer: (Zone, ZoneDelegate, Zone, Duration, () → void) → Timer 4624 // Function _rootCreateTimer: (Zone, ZoneDelegate, Zone, Duration, () → void) → Timer
4625 function _rootCreateTimer(self, parent, zone, duration, callback) { 4625 function _rootCreateTimer(self, parent, zone, duration, callback) {
4626 if (!dart.notNull(core.identical(_ROOT_ZONE, zone))) { 4626 if (!dart.notNull(core.identical(_ROOT_ZONE, zone))) {
4627 callback = zone.bindCallback(callback); 4627 callback = zone.bindCallback(callback);
4628 } 4628 }
4629 return Timer._createTimer(duration, callback); 4629 return Timer._createTimer(duration, callback);
(...skipping 313 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/_js_helper.js ('k') | test/codegen/expect/dart/convert.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698