OLD | NEW |
1 var _isolate_helper = dart.defineLibrary(_isolate_helper, {}); | 1 var _isolate_helper = dart.defineLibrary(_isolate_helper, {}); |
2 var core = dart.import(core); | 2 var core = dart.import(core); |
3 var _native_typed_data = dart.import(_native_typed_data); | 3 var _native_typed_data = dart.import(_native_typed_data); |
4 var _interceptors = dart.lazyImport(_interceptors); | 4 var _interceptors = dart.lazyImport(_interceptors); |
5 var _js_helper = dart.lazyImport(_js_helper); | 5 var _js_helper = dart.lazyImport(_js_helper); |
6 var isolate = dart.import(isolate); | 6 var isolate = dart.import(isolate); |
7 var _foreign_helper = dart.import(_foreign_helper); | 7 var _foreign_helper = dart.import(_foreign_helper); |
8 var _js_embedded_names = dart.import(_js_embedded_names); | 8 var _js_embedded_names = dart.import(_js_embedded_names); |
9 var collection = dart.import(collection); | 9 var collection = dart.import(collection); |
10 var async = dart.import(async); | 10 var async = dart.import(async); |
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
771 if (event == null) { | 771 if (event == null) { |
772 this.checkOpenReceivePortsFromCommandLine(); | 772 this.checkOpenReceivePortsFromCommandLine(); |
773 exports._globalState.maybeCloseWorker(); | 773 exports._globalState.maybeCloseWorker(); |
774 return false; | 774 return false; |
775 } | 775 } |
776 event.process(); | 776 event.process(); |
777 return true; | 777 return true; |
778 } | 778 } |
779 [_runHelper]() { | 779 [_runHelper]() { |
780 if (exports.globalWindow != null) { | 780 if (exports.globalWindow != null) { |
| 781 // Function next: () → dynamic |
781 let next = (() => { | 782 let next = (() => { |
782 if (!dart.notNull(this.runIteration())) | 783 if (!dart.notNull(this.runIteration())) |
783 return; | 784 return; |
784 async.Timer.run(dart.as(next, __CastType2)); | 785 async.Timer.run(next); |
785 }).bind(this); | 786 }).bind(this); |
786 dart.dcall(next); | 787 next(); |
787 } else { | 788 } else { |
788 while (this.runIteration()) { | 789 while (this.runIteration()) { |
789 } | 790 } |
790 } | 791 } |
791 } | 792 } |
792 run() { | 793 run() { |
793 if (!dart.notNull(exports._globalState.isWorker)) { | 794 if (!dart.notNull(exports._globalState.isWorker)) { |
794 this[_runHelper](); | 795 this[_runHelper](); |
795 } else { | 796 } else { |
796 try { | 797 try { |
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1374 if (core.identical(other, this)) | 1375 if (core.identical(other, this)) |
1375 return true; | 1376 return true; |
1376 if (dart.is(other, CapabilityImpl)) { | 1377 if (dart.is(other, CapabilityImpl)) { |
1377 return core.identical(this[_id], other[_id]); | 1378 return core.identical(this[_id], other[_id]); |
1378 } | 1379 } |
1379 return false; | 1380 return false; |
1380 } | 1381 } |
1381 } | 1382 } |
1382 CapabilityImpl[dart.implements] = () => [isolate.Capability]; | 1383 CapabilityImpl[dart.implements] = () => [isolate.Capability]; |
1383 dart.defineNamedConstructor(CapabilityImpl, '_internal'); | 1384 dart.defineNamedConstructor(CapabilityImpl, '_internal'); |
1384 let __CastType2 = dart.typedef('__CastType2', () => dart.functionType(dart.voi
d, [])); | |
1385 // Exports: | 1385 // Exports: |
1386 exports.enterJsAsync = enterJsAsync; | 1386 exports.enterJsAsync = enterJsAsync; |
1387 exports.leaveJsAsync = leaveJsAsync; | 1387 exports.leaveJsAsync = leaveJsAsync; |
1388 exports.isWorker = isWorker; | 1388 exports.isWorker = isWorker; |
1389 exports.startRootIsolate = startRootIsolate; | 1389 exports.startRootIsolate = startRootIsolate; |
1390 exports.IsolateNatives = IsolateNatives; | 1390 exports.IsolateNatives = IsolateNatives; |
1391 exports.RawReceivePortImpl = RawReceivePortImpl; | 1391 exports.RawReceivePortImpl = RawReceivePortImpl; |
1392 exports.ReceivePortImpl = ReceivePortImpl; | 1392 exports.ReceivePortImpl = ReceivePortImpl; |
1393 exports.TimerImpl = TimerImpl; | 1393 exports.TimerImpl = TimerImpl; |
1394 exports.hasTimer = hasTimer; | 1394 exports.hasTimer = hasTimer; |
1395 exports.CapabilityImpl = CapabilityImpl; | 1395 exports.CapabilityImpl = CapabilityImpl; |
1396 })(_isolate_helper, core, _native_typed_data, _interceptors, _js_helper, isolate
, _foreign_helper, _js_embedded_names, collection, async); | 1396 })(_isolate_helper, core, _native_typed_data, _interceptors, _js_helper, isolate
, _foreign_helper, _js_embedded_names, collection, async); |
OLD | NEW |