| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index f730d2f53591916e35e12f1a2ef4dc2eab1395f0..a4102c4471bd4856a06c847e32774e6731415a8d 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -2220,6 +2220,17 @@ class JSObject: public JSReceiver {
|
|
|
| inline bool HasFixedTypedArrayElements();
|
|
|
| + inline bool HasFixedUint8ClampedElements();
|
| + inline bool HasFixedArrayElements();
|
| + inline bool HasFixedInt8Elements();
|
| + inline bool HasFixedUint8Elements();
|
| + inline bool HasFixedInt16Elements();
|
| + inline bool HasFixedUint16Elements();
|
| + inline bool HasFixedInt32Elements();
|
| + inline bool HasFixedUint32Elements();
|
| + inline bool HasFixedFloat32Elements();
|
| + inline bool HasFixedFloat64Elements();
|
| +
|
| bool HasFastArgumentsElements();
|
| bool HasDictionaryArgumentsElements();
|
| inline SeededNumberDictionary* element_dictionary(); // Gets slow elements.
|
| @@ -4972,6 +4983,11 @@ class FixedTypedArrayBase: public FixedArrayBase {
|
|
|
| inline int size();
|
|
|
| + // Use with care: returns raw pointer into heap.
|
| + inline void* DataPtr();
|
| +
|
| + inline int DataSize();
|
| +
|
| private:
|
| DISALLOW_IMPLICIT_CONSTRUCTORS(FixedTypedArrayBase);
|
| };
|
| @@ -4998,6 +5014,9 @@ class FixedTypedArray: public FixedTypedArrayBase {
|
| MUST_USE_RESULT inline MaybeObject* get(int index);
|
| inline void set(int index, ElementType value);
|
|
|
| + static inline ElementType from_int(int value);
|
| + static inline ElementType from_double(double value);
|
| +
|
| // This accessor applies the correct conversion from Smi, HeapNumber
|
| // and undefined.
|
| MUST_USE_RESULT MaybeObject* SetValue(uint32_t index, Object* value);
|
| @@ -5020,7 +5039,7 @@ class FixedTypedArray: public FixedTypedArrayBase {
|
| static const InstanceType kInstanceType = FIXED_##TYPE##_ARRAY_TYPE; \
|
| static const char* Designator() { return #type " array"; } \
|
| static inline MaybeObject* ToObject(Heap* heap, elementType scalar); \
|
| - static elementType defaultValue() { return 0; } \
|
| + static inline elementType defaultValue(); \
|
| }; \
|
| \
|
| typedef FixedTypedArray<Type##ArrayTraits> Fixed##Type##Array;
|
| @@ -6240,9 +6259,11 @@ class Map: public HeapObject {
|
| Descriptor* descriptor,
|
| int index,
|
| TransitionFlag flag);
|
| - static Handle<Map> AsElementsKind(Handle<Map> map, ElementsKind kind);
|
| +
|
| MUST_USE_RESULT MaybeObject* AsElementsKind(ElementsKind kind);
|
|
|
| + static Handle<Map> AsElementsKind(Handle<Map> map, ElementsKind kind);
|
| +
|
| MUST_USE_RESULT MaybeObject* CopyAsElementsKind(ElementsKind kind,
|
| TransitionFlag flag);
|
|
|
| @@ -9931,6 +9952,8 @@ class JSTypedArray: public JSArrayBufferView {
|
| ExternalArrayType type();
|
| size_t element_size();
|
|
|
| + Handle<JSArrayBuffer> GetBuffer();
|
| +
|
| // Dispatched behavior.
|
| DECLARE_PRINTER(JSTypedArray)
|
| DECLARE_VERIFIER(JSTypedArray)
|
| @@ -9942,6 +9965,9 @@ class JSTypedArray: public JSArrayBufferView {
|
| kSize + v8::ArrayBufferView::kInternalFieldCount * kPointerSize;
|
|
|
| private:
|
| + static Handle<JSArrayBuffer> MaterializeArrayBuffer(
|
| + Handle<JSTypedArray> typed_array);
|
| +
|
| DISALLOW_IMPLICIT_CONSTRUCTORS(JSTypedArray);
|
| };
|
|
|
|
|