Chromium Code Reviews| Index: runtime/vm/dart_api_message.cc |
| diff --git a/runtime/vm/dart_api_message.cc b/runtime/vm/dart_api_message.cc |
| index 7fb311ffa895897652dc7f24dca2d87212af4da9..12b2e5783ec51d925242fa3869b3146fe27dd74f 100644 |
| --- a/runtime/vm/dart_api_message.cc |
| +++ b/runtime/vm/dart_api_message.cc |
| @@ -715,6 +715,22 @@ void ApiMessageWriter::WriteCObjectInlined(Dart_CObject* object, |
| } |
| break; |
| } |
| + case Dart_CObject::kExternalUint8Array: { |
| + // Write out serialization header value for this object. |
| + WriteInlinedHeader(object); |
| + // Write out the class and tag information. |
| + WriteObjectHeader(ObjectStore::kExternalUint8ArrayClass, 0); |
| + int length = object->value.as_external_byte_array.length; |
| + uint8_t* data = object->value.as_external_byte_array.data; |
| + void* peer = object->value.as_external_byte_array.peer; |
| + Dart_PeerFinalizer callback = |
| + object->value.as_external_byte_array.callback; |
| + WriteSmi(length); |
| + WriteIntptrValue(reinterpret_cast<intptr_t>(data)); |
| + WriteIntptrValue(reinterpret_cast<intptr_t>(peer)); |
| + WriteIntptrValue(reinterpret_cast<intptr_t>(callback)); |
|
siva
2012/06/28 16:44:05
As discussed offline we need some mechanism to ens
Mads Ager (google)
2012/06/28 18:06:51
Done.
|
| + break; |
| + } |
| default: |
| UNREACHABLE(); |
| } |