Class JSNonProxy
java.lang.Object
com.oracle.truffle.js.runtime.builtins.JSClass
com.oracle.truffle.js.runtime.builtins.JSNonProxy
- Direct Known Subclasses:
JavaImporter,JavaPackage,JSAbstractArray,JSAbstractBuffer,JSArrayBufferView,JSArrayIterator,JSAsyncContextSnapshot,JSAsyncContextVariable,JSAsyncGenerator,JSAsyncIterator,JSCollator,JSDataView,JSDate,JSDateTimeFormat,JSDictionary,JSDisplayNames,JSError,JSFinalizationRegistry,JSForInIterator,JSFunction,JSGenerator,JSGlobal,JSIterator,JSListFormat,JSLocale,JSMap,JSMapIterator,JSModuleNamespace,JSNumberFormat,JSObjectPrototype,JSOrdinary,JSPluralRules,JSPrimitive,JSPromise,JSRawJSON,JSRegExp,JSRelativeTimeFormat,JSSegmenter,JSSet,JSSetIterator,JSShadowRealm,JSStringIterator,JSSymbol,JSTemporalCalendar,JSTemporalDuration,JSTemporalInstant,JSTemporalPlainDate,JSTemporalPlainDateTime,JSTemporalPlainMonthDay,JSTemporalPlainTime,JSTemporalPlainYearMonth,JSTemporalTimeZone,JSTemporalZonedDateTime,JSUncheckedProxyHandler,JSWeakMap,JSWeakRef,JSWeakSet,JSWebAssemblyGlobal,JSWebAssemblyInstance,JSWebAssemblyMemory,JSWebAssemblyModule,JSWebAssemblyTable,JSWrapForValidAsyncIterator,JSWrapForValidIterator
Common base class for non-proxy object types.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.oracle.truffle.api.strings.TruffleString -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckProtoCycle(JSDynamicObject thisObj, JSDynamicObject newPrototype) protected static JSDynamicObjectbooleandefineOwnProperty(JSDynamicObject thisObj, Object key, PropertyDescriptor desc, boolean doThrow) 9.1.6 [[DefineOwnProperty]] (P, Desc).booleandelete(JSDynamicObject thisObj, long index, boolean isStrict) booleandelete(JSDynamicObject thisObj, Object key, boolean isStrict) 9.1.10 [[Delete]] (P).protected static booleandeletePropertyDefault(JSDynamicObject object, Object key, boolean isStrict) getHelper(JSDynamicObject store, Object thisObj, long index, com.oracle.truffle.api.nodes.Node encapsulatingNode) getHelper(JSDynamicObject store, Object thisObj, Object key, com.oracle.truffle.api.nodes.Node encapsulatingNode) getMethodHelper(JSDynamicObject store, Object thisObj, Object name, com.oracle.truffle.api.nodes.Node encapsulatingNode) getOwnHelper(JSDynamicObject store, Object thisObj, long index, com.oracle.truffle.api.nodes.Node encapsulatingNode) Like getOwnProperty, but returnsnullif value is not present instead of undefined.getOwnHelper(JSDynamicObject store, Object thisObj, 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).final JSDynamicObjectgetPrototypeOf(JSDynamicObject thisObj) 9.1.1 [[GetPrototypeOf]] ().booleanbooleanhasOwnProperty(JSDynamicObject thisObj, long index) booleanhasOwnProperty(JSDynamicObject thisObj, Object key) booleanhasProperty(JSDynamicObject thisObj, long index) booleanhasProperty(JSDynamicObject thisObj, Object key) 9.1.7 [[HasProperty]] (P).protected static booleaninvokeAccessorPropertySetter(PropertyDescriptor desc, JSDynamicObject thisObj, Object key, Object value, Object receiver, boolean isStrict, com.oracle.truffle.api.nodes.Node encapsulatingNode) final booleanisExtensible(JSDynamicObject thisObj) 9.1.3 [[IsExtensible]] ().static PropertyDescriptorordinaryGetOwnProperty(JSDynamicObject thisObj, Object key) 9.1.5.1 OrdinaryGetOwnProperty (O, P).static PropertyDescriptorordinaryGetOwnPropertyIntl(JSDynamicObject thisObj, Object key, com.oracle.truffle.api.object.Property prop) static booleanordinaryIsExtensible(JSDynamicObject thisObj) ordinaryOwnPropertyKeys(JSDynamicObject thisObj) ordinaryOwnPropertyKeys(JSDynamicObject thisObj, boolean strings, boolean symbols) ordinaryOwnPropertyKeysSlow(JSDynamicObject thisObj, boolean strings, boolean symbols) static booleanordinaryPreventExtensions(JSDynamicObject thisObj, int extraFlags) protected static booleanordinarySet(JSDynamicObject thisObj, Object key, Object value, Object receiver, boolean isStrict, com.oracle.truffle.api.nodes.Node encapsulatingNode) protected static booleanordinarySetIndex(JSDynamicObject thisObj, long index, Object value, Object receiver, boolean isStrict, com.oracle.truffle.api.nodes.Node encapsulatingNode) protected static booleanordinarySetWithReceiver(JSDynamicObject target, Object key, Object value, Object receiver, boolean isStrict, com.oracle.truffle.api.nodes.Node encapsulatingNode) protected static booleanperformOrdinarySetWithOwnDescriptor(JSDynamicObject target, Object key, Object value, Object receiver, PropertyDescriptor desc, boolean isStrict, com.oracle.truffle.api.nodes.Node encapsulatingNode) booleanpreventExtensions(JSDynamicObject thisObj, boolean doThrow) 9.1.4 [[PreventExtensions]] ().protected static voidputConstructorSpeciesGetter(JSRealm realm, JSDynamicObject constructor) 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 booleansetIntegrityLevelFast(JSDynamicObject thisObj, boolean freeze) protected static booleansetPropertySlow(JSDynamicObject thisObj, Object key, Object value, Object receiver, boolean isStrict, boolean isIndex, com.oracle.truffle.api.nodes.Node encapsulatingNode) booleansetPrototypeOf(JSDynamicObject thisObj, JSDynamicObject newPrototype) 9.1.2 [[SetPrototypeOf]] (V).static booleantestIntegrityLevelFast(JSDynamicObject obj, boolean frozen) booleanfinal booleanMethods inherited from class com.oracle.truffle.js.runtime.builtins.JSClass
filterOwnPropertyKeys, get, get, getIntrinsicDefaultProto, isInstance, isInstance, isInstance, isInstance, makeInitialShape, ownPropertyKeys, toString
-
Field Details
-
GET_SYMBOL_SPECIES_NAME
public static final com.oracle.truffle.api.strings.TruffleString GET_SYMBOL_SPECIES_NAME
-
-
Constructor Details
-
JSNonProxy
protected JSNonProxy()
-
-
Method Details
-
defineOwnProperty
public boolean defineOwnProperty(JSDynamicObject thisObj, Object key, PropertyDescriptor desc, boolean doThrow) Description copied from class:JSClass9.1.6 [[DefineOwnProperty]] (P, Desc).- Specified by:
defineOwnPropertyin classJSClass
-
getOwnHelper
public Object getOwnHelper(JSDynamicObject store, Object thisObj, Object key, com.oracle.truffle.api.nodes.Node encapsulatingNode) Like getOwnProperty, but returnsnullif value is not present instead of undefined.- Specified by:
getOwnHelperin classJSClass
-
getOwnHelper
public Object getOwnHelper(JSDynamicObject store, Object thisObj, long index, com.oracle.truffle.api.nodes.Node encapsulatingNode) Like getOwnProperty, but returnsnullif value is not present instead of undefined.- Specified by:
getOwnHelperin classJSClass
-
getHelper
-
getHelper
public Object getHelper(JSDynamicObject store, Object thisObj, long index, com.oracle.truffle.api.nodes.Node encapsulatingNode) -
getMethodHelper
public Object getMethodHelper(JSDynamicObject store, Object thisObj, Object name, com.oracle.truffle.api.nodes.Node encapsulatingNode) - Specified by:
getMethodHelperin classJSClass
-
getOwnPropertyKeys
Description copied from class:JSClassGetOwnPropertyKeys (O, type).- Specified by:
getOwnPropertyKeysin classJSClass- Returns:
- a List of the keys of all own properties of that object with the specified types
-
ordinaryOwnPropertyKeys
-
ordinaryOwnPropertyKeys
protected static List<Object> ordinaryOwnPropertyKeys(JSDynamicObject thisObj, boolean strings, boolean symbols) -
ordinaryOwnPropertyKeysSlow
protected static List<Object> ordinaryOwnPropertyKeysSlow(JSDynamicObject thisObj, boolean strings, boolean symbols) -
hasOnlyShapeProperties
Description copied from class:JSClassIf true,JSClass.ownPropertyKeys(com.oracle.truffle.js.runtime.objects.JSDynamicObject)andJSShape.getPropertyKeyList(com.oracle.truffle.api.object.Shape, boolean, boolean)enumerate the same keys.- Specified by:
hasOnlyShapePropertiesin classJSClass
-
delete
Description copied from class:JSClass9.1.10 [[Delete]] (P). -
deletePropertyDefault
protected static boolean deletePropertyDefault(JSDynamicObject object, Object key, boolean isStrict) -
delete
-
hasOwnProperty
- Specified by:
hasOwnPropertyin classJSClass
-
hasOwnProperty
- Specified by:
hasOwnPropertyin classJSClass
-
hasProperty
- Specified by:
hasPropertyin classJSClass
-
hasProperty
Description copied from class:JSClass9.1.7 [[HasProperty]] (P).- Specified by:
hasPropertyin classJSClass
-
set
public boolean set(JSDynamicObject thisObj, long index, Object value, Object receiver, boolean isStrict, com.oracle.truffle.api.nodes.Node encapsulatingNode) -
set
-
ordinarySetIndex
protected static boolean ordinarySetIndex(JSDynamicObject thisObj, long index, Object value, Object receiver, boolean isStrict, com.oracle.truffle.api.nodes.Node encapsulatingNode) -
ordinarySet
protected static boolean ordinarySet(JSDynamicObject thisObj, Object key, Object value, Object receiver, boolean isStrict, com.oracle.truffle.api.nodes.Node encapsulatingNode) -
ordinarySetWithReceiver
protected static boolean ordinarySetWithReceiver(JSDynamicObject target, Object key, Object value, Object receiver, boolean isStrict, com.oracle.truffle.api.nodes.Node encapsulatingNode) -
performOrdinarySetWithOwnDescriptor
protected static boolean performOrdinarySetWithOwnDescriptor(JSDynamicObject target, Object key, Object value, Object receiver, PropertyDescriptor desc, boolean isStrict, com.oracle.truffle.api.nodes.Node encapsulatingNode) -
setPropertySlow
protected static boolean setPropertySlow(JSDynamicObject thisObj, Object key, Object value, Object receiver, boolean isStrict, boolean isIndex, com.oracle.truffle.api.nodes.Node encapsulatingNode) -
invokeAccessorPropertySetter
protected static boolean invokeAccessorPropertySetter(PropertyDescriptor desc, JSDynamicObject thisObj, Object key, Object value, Object receiver, boolean isStrict, com.oracle.truffle.api.nodes.Node encapsulatingNode) -
getOwnProperty
Description copied from class:JSClass9.1.5 [[GetOwnProperty]] (P).- Specified by:
getOwnPropertyin classJSClass
-
ordinaryGetOwnProperty
9.1.5.1 OrdinaryGetOwnProperty (O, P). -
ordinaryGetOwnPropertyIntl
public static PropertyDescriptor ordinaryGetOwnPropertyIntl(JSDynamicObject thisObj, Object key, com.oracle.truffle.api.object.Property prop) -
setIntegrityLevelFast
-
testIntegrityLevelFast
-
preventExtensions
Description copied from class:JSClass9.1.4 [[PreventExtensions]] ().- Specified by:
preventExtensionsin classJSClass
-
ordinaryPreventExtensions
-
isExtensible
Description copied from class:JSClass9.1.3 [[IsExtensible]] ().- Specified by:
isExtensiblein classJSClass
-
ordinaryIsExtensible
-
getPrototypeOf
Description copied from class:JSClass9.1.1 [[GetPrototypeOf]] ().- Specified by:
getPrototypeOfin classJSClass
-
setPrototypeOf
Description copied from class:JSClass9.1.2 [[SetPrototypeOf]] (V).- Specified by:
setPrototypeOfin classJSClass
-
checkProtoCycle
-
putConstructorSpeciesGetter
-
createSymbolSpeciesGetterFunction
-
usesOrdinaryGetOwnProperty
public boolean usesOrdinaryGetOwnProperty()- Specified by:
usesOrdinaryGetOwnPropertyin classJSClass
-
usesOrdinaryIsExtensible
public final boolean usesOrdinaryIsExtensible()- Specified by:
usesOrdinaryIsExtensiblein classJSClass
-