| Index: runtime/bin/dartutils.cc
|
| diff --git a/runtime/bin/dartutils.cc b/runtime/bin/dartutils.cc
|
| index a2fdf9d41eaa02300ea89395139c32191a8342dd..dfdfb80751689797127c24d997297acb66bff50d 100644
|
| --- a/runtime/bin/dartutils.cc
|
| +++ b/runtime/bin/dartutils.cc
|
| @@ -918,7 +918,7 @@ Dart_CObject* CObject::NewDouble(double value) {
|
| }
|
|
|
|
|
| -Dart_CObject* CObject::NewString(int length) {
|
| +Dart_CObject* CObject::NewString(intptr_t length) {
|
| Dart_CObject* cobject = New(Dart_CObject_kString, length + 1);
|
| cobject->value.as_string = reinterpret_cast<char*>(cobject + 1);
|
| return cobject;
|
| @@ -933,7 +933,7 @@ Dart_CObject* CObject::NewString(const char* str) {
|
| }
|
|
|
|
|
| -Dart_CObject* CObject::NewArray(int length) {
|
| +Dart_CObject* CObject::NewArray(intptr_t length) {
|
| Dart_CObject* cobject =
|
| New(Dart_CObject_kArray, length * sizeof(Dart_CObject*)); // NOLINT
|
| cobject->value.as_array.length = length;
|
| @@ -943,7 +943,7 @@ Dart_CObject* CObject::NewArray(int length) {
|
| }
|
|
|
|
|
| -Dart_CObject* CObject::NewUint8Array(int length) {
|
| +Dart_CObject* CObject::NewUint8Array(intptr_t length) {
|
| Dart_CObject* cobject = New(Dart_CObject_kTypedData, length);
|
| cobject->value.as_typed_data.type = Dart_TypedData_kUint8;
|
| cobject->value.as_typed_data.length = length;
|
| @@ -953,7 +953,7 @@ Dart_CObject* CObject::NewUint8Array(int length) {
|
|
|
|
|
| Dart_CObject* CObject::NewExternalUint8Array(
|
| - int64_t length, uint8_t* data, void* peer,
|
| + intptr_t length, uint8_t* data, void* peer,
|
| Dart_WeakPersistentHandleFinalizer callback) {
|
| Dart_CObject* cobject = New(Dart_CObject_kExternalTypedData);
|
| cobject->value.as_external_typed_data.type = Dart_TypedData_kUint8;
|
| @@ -965,7 +965,7 @@ Dart_CObject* CObject::NewExternalUint8Array(
|
| }
|
|
|
|
|
| -Dart_CObject* CObject::NewIOBuffer(int64_t length) {
|
| +Dart_CObject* CObject::NewIOBuffer(intptr_t length) {
|
| uint8_t* data = IOBuffer::Allocate(length);
|
| return NewExternalUint8Array(length, data, data, IOBuffer::Finalizer);
|
| }
|
|
|