OLD | NEW |
1 var _isolate_helper; | 1 var _isolate_helper; |
2 (function(exports) { | 2 (function(exports) { |
3 'use strict'; | 3 'use strict'; |
4 // Function _callInIsolate: (_IsolateContext, Function) → dynamic | 4 // Function _callInIsolate: (_IsolateContext, Function) → dynamic |
5 function _callInIsolate(isolate, function) { | 5 function _callInIsolate(isolate, function) { |
6 let result = isolate.eval(function); | 6 let result = isolate.eval(function); |
7 exports._globalState.topEventLoop.run(); | 7 exports._globalState.topEventLoop.run(); |
8 return result; | 8 return result; |
9 } | 9 } |
10 // Function enterJsAsync: () → dynamic | 10 // Function enterJsAsync: () → dynamic |
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 } | 701 } |
702 onError(message); | 702 onError(message); |
703 return true; | 703 return true; |
704 } | 704 } |
705 } | 705 } |
706 IsolateNatives.enableSpawnWorker = null; | 706 IsolateNatives.enableSpawnWorker = null; |
707 dart.defineLazyProperties(IsolateNatives, { | 707 dart.defineLazyProperties(IsolateNatives, { |
708 get thisScript() { | 708 get thisScript() { |
709 return computeThisScript(); | 709 return computeThisScript(); |
710 }, | 710 }, |
711 set thisScript() {}, | 711 set thisScript(_) {}, |
712 get workerIds() { | 712 get workerIds() { |
713 return new core.Expando(); | 713 return new core.Expando(); |
714 } | 714 } |
715 }); | 715 }); |
716 class _BaseSendPort extends dart.Object { | 716 class _BaseSendPort extends dart.Object { |
717 _BaseSendPort(_isolateId) { | 717 _BaseSendPort(_isolateId) { |
718 this._isolateId = _isolateId; | 718 this._isolateId = _isolateId; |
719 } | 719 } |
720 _checkReplyTo(replyTo) { | 720 _checkReplyTo(replyTo) { |
721 if (dart.notNull(dart.notNull(replyTo !== null) && dart.notNull(!dart.is(r
eplyTo, _NativeJsSendPort))) && dart.notNull(!dart.is(replyTo, _WorkerSendPort))
) { | 721 if (dart.notNull(dart.notNull(replyTo !== null) && dart.notNull(!dart.is(r
eplyTo, _NativeJsSendPort))) && dart.notNull(!dart.is(replyTo, _WorkerSendPort))
) { |
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1266 exports.globalWindow = globalWindow; | 1266 exports.globalWindow = globalWindow; |
1267 exports.globalWorker = globalWorker; | 1267 exports.globalWorker = globalWorker; |
1268 exports.globalPostMessageDefined = globalPostMessageDefined; | 1268 exports.globalPostMessageDefined = globalPostMessageDefined; |
1269 exports.IsolateNatives = IsolateNatives; | 1269 exports.IsolateNatives = IsolateNatives; |
1270 exports.RawReceivePortImpl = RawReceivePortImpl; | 1270 exports.RawReceivePortImpl = RawReceivePortImpl; |
1271 exports.ReceivePortImpl = ReceivePortImpl; | 1271 exports.ReceivePortImpl = ReceivePortImpl; |
1272 exports.TimerImpl = TimerImpl; | 1272 exports.TimerImpl = TimerImpl; |
1273 exports.hasTimer = hasTimer; | 1273 exports.hasTimer = hasTimer; |
1274 exports.CapabilityImpl = CapabilityImpl; | 1274 exports.CapabilityImpl = CapabilityImpl; |
1275 })(_isolate_helper || (_isolate_helper = {})); | 1275 })(_isolate_helper || (_isolate_helper = {})); |
OLD | NEW |