| Index: src/runtime.h
|
| diff --git a/src/runtime.h b/src/runtime.h
|
| index 8b650e9754d7f97094ae4664f0166c261543c5e3..ab892f2be4658a44ad03e9d625799a3efddcbf17 100644
|
| --- a/src/runtime.h
|
| +++ b/src/runtime.h
|
| @@ -830,6 +830,22 @@ class Runtime : public AllStatic {
|
| Isolate* isolate,
|
| JSArrayBuffer* phantom_array_buffer);
|
|
|
| + enum TypedArrayId {
|
| + // arrayIds below should be synchromized with typedarray.js natives.
|
| + ARRAY_ID_UINT8 = 1,
|
| + ARRAY_ID_INT8 = 2,
|
| + ARRAY_ID_UINT16 = 3,
|
| + ARRAY_ID_INT16 = 4,
|
| + ARRAY_ID_UINT32 = 5,
|
| + ARRAY_ID_INT32 = 6,
|
| + ARRAY_ID_FLOAT32 = 7,
|
| + ARRAY_ID_FLOAT64 = 8,
|
| + ARRAY_ID_UINT8C = 9
|
| + };
|
| +
|
| + static void ArrayIdToTypeAndSize(int array_id,
|
| + ExternalArrayType *type, size_t *element_size);
|
| +
|
| // Helper functions used stubs.
|
| static void PerformGC(Object* result, Isolate* isolate);
|
|
|
|
|