Search completed in 1.47 seconds.
32 results for "JSObjectOps":
Your results are loading. Please wait...
JSObjectOps.dropProperty
jsobjectops is not a supported api.
... the jsobjectops.dropproperty callback releases a jsproperty.
... syntax typedef void (*jspropertyrefop)(jscontext *cx, jsobject *obj, jsproperty *prop); name type description cx jscontext * a context that was the cx argument to an earlier call to jsobjectops.lookupproperty that found a property.
...And 9 more matches
JSObjectOps.newObjectMap
jsobjectops is not a supported api.
... the jsobjectops.newobjectmap callback is called whenever a new object is created.
... syntax typedef jsobjectmap * (*jsnewobjectmapop)(jscontext *cx, jsrefcount nrefs, jsobjectops *ops, jsclass *clasp, jsobject *obj); name type description cx jscontext * pointer to the js context in which the new object is being created.
...And 4 more matches
JSObjectOps.defaultValue
jsobjectops is not a supported api.
... the javascript engine calls the jsobjectops.defaultvalue and jsclass.convert callbacks to convert objects to primitive values.
... description the jsobjectops.defaultvalue callback corresponds to the [[defaultvalue]] method defined in ecma 262-3 §8.6.2.6.
...provide a custom jsobjectops.defaultvalue callback to implement customized [[defaultvalue]] behavior.
JSObjectOps.getAttributes
jsobjectops is not a supported api.
... the jsobjectops.getattributes and setattributes callbacks are called to access the attributes of a property.
...if prop is non-null, it must come from the *propp out parameter of a prior jsobjectops.defineproperty or jsobjectops.lookupproperty call.
JSObjectOps.lookupProperty
jsobjectops is not a supported api.
... the jsobjectops.lookupproperty callback is called for every property access (except when a higher-level callback, such as jsobjectops.getproperty, is overloaded in a way that does not call lookupproperty).
...in any case, a non-null *propp result after a successful lookup must be dropped via jsobjectops.dropproperty.
JSObjectOps.setProto
jsobjectops is not a supported api.
... the jsobjectops.setproto and setparent callbacks implement the js_setprototype and js_setparent functions.
... slot uint32 the index of the slot being modified: jsslot_proto for the jsobjectops.setproto callback, and jsslot_parent for the jsobjectops.setparent callback.
JSObjectOps.defineProperty
jsobjectops is not a supported api.
... the jsobjectops.defineproperty callback is called whenever an object property is defined.
JSObjectOps.destroyObjectMap
jsobjectops is not a supported api.
... the jsobjectops.destroyobjectmap callback is called to destroy a jsobjectmap when its reference count goes to zero.
JSObjectOps.enumerate
jsobjectops is not a supported api.
... the jsobjectops.enumerate callback implements iteration over object properties.
JSObjectOps.getProperty
jsobjectops is not a supported api.
... jsobjectops.getproperty, setproperty, and deleteproperty are high-level callbacks that implement object property accesses.
JSObjectOps.getRequiredSlot
jsobjectops is not a supported api.
... the jsobjectops.getrequiredslot and setrequiredslot callbacks get and set a required slot—one that should already have been allocated.
Index
111 jsgetobjectops jsapi reference, obsolete, spidermonkey jsobjectops is used by js_newobject's internals to discover the set of high-level object operations to use for new objects of the given class.
...in contrast, all native and host objects have a jsobjectmap at obj->map, which may be shared among a number of objects, and which contains the jsobjectops *ops pointer used to dispatch object operations from api calls.
... 128 jsobject jsapi reference, spidermonkey objects are made up of the following parts: 129 jsobjectop jsapi reference, obsolete, spidermonkey the callbacks of this type are: 130 jsobjectops.defaultvalue jsapi reference, obsolete, spidermonkey the jsobjectops.defaultvalue callback corresponds to the [[defaultvalue]] method defined in ecma 262-3 §8.6.2.6.
...And 11 more matches
JSGetObjectOps
jsgetobjectops is the type for jsclass.getobjectops callback syntax typedef jsobjectops * (* jsgetobjectops)(jscontext *cx, jsclass *clasp); name type description cx jscontext * the js context in which the new object is being created.
... description jsobjectops is used by js_newobject's internals to discover the set of high-level object operations to use for new objects of the given class.
...in contrast, all native and host objects have a jsobjectmap at obj->map, which may be shared among a number of objects, and which contains the jsobjectops *ops pointer used to dispatch object operations from api calls.
...And 4 more matches
JSAPI reference
struct jsfunctionspec struct jspropertyspec js_initclass js_linkconstructorandprototype added in spidermonkey 17 js::propertyspecnameissymbol added in spidermonkey 38 js::propertyspecnameequalsid added in spidermonkey 38 js::propertyspecnametopermanentid added in spidermonkey 38 js_getreservedslot js_setreservedslot struct jsextendedclass obsolete since javascript 1.8.5 struct jsobjectops obsolete since javascript 1.8.5 struct jsxmlobjectops obsolete since javascript 1.8.5 struct jsproperty obsolete since jsapi 16 adding native properties and methods to classes: jsnative struct jsfunctionspec js_fs added in spidermonkey 1.8 js_fn added in spidermonkey 1.8 js_sym_fn added in spidermonkey 38 js_fninfo added in spidermonkey 17 js_self_hosted_fn added in spidermonkey 31 ...
... jsiteratorop obsolete since jsapi 26 jsequalityop obsolete since javascript 1.8.5 jsobjectop obsolete since javascript 1.8.5 jsobjectops method types: in js 1.8.5, jsobjectops has been made private.
... jsnewobjectmapop obsolete since javascript 1.8.5 jsobjectmapop obsolete since javascript 1.8.5 jslookuppropop obsolete since javascript 1.8.5 jsdefinepropop obsolete since javascript 1.8.5 jspropertyidop obsolete since javascript 1.8.5 jsattributesop obsolete since javascript 1.8.5 jsobjectops.defaultvalue obsolete since javascript 1.8.5 jscheckaccessidop obsolete since javascript 1.8.5 jsobjectop obsolete since javascript 1.8.5 jspropertyrefop obsolete since javascript 1.8.5 jssetobjectslotop obsolete since javascript 1.8.5 jsgetrequiredslotop obsolete since javascript 1.8.5 jssetrequiredslotop obsolete since javascript 1.8.5 jsxmlobjectops method types: in js 1.8.5, jsxmlobjectops has been made private.
...tructuredclonecallbacks js_readstructuredclone js_writestructuredclone js_structuredclone js_readuint32pair js_readbytes js_writeuint32pair js_writebytes security struct jsprincipals js_setobjectprincipalsfinder obsolete since javascript 1.8 js_setprincipalstranscoder obsolete since javascript 1.8 enum jsaccessmode obsolete since jsapi 29 js_checkaccess obsolete since jsapi 29 jsobjectops.checkaccess obsolete since javascript 1.8 jsclass.checkaccess obsolete since jsapi 29 js_setcheckobjectaccesscallback obsolete since javascript 1.8 added in spidermonkey 1.8.1 security callbacks are set per-runtime.
JSProperty
the type of javascript object properties, used by the jsobjectops layer.
...it is used internally in jsobjectops.lookupproperty, getattributes, setattributes, and dropproperty.
JS_GetProperty
if the property is found on a non-native object, get handler of proxy (only if the object is a proxy) or its jsobjectops.getproperty method is called.
... internally, property retrieval, including all the behavior described above, is implemented by obj's jsobjectops.getproperty callback.
Invariants
the locking scheme is described under jsobjectops.dropproperty.
Property cache
shape native objects have a shape, a 24-bit unsigned integer such that: basic layout guarantee — if at time t0 the object x has shape s and at time t1 the object y has shape s, and no shape-regenerating gc occurred, then y at t1 has the same jsclass, jsobjectops, prototype, and property specs as x had at t0.
JSObject
every object is associated with a jsclass and a jsobjectops.
JSObjectOp
typedef jsobject * (*jsobjectop)(jscontext *cx, jsobject *obj); the callbacks of this type are: jsextendedclass.outerobject jsextendedclass.innerobject jsextendedclass.wrappedobject jsobjectops.thisobject ...
JSObjectPrincipalsFinder
since it is very common for jsobjectops.checkaccess or jsclass.checkaccess hooks to call these functions, the object principals finder callback is a key security feature.
JS_AlreadyHasOwnProperty
this calls the jsobjectops.lookupproperty hook.
JS_CheckAccess
if obj has custom jsobjectops, the access check is delegated to the jsobjectops.checkaccess callback.
JS_DeleteProperty
there is no longer any way to get this behavior.) internally, property deletion is implemented by the jsobjectops.deleteproperty callback.
JS_DeleteProperty2
jsobjectops.deleteproperty implements this behavior.
JS_LookupProperty
internally, property lookups are implemented by the jsobjectops.lookupproperty callback.
JS_SetProperty
internally, property assignment, including all the behavior described above, is implemented by obj's jsobjectops.setproperty callback.
JS_ValueToFunction
the object's jsobjectops.defaultvalue method is called with hint=jstype_function.) js_valuetofunction returns a pointer to the converted function.
JS_ValueToNumber
(this behavior is implemented by v's jsobjectops.defaultvalue hook, so host objects can override it all.) first, the object's jsclass.convert callback is called.
JS_ValueToObject
(implementation note: the object's jsobjectops.defaultvalue method is called with hint=jstype_object.) the resulting object is subject to garbage collection unless the variable *objp is protected by a local root scope, an object property, or the js_addroot function.
JS_ValueToString
(this behavior is implemented by v's jsobjectops.defaultvalue method, so host objects can override it all.) if v.tostring() is a function, it is called.
Stored value
properties of objects that have custom jsobjectops do not have a stored value.