Class JSWebAssemblyMemory
java.lang.Object
com.oracle.truffle.js.runtime.builtins.JSClass
com.oracle.truffle.js.runtime.builtins.JSNonProxy
com.oracle.truffle.js.runtime.builtins.wasm.JSWebAssemblyMemory
- All Implemented Interfaces:
JSConstructorFactory, JSConstructorFactory.Default, PrototypeSupplier
public class JSWebAssemblyMemory
extends JSNonProxy
implements JSConstructorFactory.Default, PrototypeSupplier
-
Nested Class Summary
Nested classes/interfaces inherited from interface JSConstructorFactory
JSConstructorFactory.Default, JSConstructorFactory.WithFunctions, JSConstructorFactory.WithFunctionsAndSpeciesNested classes/interfaces inherited from interface JSConstructorFactory.Default
JSConstructorFactory.Default.WithSpecies -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.oracle.truffle.api.strings.TruffleStringstatic final JSWebAssemblyMemorystatic final longstatic final longstatic final longstatic final com.oracle.truffle.api.strings.TruffleStringstatic final com.oracle.truffle.api.strings.TruffleStringFields inherited from class JSNonProxy
GET_SYMBOL_SPECIES_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JSWebAssemblyMemoryObjectcreate(JSContext context, JSRealm realm, JSDynamicObject proto, Object wasmMemory, boolean shared, long maximum, boolean addressType64) static JSWebAssemblyMemoryObjectcreate(JSContext context, JSRealm realm, Object wasmMemory, boolean shared, long maximum, boolean addressType64) static JSConstructorcreateConstructor(JSRealm realm) static JSWebAssemblyMemoryObjectcreateMaximumUnknown(JSContext context, JSRealm realm, Object wasmMemory, boolean shared) createPrototype(JSRealm realm, JSFunctionObject constructor) com.oracle.truffle.api.strings.TruffleStringgetIntrinsicDefaultProto(JSRealm realm) Allows invokevirtual of this method instead of invokeinterface.static booleanisJSWebAssemblyMemory(Object object) com.oracle.truffle.api.object.ShapemakeInitialShape(JSContext ctx, JSDynamicObject prototype) static voidrefreshBuffers(JSRealm realm, Object wasmMemory) Methods inherited from class JSNonProxy
checkProtoCycle, createSymbolSpeciesGetterFunction, defineOwnProperty, delete, delete, deletePropertyDefault, getHelper, getHelper, getMethodHelper, getOwnHelper, getOwnHelper, getOwnProperty, getOwnPropertyKeys, getPrototypeOf, hasOnlyShapeProperties, hasOwnProperty, hasOwnProperty, hasProperty, hasProperty, invokeAccessorPropertySetter, isExtensible, ordinaryGetOwnProperty, ordinaryGetOwnPropertyIntl, ordinaryIsExtensible, ordinaryOwnPropertyKeys, ordinaryOwnPropertyKeys, ordinaryOwnPropertyKeysSlow, ordinaryPreventExtensions, ordinarySet, ordinarySetIndex, ordinarySetWithReceiver, performOrdinarySetWithOwnDescriptor, preventExtensions, putConstructorSpeciesGetter, set, set, setIntegrityLevelFast, setPropertySlow, setPrototypeOf, testIntegrityLevelFast, usesOrdinaryGetOwnProperty, usesOrdinaryIsExtensibleMethods inherited from class JSClass
delete, delete, filterOwnPropertyKeys, get, get, isInstance, isInstance, isInstance, isInstance, ownPropertyKeys, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface JSConstructorFactory
createConstructorObject, fillConstructorMethods inherited from interface JSConstructorFactory.Default
createConstructorAndPrototype
-
Field Details
-
NO_MAXIMUM
public static final long NO_MAXIMUM- See Also:
-
MAX_MEMORY_SIZE
public static final long MAX_MEMORY_SIZE- See Also:
-
MAX_MEMORY_64_SIZE
public static final long MAX_MEMORY_64_SIZE- See Also:
-
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 -
WEB_ASSEMBLY_MEMORY
public static final com.oracle.truffle.api.strings.TruffleString WEB_ASSEMBLY_MEMORY -
INSTANCE
-
-
Constructor Details
-
JSWebAssemblyMemory
public JSWebAssemblyMemory()
-
-
Method Details
-
getClassName
public com.oracle.truffle.api.strings.TruffleString getClassName()- Specified by:
getClassNamein interfaceJSConstructorFactory
-
isJSWebAssemblyMemory
-
createPrototype
- Specified by:
createPrototypein interfaceJSConstructorFactory
-
getIntrinsicDefaultProto
Description copied from class:JSClassAllows invokevirtual of this method instead of invokeinterface. Classes overriding this method should implementPrototypeSupplier.- Specified by:
getIntrinsicDefaultProtoin interfacePrototypeSupplier- Overrides:
getIntrinsicDefaultProtoin classJSClass- See Also:
-
makeInitialShape
public com.oracle.truffle.api.object.Shape makeInitialShape(JSContext ctx, JSDynamicObject prototype) - Overrides:
makeInitialShapein classJSClass
-
createConstructor
-
createMaximumUnknown
public static JSWebAssemblyMemoryObject createMaximumUnknown(JSContext context, JSRealm realm, Object wasmMemory, boolean shared) -
create
public static JSWebAssemblyMemoryObject create(JSContext context, JSRealm realm, Object wasmMemory, boolean shared, long maximum, boolean addressType64) -
create
public static JSWebAssemblyMemoryObject create(JSContext context, JSRealm realm, JSDynamicObject proto, Object wasmMemory, boolean shared, long maximum, boolean addressType64) -
refreshBuffers
-