mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-19 09:30:44 +00:00
Bug 785493, part 1 - add JS_CALL_SCRIPT_TRACER. r=billm
This commit is contained in:
parent
9b0fdc6323
commit
5df82df522
@ -3862,6 +3862,13 @@ JS_CallTracer(JSTracer *trc, void *thing, JSGCTraceKind kind);
|
||||
JS_CALL_TRACER((trc), str_, JSTRACE_STRING, name); \
|
||||
JS_END_MACRO
|
||||
|
||||
#define JS_CALL_SCRIPT_TRACER(trc, script, name) \
|
||||
JS_BEGIN_MACRO \
|
||||
JSScript *script_ = (script); \
|
||||
JS_ASSERT(script_); \
|
||||
JS_CALL_TRACER((trc), script_, JSTRACE_SCRIPT, name); \
|
||||
JS_END_MACRO
|
||||
|
||||
/*
|
||||
* API for JSTraceCallback implementations.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user