| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 } | 158 } |
| 159 serializeDartObject(x) { | 159 serializeDartObject(x) { |
| 160 let classExtractor = _foreign_helper.JS_EMBEDDED_GLOBAL('', _js_embedded_n
ames.CLASS_ID_EXTRACTOR); | 160 let classExtractor = _foreign_helper.JS_EMBEDDED_GLOBAL('', _js_embedded_n
ames.CLASS_ID_EXTRACTOR); |
| 161 let fieldsExtractor = _foreign_helper.JS_EMBEDDED_GLOBAL('', _js_embedded_
names.CLASS_FIELDS_EXTRACTOR); | 161 let fieldsExtractor = _foreign_helper.JS_EMBEDDED_GLOBAL('', _js_embedded_
names.CLASS_FIELDS_EXTRACTOR); |
| 162 let classId = classExtractor(x); | 162 let classId = classExtractor(x); |
| 163 let fields = dart.as(fieldsExtractor(x), core.List); | 163 let fields = dart.as(fieldsExtractor(x), core.List); |
| 164 return ['dart', classId, this.serializeArrayInPlace(dart.as(fields, _inter
ceptors.JSArray))]; | 164 return ['dart', classId, this.serializeArrayInPlace(dart.as(fields, _inter
ceptors.JSArray))]; |
| 165 } | 165 } |
| 166 } | 166 } |
| 167 dart.setSignature(_Serializer, { | 167 dart.setSignature(_Serializer, { |
| 168 constructors: () => ({_Serializer: [_Serializer, [], {erializeSendPort: core
.Object}]}), | 168 constructors: () => ({_Serializer: [_Serializer, [], {serializeSendPorts: co
re.Object}]}), |
| 169 methods: () => ({ | 169 methods: () => ({ |
| 170 serialize: [core.Object, [core.Object]], | 170 serialize: [core.Object, [core.Object]], |
| 171 unsupported: [dart.void, [core.Object], [core.String]], | 171 unsupported: [dart.void, [core.Object], [core.String]], |
| 172 makeRef: [core.Object, [core.int]], | 172 makeRef: [core.Object, [core.int]], |
| 173 isPrimitive: [core.bool, [core.Object]], | 173 isPrimitive: [core.bool, [core.Object]], |
| 174 serializePrimitive: [core.Object, [core.Object]], | 174 serializePrimitive: [core.Object, [core.Object]], |
| 175 serializeByteBuffer: [core.Object, [_native_typed_data.NativeByteBuffer]], | 175 serializeByteBuffer: [core.Object, [_native_typed_data.NativeByteBuffer]], |
| 176 serializeTypedData: [core.Object, [_native_typed_data.NativeTypedData]], | 176 serializeTypedData: [core.Object, [_native_typed_data.NativeTypedData]], |
| 177 serializeJSIndexable: [core.Object, [_interceptors.JSIndexable]], | 177 serializeJSIndexable: [core.Object, [_interceptors.JSIndexable]], |
| 178 serializeArray: [core.Object, [_interceptors.JSArray]], | 178 serializeArray: [core.Object, [_interceptors.JSArray]], |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 let fields = dart.as(dart.dindex(x, 2), core.List); | 372 let fields = dart.as(dart.dindex(x, 2), core.List); |
| 373 let instanceFromClassId = _foreign_helper.JS_EMBEDDED_GLOBAL('', _js_embed
ded_names.INSTANCE_FROM_CLASS_ID); | 373 let instanceFromClassId = _foreign_helper.JS_EMBEDDED_GLOBAL('', _js_embed
ded_names.INSTANCE_FROM_CLASS_ID); |
| 374 let initializeObject = _foreign_helper.JS_EMBEDDED_GLOBAL('', _js_embedded
_names.INITIALIZE_EMPTY_INSTANCE); | 374 let initializeObject = _foreign_helper.JS_EMBEDDED_GLOBAL('', _js_embedded
_names.INITIALIZE_EMPTY_INSTANCE); |
| 375 let emptyInstance = instanceFromClassId(classId); | 375 let emptyInstance = instanceFromClassId(classId); |
| 376 this.deserializedObjects[core.$add](emptyInstance); | 376 this.deserializedObjects[core.$add](emptyInstance); |
| 377 this.deserializeArrayInPlace(dart.as(fields, _interceptors.JSArray)); | 377 this.deserializeArrayInPlace(dart.as(fields, _interceptors.JSArray)); |
| 378 return initializeObject(classId, emptyInstance, fields); | 378 return initializeObject(classId, emptyInstance, fields); |
| 379 } | 379 } |
| 380 } | 380 } |
| 381 dart.setSignature(_Deserializer, { | 381 dart.setSignature(_Deserializer, { |
| 382 constructors: () => ({_Deserializer: [_Deserializer, [], {djustSendPort: cor
e.Object}]}), | 382 constructors: () => ({_Deserializer: [_Deserializer, [], {adjustSendPorts: c
ore.Object}]}), |
| 383 methods: () => ({ | 383 methods: () => ({ |
| 384 deserialize: [core.Object, [core.Object]], | 384 deserialize: [core.Object, [core.Object]], |
| 385 isPrimitive: [core.bool, [core.Object]], | 385 isPrimitive: [core.bool, [core.Object]], |
| 386 deserializePrimitive: [core.Object, [core.Object]], | 386 deserializePrimitive: [core.Object, [core.Object]], |
| 387 deserializeRef: [core.Object, [core.Object]], | 387 deserializeRef: [core.Object, [core.Object]], |
| 388 deserializeByteBuffer: [_native_typed_data.NativeByteBuffer, [core.Object]
], | 388 deserializeByteBuffer: [_native_typed_data.NativeByteBuffer, [core.Object]
], |
| 389 deserializeTypedData: [_native_typed_data.NativeTypedData, [core.Object]], | 389 deserializeTypedData: [_native_typed_data.NativeTypedData, [core.Object]], |
| 390 deserializeArrayInPlace: [core.List, [_interceptors.JSArray]], | 390 deserializeArrayInPlace: [core.List, [_interceptors.JSArray]], |
| 391 deserializeFixed: [core.List, [core.Object]], | 391 deserializeFixed: [core.List, [core.Object]], |
| 392 deserializeExtendable: [core.List, [core.Object]], | 392 deserializeExtendable: [core.List, [core.Object]], |
| (...skipping 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1425 ReceivePortImpl[dart.implements] = () => [isolate.ReceivePort]; | 1425 ReceivePortImpl[dart.implements] = () => [isolate.ReceivePort]; |
| 1426 dart.defineNamedConstructor(ReceivePortImpl, 'weak'); | 1426 dart.defineNamedConstructor(ReceivePortImpl, 'weak'); |
| 1427 dart.defineNamedConstructor(ReceivePortImpl, 'fromRawReceivePort'); | 1427 dart.defineNamedConstructor(ReceivePortImpl, 'fromRawReceivePort'); |
| 1428 dart.setSignature(ReceivePortImpl, { | 1428 dart.setSignature(ReceivePortImpl, { |
| 1429 constructors: () => ({ | 1429 constructors: () => ({ |
| 1430 ReceivePortImpl: [ReceivePortImpl, []], | 1430 ReceivePortImpl: [ReceivePortImpl, []], |
| 1431 weak: [ReceivePortImpl, []], | 1431 weak: [ReceivePortImpl, []], |
| 1432 fromRawReceivePort: [ReceivePortImpl, [isolate.RawReceivePort]] | 1432 fromRawReceivePort: [ReceivePortImpl, [isolate.RawReceivePort]] |
| 1433 }), | 1433 }), |
| 1434 methods: () => ({ | 1434 methods: () => ({ |
| 1435 listen: [async.StreamSubscription, [dart.functionType(dart.void, [dart.bot
tom])], {nErro: core.Function, nDon: dart.functionType(dart.void, []), ancelOnEr
ro: core.bool}], | 1435 listen: [async.StreamSubscription, [dart.functionType(dart.void, [dart.bot
tom])], {onError: core.Function, onDone: dart.functionType(dart.void, []), cance
lOnError: core.bool}], |
| 1436 close: [dart.void, []] | 1436 close: [dart.void, []] |
| 1437 }) | 1437 }) |
| 1438 }); | 1438 }); |
| 1439 let _once = Symbol('_once'); | 1439 let _once = Symbol('_once'); |
| 1440 let _inEventLoop = Symbol('_inEventLoop'); | 1440 let _inEventLoop = Symbol('_inEventLoop'); |
| 1441 let _handle = Symbol('_handle'); | 1441 let _handle = Symbol('_handle'); |
| 1442 class TimerImpl extends core.Object { | 1442 class TimerImpl extends core.Object { |
| 1443 TimerImpl(milliseconds, callback) { | 1443 TimerImpl(milliseconds, callback) { |
| 1444 this[_once] = true; | 1444 this[_once] = true; |
| 1445 this[_inEventLoop] = false; | 1445 this[_inEventLoop] = false; |
| (...skipping 111 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 |