Search completed in 1.35 seconds.
5 results for "jsobjectmap":
JSObjectOps.newObjectMap
ged since it could be removed at any time. Try to avoid using it. Warning! JSObjectOps is not a supported API. Details of the API may change from one release to the next. This documentation should be considered SpiderMonkey internals documentation, not API documentation. See bug 408416 for details. The JSObjectOps.newObjectMap callback is called whenever a new object is created. It creates a
JSObjectMap that completely controls the new object's behavior. 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. nrefs jsrefcount The initial reference count for the new...
...that completely controls the new object's behavior. 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. nrefs jsrefcount The initial reference count for the new
JSObjectMap. ops JSObjectOps * The ops for the new
JSObjectMap. clasp JSClass * The JSClass of the new object. obj JSObject * The new object. Description Note: The JSAPI does not expose the data structure that would be necessary to develop new
JSObjectMap subclasses. An application that implements JSObjectOps must therefore either implement the newObjectM...
...he JSAPI does not expose the data structure that would be necessary to develop new
JSObjectMap subclasses. An application that implements JSObjectOps must therefore either implement the newObjectMap by including the non-public header jsobj.h, or obtain the default NewObjectMapOp by calling the JSClass.getObjectOps callback of a standard JSClass. Create a new instance of (a concrete subclass of)
JSObjectMap (see jsobj.h), with the nrefs and ops members initialized from the same-named parameters, and with the nslots and freeslot members initialized according to ops and clasp. Return null on error, non-null on success.
JSObjectMaps are reference-counted by generic code in the engine. Usually, the nrefs parameter to JSObjectOps.newObjectMap will be 1, to count the ref returned to the caller on success...
Index
assign them to an object. 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. All native objects have a JSClass, which is stored as a private (int-tagged) pointer in object slots. 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. 112 JSHasInstanceOp JSAPI Reference, Reference, Reference(2), SpiderMonkey JSHasInstanceOp is called to check whether v is an instance of obj. Return false on error or exception, true on success with true in *bp if v is...
...UE on success. On success, return null in *propp if id was not found. If id was found, return the first object searching from obj along its prototype chain in which id names a direct property in *objp, and return a non-null, opaque property pointer in *propp. 139 JSObjectOps.newObjectMap JSAPI Reference, Obsolete, SpiderMonkey Create a new instance of (a concrete subclass of)
JSObjectMap (see jsobj.h), with the nrefs and ops members initialized from the same-named parameters, and with the nslots and freeslot members initialized according to ops and clasp. Return null on error, non-null on success. 140 JSObjectOps.setProto JSAPI Reference, Obsolete, SpiderMonkey These hooks must check for cycles without deadlocking, and otherwise take special steps. See js_Set...
JSGetObjectOps
e new object is being created. cls JSClass * The class of the new object. 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. All native objects have a JSClass, which is stored as a private (int-tagged) pointer in object slots. 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. Thus JSClass (which pre-dates JSObjectOps in the API) provides a low-level interface to class-specific code and data, while JSObjectOps allows for a higher level of operation, which does not use the object's class except to find the class's...
JSObjectOps.destroyObjectMap
e browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Warning! JSObjectOps is not a supported API. Details of the API may change from one release to the next. This documentation should be considered SpiderMonkey internals documentation, not API documentation. See bug 408416 for details. The JSObjectOps.destroyObjectMap callback is called to destroy a
JSObjectMap when its reference count goes to zero. Syntax typedef void (*
JSObjectMapOp)(JSContext *cx,
JSObjectMap *map); Name Type Description cx JSContext * Pointer to the JS context in which garbage collection is happening. map
JSObjectMap * The map to destroy. ...
JSAPI reference
lete since JSAPI 15 JS_ResolveStub Obsolete since JSAPI 37 JSExtendedClass method types: In JS 1.8.5, JSExtendedClass has made private. 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. ...