| OLD | NEW |
| 1 var isolate = dart.defineLibrary(isolate, {}); | 1 var isolate = dart.defineLibrary(isolate, {}); |
| 2 var core = dart.import(core); | 2 var core = dart.import(core); |
| 3 var _isolate_helper = dart.lazyImport(_isolate_helper); | 3 var _isolate_helper = dart.lazyImport(_isolate_helper); |
| 4 var async = dart.import(async); | 4 var async = dart.import(async); |
| 5 (function(exports, core, _isolate_helper, async) { | 5 (function(exports, core, _isolate_helper, async) { |
| 6 'use strict'; | 6 'use strict'; |
| 7 class Capability extends core.Object { | 7 class Capability extends core.Object { |
| 8 Capability() { | 8 Capability() { |
| 9 return new _isolate_helper.CapabilityImpl(); | 9 return new _isolate_helper.CapabilityImpl(); |
| 10 } | 10 } |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 this.addErrorListener(port.sendPort); | 149 this.addErrorListener(port.sendPort); |
| 150 }).bind(this)), onCancel: dart.fn((() => { | 150 }).bind(this)), onCancel: dart.fn((() => { |
| 151 this.removeErrorListener(port.sendPort); | 151 this.removeErrorListener(port.sendPort); |
| 152 port.close(); | 152 port.close(); |
| 153 port = null; | 153 port = null; |
| 154 }).bind(this))}); | 154 }).bind(this))}); |
| 155 return controller.stream; | 155 return controller.stream; |
| 156 } | 156 } |
| 157 } | 157 } |
| 158 dart.setSignature(Isolate, { | 158 dart.setSignature(Isolate, { |
| 159 constructors: () => ({Isolate: [Isolate, [SendPort], {auseCapabilit: Capabil
ity, erminateCapabilit: Capability}]}), | 159 constructors: () => ({Isolate: [Isolate, [SendPort], {pauseCapability: Capab
ility, terminateCapability: Capability}]}), |
| 160 methods: () => ({ | 160 methods: () => ({ |
| 161 pause: [Capability, [], [Capability]], | 161 pause: [Capability, [], [Capability]], |
| 162 [_pause]: [dart.void, [Capability]], | 162 [_pause]: [dart.void, [Capability]], |
| 163 resume: [dart.void, [Capability]], | 163 resume: [dart.void, [Capability]], |
| 164 addOnExitListener: [dart.void, [SendPort]], | 164 addOnExitListener: [dart.void, [SendPort]], |
| 165 removeOnExitListener: [dart.void, [SendPort]], | 165 removeOnExitListener: [dart.void, [SendPort]], |
| 166 setErrorsFatal: [dart.void, [core.bool]], | 166 setErrorsFatal: [dart.void, [core.bool]], |
| 167 kill: [dart.void, [], [core.int]], | 167 kill: [dart.void, [], [core.int]], |
| 168 ping: [dart.void, [SendPort], [core.int]], | 168 ping: [dart.void, [SendPort], [core.int]], |
| 169 addErrorListener: [dart.void, [SendPort]], | 169 addErrorListener: [dart.void, [SendPort]], |
| 170 removeErrorListener: [dart.void, [SendPort]] | 170 removeErrorListener: [dart.void, [SendPort]] |
| 171 }), | 171 }), |
| 172 statics: () => ({ | 172 statics: () => ({ |
| 173 spawn: [async.Future$(Isolate), [dart.functionType(dart.void, [dart.bottom
]), core.Object], {ause: core.bool}], | 173 spawn: [async.Future$(Isolate), [dart.functionType(dart.void, [dart.bottom
]), core.Object], {paused: core.bool}], |
| 174 spawnUri: [async.Future$(Isolate), [core.Uri, core.List$(core.String), cor
e.Object], {ause: core.bool, ackageRoo: core.Uri}] | 174 spawnUri: [async.Future$(Isolate), [core.Uri, core.List$(core.String), cor
e.Object], {paused: core.bool, packageRoot: core.Uri}] |
| 175 }), | 175 }), |
| 176 names: ['spawn', 'spawnUri'] | 176 names: ['spawn', 'spawnUri'] |
| 177 }); | 177 }); |
| 178 Isolate.IMMEDIATE = 0; | 178 Isolate.IMMEDIATE = 0; |
| 179 Isolate.BEFORE_NEXT_EVENT = 1; | 179 Isolate.BEFORE_NEXT_EVENT = 1; |
| 180 Isolate.AS_EVENT = 2; | 180 Isolate.AS_EVENT = 2; |
| 181 dart.defineLazyProperties(Isolate, { | 181 dart.defineLazyProperties(Isolate, { |
| 182 get _currentIsolateCache() { | 182 get _currentIsolateCache() { |
| 183 return _isolate_helper.IsolateNatives.currentIsolate; | 183 return _isolate_helper.IsolateNatives.currentIsolate; |
| 184 } | 184 } |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 }); | 254 }); |
| 255 // Exports: | 255 // Exports: |
| 256 exports.Capability = Capability; | 256 exports.Capability = Capability; |
| 257 exports.IsolateSpawnException = IsolateSpawnException; | 257 exports.IsolateSpawnException = IsolateSpawnException; |
| 258 exports.Isolate = Isolate; | 258 exports.Isolate = Isolate; |
| 259 exports.SendPort = SendPort; | 259 exports.SendPort = SendPort; |
| 260 exports.ReceivePort = ReceivePort; | 260 exports.ReceivePort = ReceivePort; |
| 261 exports.RawReceivePort = RawReceivePort; | 261 exports.RawReceivePort = RawReceivePort; |
| 262 exports.RemoteError = RemoteError; | 262 exports.RemoteError = RemoteError; |
| 263 })(isolate, core, _isolate_helper, async); | 263 })(isolate, core, _isolate_helper, async); |
| OLD | NEW |