Search completed in 0.91 seconds.
12 results for "JSCompartment":
JS_SetCompartmentNameCallback
syntax void js_setcompartmentnamecallback(jsruntime *rt,
jscompartmentnamecallback callback); name type description cx jsruntime * the runtime to set the callback function.
... callback
jscompartmentnamecallback callback function which will be called to name each compartment (see below).
... callback function typedef void (*
jscompartmentnamecallback)(jsruntime *rt,
jscompartment *compartment, char *buf, size_t bufsize); name type description cx jsruntime * the runtime of the compartments.
...And 4 more matches
SpiderMonkey Internals: Thread Safety
each runtime has one or more
jscompartments.
... the
jscompartment is the universe in which js objects live.
... they can't travel to other
jscompartments.
...objects may be shared among jscontexts within a
jscompartment.
JS_GetCompartmentPrivate
syntax void js_setcompartmentprivate(
jscompartment *compartment, void *data); void * js_getcompartmentprivate(
jscompartment *compartment); name type description compartment
jscompartment * any compartment data void * (in js_setcompartmentprivate) pointer to application-defined data to be associated with the compartment.
... description each
jscompartment has a field of type void * which the application may use for any purpose.
JS_GetGlobalForCompartmentOrNull
syntax jsobject * js_getglobalforcompartmentornull(jscontext *cx,
jscompartment *c); name type description cx jscontext * the context for which to return the global object.
... c
jscompartment * the compartment for which to return the global object.
JS_IterateCompartments
callback function typedef void (*jsiteratecompartmentcallback)(jsruntime *rt, void *data,
jscompartment *compartment); name type description cx jsruntime * the runtime of the compartments.
... compartmentcallback
jscompartment * the pointer to the compartment.
JS_LeaveCompartment
syntax void js_leavecompartment(jscontext *cx,
jscompartment *oldcompartment); name type description cx jscontext * the context in which to leave the compartment.
... oldcompartment
jscompartment * value returned by previous call to js_entercompartment.
JS_SetDestroyCompartmentCallback
callback function typedef void (* jsdestroycompartmentcallback)(jsfreeop *fop,
jscompartment *compartment); name type description cx jsruntime * the runtime of the compartments.
... compartmentcallback
jscompartment * the pointer to the compartment which is to be destroyed.
JS_SetVersionForCompartment
this article covers features introduced in spidermonkey 31 configure a
jscompartment to use a specific version of the javascript language.
... syntax void js_setversionforcompartment(
jscompartment *compartment, jsversion version); name type description compartment
jscompartment * pointer to a js compartment.
Index
if the runtime has no
jscompartmentnamecallback, a compartment will be named "<unknown>"</unknown>.
JS_EnterCompartment
syntax
jscompartment * js_entercompartment(jscontext *cx, jsobject *target); name type description cx jscontext * the context on which a cross-compartment call is needed.
JS_NewGlobalObject
hookoption js::onnewglobalhookoption see debugger api hook added in spidermonkey 31 options const js::compartmentoptions & the option for new compartment (passed to
jscompartment constructor).
JSAPI reference
es native function types: jsnative jsfastnative obsolete since javascript 1.8.5 other callback types: js::largeallocationfailurecallback - used by js::setlargeallocationfailurecallback added in spidermonkey 31 js::offthreadcompilecallback - used by js::compileoffthread added in spidermonkey 26 js::setoutofmemorycallback - used by js::outofmemorycallback added in spidermonkey 31
jscompartmentnamecallback - used by js_setcompartmentnamecallback added in spidermonkey 17 jscontextcallback - used by js_setcontextcallback jsdestroycompartmentcallback - used by js_setdestroycompartmentcallback added in spidermonkey 17 jsenumeratediagnosticmemorycallback - used by js_enumeratediagnosticmemoryregions added in spidermonkey 17 jserrorcallback - used by js_reporterrornumber and fri...