public final class JSArrayBufferView extends JSNonProxy
| Type | Property and Description |
|---|---|
boolean |
usesOrdinaryGetOwn |
| Modifier and Type | Field and Description |
|---|---|
static com.oracle.truffle.api.strings.TruffleString |
CLASS_NAME |
static JSArrayBufferView |
INSTANCE |
static com.oracle.truffle.api.strings.TruffleString |
PROTOTYPE_NAME |
GET_SYMBOL_SPECIES_NAME| Modifier and Type | Method and Description |
|---|---|
static JSTypedArrayObject |
createArrayBufferView(JSContext context,
JSRealm realm,
JSArrayBufferObject arrayBuffer,
TypedArray arrayType,
int offset,
int length) |
static JSTypedArrayObject |
createArrayBufferView(JSObjectFactory objectFactory,
JSRealm realm,
JSArrayBufferObject arrayBuffer,
TypedArray arrayType,
int offset,
int length) |
static JSTypedArrayObject |
createArrayBufferViewWithProto(JSObjectFactory objectFactory,
JSRealm realm,
JSArrayBufferObject arrayBuffer,
TypedArray arrayType,
int offset,
int length,
JSDynamicObject prototype) |
static JSConstructor |
createConstructor(JSRealm realm,
TypedArrayFactory factory,
JSConstructor taConstructor) |
static JSConstructor |
createTypedArrayConstructor(JSRealm realm) |
boolean |
defineOwnProperty(JSDynamicObject thisObj,
Object key,
PropertyDescriptor descriptor,
boolean doThrow)
9.1.6 [[DefineOwnProperty]] (P, Desc).
|
boolean |
delete(JSDynamicObject thisObj,
Object key,
boolean isStrict)
9.1.10 [[Delete]] (P).
|
static JSArrayBufferObject |
getArrayBuffer(JSDynamicObject thisObj) |
static int |
getByteLength(JSDynamicObject store,
JSContext ctx) |
static int |
getByteOffset(JSDynamicObject store,
JSContext ctx) |
com.oracle.truffle.api.strings.TruffleString |
getClassName(JSDynamicObject object)
The [[Class]] internal property.
|
Object |
getHelper(JSDynamicObject store,
Object receiver,
long index,
com.oracle.truffle.api.nodes.Node encapsulatingNode) |
Object |
getHelper(JSDynamicObject store,
Object receiver,
Object key,
com.oracle.truffle.api.nodes.Node encapsulatingNode)
9.4.5.4 [[Get]] for Integer Indexed exotic object.
|
Object |
getOwnHelper(JSDynamicObject store,
Object receiver,
long index,
com.oracle.truffle.api.nodes.Node encapsulatingNode)
Like getOwnProperty, but returns
null if value is not present instead of undefined. |
Object |
getOwnHelper(JSDynamicObject store,
Object receiver,
Object key,
com.oracle.truffle.api.nodes.Node encapsulatingNode)
Like getOwnProperty, but returns
null if value is not present instead of undefined. |
PropertyDescriptor |
getOwnProperty(JSDynamicObject thisObj,
Object key)
9.1.5 [[GetOwnProperty]] (P).
|
List<Object> |
getOwnPropertyKeys(JSDynamicObject thisObj,
boolean strings,
boolean symbols)
GetOwnPropertyKeys (O, type).
|
static boolean |
hasDetachedBuffer(JSDynamicObject obj) |
static boolean |
hasDetachedBuffer(JSDynamicObject obj,
JSContext ctx) |
boolean |
hasOwnProperty(JSDynamicObject thisObj,
long index) |
boolean |
hasOwnProperty(JSDynamicObject thisObj,
Object key) |
boolean |
hasProperty(JSDynamicObject thisObj,
long index) |
boolean |
hasProperty(JSDynamicObject thisObj,
Object key)
9.1.7 [[HasProperty]] (P).
|
static boolean |
isBigIntArrayBufferView(JSDynamicObject obj) |
static boolean |
isJSArrayBufferView(Object obj) |
static boolean |
isValidIntegerIndex(JSDynamicObject thisObj,
Number numericIndex) |
static com.oracle.truffle.api.object.Shape |
makeInitialArrayBufferViewShape(JSContext ctx,
JSDynamicObject prototype) |
boolean |
set(JSDynamicObject thisObj,
long index,
Object value,
Object receiver,
boolean isStrict,
com.oracle.truffle.api.nodes.Node encapsulatingNode) |
boolean |
set(JSDynamicObject thisObj,
Object key,
Object value,
Object receiver,
boolean isStrict,
com.oracle.truffle.api.nodes.Node encapsulatingNode)
9.1.9 [[Set]] (P, V, Receiver).
|
boolean |
setIntegrityLevel(JSDynamicObject thisObj,
boolean freeze,
boolean doThrow)
ES2015 7.3.14 SetIntegrityLevel(O, level).
|
boolean |
testIntegrityLevel(JSDynamicObject thisObj,
boolean frozen)
ES2015 7.3.15 TestIntegrityLevel(O, level).
|
com.oracle.truffle.api.strings.TruffleString |
toDisplayStringImpl(JSDynamicObject obj,
boolean allowSideEffects,
ToDisplayStringFormat format,
int depth)
A more informative toString variant, mainly used for error messages.
|
static TypedArray |
typedArrayGetArrayType(JSDynamicObject thisObj) |
static byte[] |
typedArrayGetByteArray(JSDynamicObject thisObj) |
static ByteBuffer |
typedArrayGetByteBuffer(JSDynamicObject thisObj) |
static int |
typedArrayGetLength(JSDynamicObject thisObj) |
static com.oracle.truffle.api.strings.TruffleString |
typedArrayGetName(JSDynamicObject thisObj) |
static int |
typedArrayGetOffset(JSDynamicObject thisObj) |
boolean |
usesOrdinaryGetOwnProperty() |
checkProtoCycle, createSymbolSpeciesGetterFunction, delete, deletePropertyDefault, getBuiltinToStringTag, getMethodHelper, getPrototypeOf, hasOnlyShapeProperties, invokeAccessorPropertySetter, isExtensible, ordinaryGetOwnProperty, ordinaryGetOwnPropertyIntl, ordinaryIsExtensible, ordinaryOwnPropertyKeys, ordinaryOwnPropertyKeys, ordinaryOwnPropertyKeysSlow, ordinarySet, ordinarySetIndex, ordinarySetWithReceiver, performOrdinarySetWithOwnDescriptor, preventExtensions, preventExtensionsImpl, putConstructorSpeciesGetter, setIntegrityLevelFast, setPropertySlow, setPrototypeOf, testIntegrityLevelFast, toString, usesOrdinaryIsExtensibledefaultToString, filterOwnPropertyKeys, formatToString, get, get, getIntrinsicDefaultProto, getToStringTag, isInstance, isInstance, isInstance, isInstance, makeInitialShape, ownPropertyKeys, testIntegrityLevelDefaultpublic boolean usesOrdinaryGetOwnProperty
usesOrdinaryGetOwnProperty in class JSNonProxypublic static final com.oracle.truffle.api.strings.TruffleString CLASS_NAME
public static final com.oracle.truffle.api.strings.TruffleString PROTOTYPE_NAME
public static final JSArrayBufferView INSTANCE
public static TypedArray typedArrayGetArrayType(JSDynamicObject thisObj)
public static int typedArrayGetLength(JSDynamicObject thisObj)
public static int typedArrayGetOffset(JSDynamicObject thisObj)
public static byte[] typedArrayGetByteArray(JSDynamicObject thisObj)
public static ByteBuffer typedArrayGetByteBuffer(JSDynamicObject thisObj)
public static com.oracle.truffle.api.strings.TruffleString typedArrayGetName(JSDynamicObject thisObj)
public static JSArrayBufferObject getArrayBuffer(JSDynamicObject thisObj)
public static int getByteLength(JSDynamicObject store, JSContext ctx)
public static int getByteOffset(JSDynamicObject store, JSContext ctx)
public Object getHelper(JSDynamicObject store, Object receiver, long index, com.oracle.truffle.api.nodes.Node encapsulatingNode)
getHelper in class JSNonProxypublic Object getOwnHelper(JSDynamicObject store, Object receiver, long index, com.oracle.truffle.api.nodes.Node encapsulatingNode)
JSNonProxynull if value is not present instead of undefined.getOwnHelper in class JSNonProxypublic Object getHelper(JSDynamicObject store, Object receiver, Object key, com.oracle.truffle.api.nodes.Node encapsulatingNode)
getHelper in class JSNonProxypublic Object getOwnHelper(JSDynamicObject store, Object receiver, Object key, com.oracle.truffle.api.nodes.Node encapsulatingNode)
JSNonProxynull if value is not present instead of undefined.getOwnHelper in class JSNonProxypublic boolean set(JSDynamicObject thisObj, long index, Object value, Object receiver, boolean isStrict, com.oracle.truffle.api.nodes.Node encapsulatingNode)
set in class JSNonProxypublic boolean set(JSDynamicObject thisObj, Object key, Object value, Object receiver, boolean isStrict, com.oracle.truffle.api.nodes.Node encapsulatingNode)
JSClassset in class JSNonProxypublic static boolean isValidIntegerIndex(JSDynamicObject thisObj, Number numericIndex)
public boolean hasProperty(JSDynamicObject thisObj, long index)
hasProperty in class JSNonProxypublic boolean hasProperty(JSDynamicObject thisObj, Object key)
JSClasshasProperty in class JSNonProxypublic boolean hasOwnProperty(JSDynamicObject thisObj, long index)
hasOwnProperty in class JSNonProxypublic boolean hasOwnProperty(JSDynamicObject thisObj, Object key)
hasOwnProperty in class JSNonProxypublic static JSTypedArrayObject createArrayBufferView(JSContext context, JSRealm realm, JSArrayBufferObject arrayBuffer, TypedArray arrayType, int offset, int length)
public static JSTypedArrayObject createArrayBufferView(JSObjectFactory objectFactory, JSRealm realm, JSArrayBufferObject arrayBuffer, TypedArray arrayType, int offset, int length)
public static JSTypedArrayObject createArrayBufferViewWithProto(JSObjectFactory objectFactory, JSRealm realm, JSArrayBufferObject arrayBuffer, TypedArray arrayType, int offset, int length, JSDynamicObject prototype)
public static com.oracle.truffle.api.object.Shape makeInitialArrayBufferViewShape(JSContext ctx, JSDynamicObject prototype)
public static JSConstructor createConstructor(JSRealm realm, TypedArrayFactory factory, JSConstructor taConstructor)
public static JSConstructor createTypedArrayConstructor(JSRealm realm)
public com.oracle.truffle.api.strings.TruffleString getClassName(JSDynamicObject object)
JSClassgetClassName in class JSClassobject - object to be usedpublic static boolean isJSArrayBufferView(Object obj)
public static boolean isBigIntArrayBufferView(JSDynamicObject obj)
public static boolean hasDetachedBuffer(JSDynamicObject obj, JSContext ctx)
public static boolean hasDetachedBuffer(JSDynamicObject obj)
public List<Object> getOwnPropertyKeys(JSDynamicObject thisObj, boolean strings, boolean symbols)
JSClassgetOwnPropertyKeys in class JSNonProxypublic boolean defineOwnProperty(JSDynamicObject thisObj, Object key, PropertyDescriptor descriptor, boolean doThrow)
JSClassdefineOwnProperty in class JSNonProxypublic boolean setIntegrityLevel(JSDynamicObject thisObj, boolean freeze, boolean doThrow)
JSClasssetIntegrityLevel in class JSNonProxypublic boolean testIntegrityLevel(JSDynamicObject thisObj, boolean frozen)
JSNonProxytestIntegrityLevel in class JSNonProxypublic PropertyDescriptor getOwnProperty(JSDynamicObject thisObj, Object key)
JSClassgetOwnProperty in class JSNonProxypublic com.oracle.truffle.api.strings.TruffleString toDisplayStringImpl(JSDynamicObject obj, boolean allowSideEffects, ToDisplayStringFormat format, int depth)
JSClasstoDisplayStringImpl in class JSNonProxyformat - formatting parametersdepth - current nesting depthpublic boolean delete(JSDynamicObject thisObj, Object key, boolean isStrict)
JSClassdelete in class JSNonProxypublic boolean usesOrdinaryGetOwnProperty()
usesOrdinaryGetOwnProperty in class JSNonProxy