| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of _isolate_helper; | 5 part of _isolate_helper; |
| 6 | 6 |
| 7 /// Serialize [message]. | 7 /// Serialize [message]. |
| 8 _serializeMessage(message) { | 8 _serializeMessage(message) { |
| 9 return new _Serializer().serialize(message); | 9 return new _Serializer().serialize(message); |
| 10 } | 10 } |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 var instanceFromClassId = JS_EMBEDDED_GLOBAL('', INSTANCE_FROM_CLASS_ID); | 352 var instanceFromClassId = JS_EMBEDDED_GLOBAL('', INSTANCE_FROM_CLASS_ID); |
| 353 var initializeObject = JS_EMBEDDED_GLOBAL('', INITIALIZE_EMPTY_INSTANCE); | 353 var initializeObject = JS_EMBEDDED_GLOBAL('', INITIALIZE_EMPTY_INSTANCE); |
| 354 | 354 |
| 355 var emptyInstance = JS('', '#(#)', instanceFromClassId, classId); | 355 var emptyInstance = JS('', '#(#)', instanceFromClassId, classId); |
| 356 deserializedObjects.add(emptyInstance); | 356 deserializedObjects.add(emptyInstance); |
| 357 deserializeArrayInPlace(fields); | 357 deserializeArrayInPlace(fields); |
| 358 return JS('', '#(#, #, #)', | 358 return JS('', '#(#, #, #)', |
| 359 initializeObject, classId, emptyInstance, fields); | 359 initializeObject, classId, emptyInstance, fields); |
| 360 } | 360 } |
| 361 } | 361 } |
| OLD | NEW |