Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(538)

Unified Diff: runtime/vm/dart_api_message.cc

Issue 9958046: Implement {Int,Uint}{8,16,32,64} and Float{32,64} typed arrays. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address review comments Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/dart_api_message.cc
diff --git a/runtime/vm/dart_api_message.cc b/runtime/vm/dart_api_message.cc
index 7a1767a427eb7461e126a4118419c5f4c2703068..0f7903c27f5488c3f7913cc54916064b95732693 100644
--- a/runtime/vm/dart_api_message.cc
+++ b/runtime/vm/dart_api_message.cc
@@ -276,7 +276,7 @@ Dart_CObject* ApiMessageReader::ReadInlinedObject(intptr_t object_id) {
case ObjectStore::kFourByteStringClass:
// Four byte strings not supported.
return NULL;
- case ObjectStore::kInternalByteArrayClass: {
+ case ObjectStore::kUint8ArrayClass: {
intptr_t len = ReadSmiValue();
Dart_CObject* object = AllocateDartCObjectByteArray(len);
AddBackwardReference(object_id, object);
@@ -543,7 +543,7 @@ void ApiMessageWriter::WriteCObject(Dart_CObject* object) {
// Write out the serialization header value for this object.
WriteInlinedHeader(object);
// Write out the class and tags information.
- WriteObjectHeader(ObjectStore::kInternalByteArrayClass, 0);
+ WriteObjectHeader(ObjectStore::kUint8ArrayClass, 0);
uint8_t* bytes = object->value.as_byte_array.values;
intptr_t len = object->value.as_byte_array.length;
WriteSmi(len);

Powered by Google App Engine
This is Rietveld 408576698