| Index: include/v8.h
|
| diff --git a/include/v8.h b/include/v8.h
|
| index 3afb83572a903e690e377c2b8bce5f900e60404d..e27c094be2effc8b4e35be74e0859d0a9682370e 100644
|
| --- a/include/v8.h
|
| +++ b/include/v8.h
|
| @@ -2377,6 +2377,7 @@ class V8EXPORT Function : public Object {
|
| };
|
|
|
| #ifndef V8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT
|
| +// The number of required internal fields can be defined by embedder.
|
| #define V8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT 2
|
| #endif
|
|
|
| @@ -2489,6 +2490,12 @@ class V8EXPORT ArrayBuffer : public Object {
|
| };
|
|
|
|
|
| +#ifndef V8_ARRAY_BUFFER_VIEW_INTERNAL_FIELD_COUNT
|
| +// The number of required internal fields can be defined by embedder.
|
| +#define V8_ARRAY_BUFFER_VIEW_INTERNAL_FIELD_COUNT 2
|
| +#endif
|
| +
|
| +
|
| /**
|
| * A base class for an instance of one of "views" over ArrayBuffer,
|
| * including TypedArrays and DataView (ES6 draft 15.13).
|
| @@ -2516,6 +2523,9 @@ class V8EXPORT ArrayBufferView : public Object {
|
|
|
| V8_INLINE(static ArrayBufferView* Cast(Value* obj));
|
|
|
| + static const int kInternalFieldCount =
|
| + V8_ARRAY_BUFFER_VIEW_INTERNAL_FIELD_COUNT;
|
| +
|
| private:
|
| ArrayBufferView();
|
| static void CheckCast(Value* obj);
|
|
|