public final class JSDataView extends JSNonProxy implements JSConstructorFactory.Default, PrototypeSupplier
usesOrdinaryGetOwnPropertyJSConstructorFactory.Default.WithSpeciesJSConstructorFactory.Default, JSConstructorFactory.WithFunctions, JSConstructorFactory.WithFunctionsAndSpecies| Modifier and Type | Field and Description |
|---|---|
static com.oracle.truffle.api.strings.TruffleString |
CLASS_NAME |
static JSDataView |
INSTANCE |
static com.oracle.truffle.api.strings.TruffleString |
PROTOTYPE_NAME |
GET_SYMBOL_SPECIES_NAME| Modifier and Type | Method and Description |
|---|---|
static JSConstructor |
createConstructor(JSRealm realm) |
static JSDataViewObject |
createDataView(JSContext context,
JSRealm realm,
JSArrayBufferObject arrayBuffer,
int offset,
int length) |
static JSDataViewObject |
createDataView(JSContext context,
JSRealm realm,
JSDynamicObject proto,
JSArrayBufferObject arrayBuffer,
int offset,
int length) |
JSDynamicObject |
createPrototype(JSRealm realm,
JSFunctionObject ctor) |
static JSArrayBufferObject |
getArrayBuffer(Object thisObj) |
com.oracle.truffle.api.strings.TruffleString |
getClassName() |
com.oracle.truffle.api.strings.TruffleString |
getClassName(JSDynamicObject object)
The [[Class]] internal property.
|
JSDynamicObject |
getIntrinsicDefaultProto(JSRealm realm)
Allows invokevirtual of this method instead of invokeinterface.
|
static boolean |
isJSDataView(Object obj) |
com.oracle.truffle.api.object.Shape |
makeInitialShape(JSContext ctx,
JSDynamicObject prototype) |
static int |
typedArrayGetLength(Object thisObj) |
static int |
typedArrayGetLengthChecked(JSDynamicObject thisObj) |
static int |
typedArrayGetOffset(Object thisObj) |
static int |
typedArrayGetOffsetChecked(JSDynamicObject thisObj) |
checkProtoCycle, createSymbolSpeciesGetterFunction, defineOwnProperty, delete, delete, deletePropertyDefault, getBuiltinToStringTag, getHelper, getHelper, getMethodHelper, getOwnHelper, getOwnHelper, getOwnProperty, getOwnPropertyKeys, getPrototypeOf, hasOnlyShapeProperties, hasOwnProperty, hasOwnProperty, hasProperty, hasProperty, invokeAccessorPropertySetter, isExtensible, ordinaryGetOwnProperty, ordinaryGetOwnPropertyIntl, ordinaryIsExtensible, ordinaryOwnPropertyKeys, ordinaryOwnPropertyKeys, ordinaryOwnPropertyKeysSlow, ordinarySet, ordinarySetIndex, ordinarySetWithReceiver, performOrdinarySetWithOwnDescriptor, preventExtensions, preventExtensionsImpl, putConstructorSpeciesGetter, set, set, setIntegrityLevel, setIntegrityLevelFast, setPropertySlow, setPrototypeOf, testIntegrityLevel, testIntegrityLevelFast, toDisplayStringImpl, toString, usesOrdinaryGetOwnProperty, usesOrdinaryIsExtensibledefaultToString, filterOwnPropertyKeys, formatToString, get, get, getToStringTag, isInstance, isInstance, isInstance, isInstance, ownPropertyKeys, testIntegrityLevelDefaultclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateConstructorAndPrototypecreateConstructorObject, fillConstructorpublic static final com.oracle.truffle.api.strings.TruffleString CLASS_NAME
public static final com.oracle.truffle.api.strings.TruffleString PROTOTYPE_NAME
public static final JSDataView INSTANCE
public static int typedArrayGetLength(Object thisObj)
public static int typedArrayGetOffset(Object thisObj)
public static JSArrayBufferObject getArrayBuffer(Object thisObj)
public static JSDataViewObject createDataView(JSContext context, JSRealm realm, JSArrayBufferObject arrayBuffer, int offset, int length)
public static JSDataViewObject createDataView(JSContext context, JSRealm realm, JSDynamicObject proto, JSArrayBufferObject arrayBuffer, int offset, int length)
public JSDynamicObject createPrototype(JSRealm realm, JSFunctionObject ctor)
createPrototype in interface JSConstructorFactorypublic static int typedArrayGetLengthChecked(JSDynamicObject thisObj)
public static int typedArrayGetOffsetChecked(JSDynamicObject thisObj)
public com.oracle.truffle.api.object.Shape makeInitialShape(JSContext ctx, JSDynamicObject prototype)
makeInitialShape in class JSClasspublic static JSConstructor createConstructor(JSRealm realm)
public com.oracle.truffle.api.strings.TruffleString getClassName()
getClassName in interface JSConstructorFactorypublic com.oracle.truffle.api.strings.TruffleString getClassName(JSDynamicObject object)
JSClassgetClassName in class JSClassobject - object to be usedpublic static boolean isJSDataView(Object obj)
public JSDynamicObject getIntrinsicDefaultProto(JSRealm realm)
JSClassPrototypeSupplier.getIntrinsicDefaultProto in interface PrototypeSuppliergetIntrinsicDefaultProto in class JSClassPrototypeSupplier.getIntrinsicDefaultProto(com.oracle.truffle.js.runtime.JSRealm)