Class JSArrayBufferView
java.lang.Object
com.oracle.truffle.js.runtime.builtins.JSClass
com.oracle.truffle.js.runtime.builtins.JSNonProxy
com.oracle.truffle.js.runtime.builtins.JSArrayBufferView
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.oracle.truffle.api.strings.TruffleStringstatic final JSArrayBufferViewstatic final com.oracle.truffle.api.strings.TruffleStringstatic final com.oracle.truffle.api.strings.TruffleStringstatic final com.oracle.truffle.api.strings.TruffleStringFields inherited from class com.oracle.truffle.js.runtime.builtins.JSNonProxy
GET_SYMBOL_SPECIES_NAME -
Method Summary
Modifier and TypeMethodDescriptionstatic JSTypedArrayObjectcreateArrayBufferView(JSObjectFactory objectFactory, JSRealm realm, JSArrayBufferObject arrayBuffer, TypedArray arrayType, int offset, int length) static JSTypedArrayObjectcreateArrayBufferView(JSContext context, JSRealm realm, JSArrayBufferObject arrayBuffer, TypedArrayFactory typedArrayFactory, TypedArray arrayType, int offset, int length) static JSTypedArrayObjectcreateArrayBufferViewWithProto(JSObjectFactory objectFactory, JSRealm realm, JSArrayBufferObject arrayBuffer, TypedArray arrayType, int offset, int length, JSDynamicObject prototype) static JSConstructorcreateConstructor(JSRealm realm, TypedArrayFactory factory, JSConstructor taConstructor) static JSConstructorbooleandefineOwnProperty(JSDynamicObject thisObj, Object key, PropertyDescriptor descriptor, boolean doThrow) 9.1.6 [[DefineOwnProperty]] (P, Desc).booleandelete(JSDynamicObject thisObj, Object key, boolean isStrict) 9.1.10 [[Delete]] (P).static JSArrayBufferObjectgetArrayBuffer(JSDynamicObject thisObj) static intgetByteLength(JSDynamicObject store, JSContext ctx) static intgetByteOffset(JSDynamicObject store, JSContext ctx) getHelper(JSDynamicObject store, Object receiver, long index, com.oracle.truffle.api.nodes.Node encapsulatingNode) getHelper(JSDynamicObject store, Object receiver, Object key, com.oracle.truffle.api.nodes.Node encapsulatingNode) 9.4.5.4 [[Get]] for Integer Indexed exotic object.getOwnHelper(JSDynamicObject store, Object receiver, long index, com.oracle.truffle.api.nodes.Node encapsulatingNode) Like getOwnProperty, but returnsnullif value is not present instead of undefined.getOwnHelper(JSDynamicObject store, Object receiver, Object key, com.oracle.truffle.api.nodes.Node encapsulatingNode) Like getOwnProperty, but returnsnullif value is not present instead of undefined.getOwnProperty(JSDynamicObject thisObj, Object key) 9.1.5 [[GetOwnProperty]] (P).getOwnPropertyKeys(JSDynamicObject thisObj, boolean strings, boolean symbols) GetOwnPropertyKeys (O, type).booleanhasOwnProperty(JSDynamicObject thisObj, long index) booleanhasOwnProperty(JSDynamicObject thisObj, Object key) booleanhasProperty(JSDynamicObject thisObj, long index) booleanhasProperty(JSDynamicObject thisObj, Object key) 9.1.7 [[HasProperty]] (P).static booleanstatic booleanstatic booleanisOutOfBounds(JSTypedArrayObject typedArray, JSContext ctx) static booleanisValidIntegerIndex(JSDynamicObject thisObj, Number numericIndex) static com.oracle.truffle.api.object.ShapemakeInitialArrayBufferViewShape(JSContext ctx, JSDynamicObject prototype) booleanset(JSDynamicObject thisObj, long index, Object value, Object receiver, boolean isStrict, com.oracle.truffle.api.nodes.Node encapsulatingNode) booleanset(JSDynamicObject thisObj, Object key, Object value, Object receiver, boolean isStrict, com.oracle.truffle.api.nodes.Node encapsulatingNode) 9.1.9 [[Set]] (P, V, Receiver).static TypedArraytypedArrayGetArrayType(JSDynamicObject thisObj) static inttypedArrayGetByteOffset(JSDynamicObject thisObj) static inttypedArrayGetLength(JSDynamicObject thisObj) static com.oracle.truffle.api.strings.TruffleStringtypedArrayGetName(JSDynamicObject thisObj) booleanMethods inherited from class com.oracle.truffle.js.runtime.builtins.JSNonProxy
checkProtoCycle, createSymbolSpeciesGetterFunction, delete, deletePropertyDefault, getMethodHelper, getPrototypeOf, hasOnlyShapeProperties, invokeAccessorPropertySetter, isExtensible, ordinaryGetOwnProperty, ordinaryGetOwnPropertyIntl, ordinaryIsExtensible, ordinaryOwnPropertyKeys, ordinaryOwnPropertyKeys, ordinaryOwnPropertyKeysSlow, ordinaryPreventExtensions, ordinarySet, ordinarySetIndex, ordinarySetWithReceiver, performOrdinarySetWithOwnDescriptor, preventExtensions, putConstructorSpeciesGetter, setIntegrityLevelFast, setPropertySlow, setPrototypeOf, testIntegrityLevelFast, usesOrdinaryIsExtensibleMethods inherited from class com.oracle.truffle.js.runtime.builtins.JSClass
filterOwnPropertyKeys, get, get, getIntrinsicDefaultProto, isInstance, isInstance, isInstance, isInstance, makeInitialShape, ownPropertyKeys, toString
-
Field Details
-
CLASS_NAME
public static final com.oracle.truffle.api.strings.TruffleString CLASS_NAME -
PROTOTYPE_NAME
public static final com.oracle.truffle.api.strings.TruffleString PROTOTYPE_NAME -
UINT8ARRAY_CONSTRUCTOR_NAME
public static final com.oracle.truffle.api.strings.TruffleString UINT8ARRAY_CONSTRUCTOR_NAME -
UINT8ARRAY_PROTOTYPE_NAME
public static final com.oracle.truffle.api.strings.TruffleString UINT8ARRAY_PROTOTYPE_NAME -
INSTANCE
-
-
Method Details
-
typedArrayGetArrayType
-
typedArrayGetLength
-
typedArrayGetByteOffset
-
typedArrayGetName
public static com.oracle.truffle.api.strings.TruffleString typedArrayGetName(JSDynamicObject thisObj) -
getArrayBuffer
-
getByteLength
-
getByteOffset
-
getHelper
public Object getHelper(JSDynamicObject store, Object receiver, long index, com.oracle.truffle.api.nodes.Node encapsulatingNode) - Overrides:
getHelperin classJSNonProxy
-
getOwnHelper
public Object getOwnHelper(JSDynamicObject store, Object receiver, long index, com.oracle.truffle.api.nodes.Node encapsulatingNode) Description copied from class:JSNonProxyLike getOwnProperty, but returnsnullif value is not present instead of undefined.- Overrides:
getOwnHelperin classJSNonProxy
-
getHelper
public 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.- Overrides:
getHelperin classJSNonProxy
-
getOwnHelper
public Object getOwnHelper(JSDynamicObject store, Object receiver, Object key, com.oracle.truffle.api.nodes.Node encapsulatingNode) Description copied from class:JSNonProxyLike getOwnProperty, but returnsnullif value is not present instead of undefined.- Overrides:
getOwnHelperin classJSNonProxy
-
set
public boolean set(JSDynamicObject thisObj, long index, Object value, Object receiver, boolean isStrict, com.oracle.truffle.api.nodes.Node encapsulatingNode) - Overrides:
setin classJSNonProxy
-
set
public boolean set(JSDynamicObject thisObj, Object key, Object value, Object receiver, boolean isStrict, com.oracle.truffle.api.nodes.Node encapsulatingNode) Description copied from class:JSClass9.1.9 [[Set]] (P, V, Receiver).- Overrides:
setin classJSNonProxy
-
isValidIntegerIndex
-
hasProperty
- Overrides:
hasPropertyin classJSNonProxy
-
hasProperty
Description copied from class:JSClass9.1.7 [[HasProperty]] (P).- Overrides:
hasPropertyin classJSNonProxy
-
hasOwnProperty
- Overrides:
hasOwnPropertyin classJSNonProxy
-
hasOwnProperty
- Overrides:
hasOwnPropertyin classJSNonProxy
-
createArrayBufferView
public static JSTypedArrayObject createArrayBufferView(JSContext context, JSRealm realm, JSArrayBufferObject arrayBuffer, TypedArrayFactory typedArrayFactory, TypedArray arrayType, int offset, int length) -
createArrayBufferView
public static JSTypedArrayObject createArrayBufferView(JSObjectFactory objectFactory, JSRealm realm, JSArrayBufferObject arrayBuffer, TypedArray arrayType, int offset, int length) -
createArrayBufferViewWithProto
public static JSTypedArrayObject createArrayBufferViewWithProto(JSObjectFactory objectFactory, JSRealm realm, JSArrayBufferObject arrayBuffer, TypedArray arrayType, int offset, int length, JSDynamicObject prototype) -
makeInitialArrayBufferViewShape
public static com.oracle.truffle.api.object.Shape makeInitialArrayBufferViewShape(JSContext ctx, JSDynamicObject prototype) -
createConstructor
public static JSConstructor createConstructor(JSRealm realm, TypedArrayFactory factory, JSConstructor taConstructor) -
createTypedArrayConstructor
-
isJSArrayBufferView
-
isBigIntArrayBufferView
-
isOutOfBounds
-
getOwnPropertyKeys
Description copied from class:JSClassGetOwnPropertyKeys (O, type).- Overrides:
getOwnPropertyKeysin classJSNonProxy- Returns:
- a List of the keys of all own properties of that object with the specified types
-
defineOwnProperty
public boolean defineOwnProperty(JSDynamicObject thisObj, Object key, PropertyDescriptor descriptor, boolean doThrow) Description copied from class:JSClass9.1.6 [[DefineOwnProperty]] (P, Desc).- Overrides:
defineOwnPropertyin classJSNonProxy
-
getOwnProperty
Description copied from class:JSClass9.1.5 [[GetOwnProperty]] (P).- Overrides:
getOwnPropertyin classJSNonProxy
-
delete
-
usesOrdinaryGetOwnProperty
public boolean usesOrdinaryGetOwnProperty()- Overrides:
usesOrdinaryGetOwnPropertyin classJSNonProxy
-