Chromium Code Reviews| 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 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 582 exports._globalState.topEventLoop.prequeue(event); | 582 exports._globalState.topEventLoop.prequeue(event); |
| 583 } | 583 } |
| 584 this.isPaused = false; | 584 this.isPaused = false; |
| 585 } | 585 } |
| 586 this[_updateGlobalState](); | 586 this[_updateGlobalState](); |
| 587 } | 587 } |
| 588 addDoneListener(responsePort) { | 588 addDoneListener(responsePort) { |
| 589 if (this.doneHandlers == null) { | 589 if (this.doneHandlers == null) { |
| 590 this.doneHandlers = []; | 590 this.doneHandlers = []; |
| 591 } | 591 } |
| 592 if (dart.dsend(this.doneHandlers, 'contains', responsePort)) | 592 if (dart.as(dart.dsend(this.doneHandlers, 'contains', responsePort), core. bool)) |
|
vsm
2015/06/04 17:07:32
We'll need a null check here as well.
Jennifer Messerly
2015/06/04 21:54:18
Done.
| |
| 593 return; | 593 return; |
| 594 dart.dsend(this.doneHandlers, 'add', responsePort); | 594 dart.dsend(this.doneHandlers, 'add', responsePort); |
| 595 } | 595 } |
| 596 removeDoneListener(responsePort) { | 596 removeDoneListener(responsePort) { |
| 597 if (this.doneHandlers == null) | 597 if (this.doneHandlers == null) |
| 598 return; | 598 return; |
| 599 dart.dsend(this.doneHandlers, 'remove', responsePort); | 599 dart.dsend(this.doneHandlers, 'remove', responsePort); |
| 600 } | 600 } |
| 601 setErrorsFatal(authentification, errorsAreFatal) { | 601 setErrorsFatal(authentification, errorsAreFatal) { |
| 602 if (!dart.equals(this.terminateCapability, authentification)) | 602 if (!dart.equals(this.terminateCapability, authentification)) |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 682 throw e; | 682 throw e; |
| 683 } | 683 } |
| 684 } | 684 } |
| 685 } | 685 } |
| 686 finally { | 686 finally { |
| 687 this[_isExecutingEvent] = false; | 687 this[_isExecutingEvent] = false; |
| 688 exports._globalState.currentContext = old; | 688 exports._globalState.currentContext = old; |
| 689 if (old != null) | 689 if (old != null) |
| 690 old[_setGlobals](); | 690 old[_setGlobals](); |
| 691 if (this[_scheduledControlEvents] != null) { | 691 if (this[_scheduledControlEvents] != null) { |
| 692 while (dart.dload(this[_scheduledControlEvents], 'isNotEmpty')) { | 692 while (dart.as(dart.dload(this[_scheduledControlEvents], 'isNotEmpty') , core.bool)) { |
| 693 dart.dcall(dart.dsend(this[_scheduledControlEvents], 'removeFirst')) ; | 693 dart.dcall(dart.dsend(this[_scheduledControlEvents], 'removeFirst')) ; |
| 694 } | 694 } |
| 695 } | 695 } |
| 696 } | 696 } |
| 697 return result; | 697 return result; |
| 698 } | 698 } |
| 699 [_setGlobals]() { | 699 [_setGlobals]() { |
| 700 _foreign_helper.JS_SET_CURRENT_ISOLATE(this.isolateStatics); | 700 _foreign_helper.JS_SET_CURRENT_ISOLATE(this.isolateStatics); |
| 701 } | 701 } |
| 702 handleControlMessage(message) { | 702 handleControlMessage(message) { |
| (...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1557 exports.leaveJsAsync = leaveJsAsync; | 1557 exports.leaveJsAsync = leaveJsAsync; |
| 1558 exports.isWorker = isWorker; | 1558 exports.isWorker = isWorker; |
| 1559 exports.startRootIsolate = startRootIsolate; | 1559 exports.startRootIsolate = startRootIsolate; |
| 1560 exports.IsolateNatives = IsolateNatives; | 1560 exports.IsolateNatives = IsolateNatives; |
| 1561 exports.RawReceivePortImpl = RawReceivePortImpl; | 1561 exports.RawReceivePortImpl = RawReceivePortImpl; |
| 1562 exports.ReceivePortImpl = ReceivePortImpl; | 1562 exports.ReceivePortImpl = ReceivePortImpl; |
| 1563 exports.TimerImpl = TimerImpl; | 1563 exports.TimerImpl = TimerImpl; |
| 1564 exports.hasTimer = hasTimer; | 1564 exports.hasTimer = hasTimer; |
| 1565 exports.CapabilityImpl = CapabilityImpl; | 1565 exports.CapabilityImpl = CapabilityImpl; |
| 1566 })(_isolate_helper, core, _native_typed_data, _interceptors, _js_helper, isolate , _foreign_helper, _js_embedded_names, collection, async); | 1566 })(_isolate_helper, core, _native_typed_data, _interceptors, _js_helper, isolate , _foreign_helper, _js_embedded_names, collection, async); |
| OLD | NEW |