Class JSObjectPrototype
java.lang.Object
com.oracle.truffle.js.runtime.builtins.JSClass
com.oracle.truffle.js.runtime.builtins.JSNonProxy
com.oracle.truffle.js.runtime.builtins.JSObjectPrototype
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JSBuiltinsContainerstatic final com.oracle.truffle.api.strings.TruffleStringstatic final JSObjectPrototypeFields inherited from class com.oracle.truffle.js.runtime.builtins.JSNonProxy
GET_SYMBOL_SPECIES_NAME -
Method Summary
Modifier and TypeMethodDescriptionstatic JSObjectPrototypeObjectcreate(com.oracle.truffle.api.object.Shape shape) static JSObjectPrototypeObjectbooleandefineOwnProperty(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).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).booleanhasOnlyShapeProperties(JSDynamicObject thisObj) booleanhasOwnProperty(JSDynamicObject thisObj, long index) booleanhasOwnProperty(JSDynamicObject thisObj, Object key) static booleanbooleanset(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).booleansetPrototypeOf(JSDynamicObject thisObj, JSDynamicObject newPrototype) 9.4.7.2 SetImmutablePrototype ( O, V ).booleanMethods inherited from class com.oracle.truffle.js.runtime.builtins.JSNonProxy
checkProtoCycle, createSymbolSpeciesGetterFunction, deletePropertyDefault, getHelper, getHelper, getMethodHelper, getPrototypeOf, hasProperty, hasProperty, invokeAccessorPropertySetter, isExtensible, ordinaryGetOwnProperty, ordinaryGetOwnPropertyIntl, ordinaryIsExtensible, ordinaryOwnPropertyKeys, ordinaryOwnPropertyKeys, ordinaryOwnPropertyKeysSlow, ordinaryPreventExtensions, ordinarySet, ordinarySetIndex, ordinarySetWithReceiver, performOrdinarySetWithOwnDescriptor, preventExtensions, putConstructorSpeciesGetter, setIntegrityLevelFast, setPropertySlow, 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 -
INSTANCE
-
BUILTINS
-
-
Method Details
-
create
-
isJSObjectPrototype
-
hasOwnProperty
- Overrides:
hasOwnPropertyin classJSNonProxy
-
hasOwnProperty
- Overrides:
hasOwnPropertyin classJSNonProxy
-
getOwnHelper
public Object getOwnHelper(JSDynamicObject store, Object thisObj, 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
-
getOwnHelper
public Object getOwnHelper(JSDynamicObject store, Object thisObj, 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
-
delete
-
delete
- Overrides:
deletein classJSNonProxy
-
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
-
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.- Overrides:
hasOnlyShapePropertiesin classJSNonProxy
-
getOwnProperty
Description copied from class:JSClass9.1.5 [[GetOwnProperty]] (P).- Overrides:
getOwnPropertyin classJSNonProxy
-
usesOrdinaryGetOwnProperty
public boolean usesOrdinaryGetOwnProperty()- Overrides:
usesOrdinaryGetOwnPropertyin classJSNonProxy
-
setPrototypeOf
9.4.7.2 SetImmutablePrototype ( O, V ).- Overrides:
setPrototypeOfin 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
-
defineOwnProperty
public boolean defineOwnProperty(JSDynamicObject thisObj, Object key, PropertyDescriptor desc, boolean doThrow) Description copied from class:JSClass9.1.6 [[DefineOwnProperty]] (P, Desc).- Overrides:
defineOwnPropertyin classJSNonProxy
-
create
-