Bug 637393 - Add an option to count number of executions of each JSOp, broken down by "run mode" (method JIT/trace JIT/interpreter)
This commit is contained in:
@@ -522,20 +522,17 @@ CallResultEscapes(jsbytecode *pc);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
#if defined(DEBUG) && defined(__cplusplus)
|
||||
/*
|
||||
* Disassemblers, for debugging only.
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#ifdef __cplusplus
|
||||
extern JS_FRIEND_API(JSBool)
|
||||
js_Disassemble(JSContext *cx, JSScript *script, JSBool lines, js::Sprinter *sp, int *counts = NULL);
|
||||
js_Disassemble(JSContext *cx, JSScript *script, JSBool lines, js::Sprinter *sp);
|
||||
|
||||
extern JS_FRIEND_API(uintN)
|
||||
js_Disassemble1(JSContext *cx, JSScript *script, jsbytecode *pc, uintN loc,
|
||||
JSBool lines, js::Sprinter *sp, int *counts = NULL);
|
||||
JSBool lines, js::Sprinter *sp);
|
||||
#endif
|
||||
#endif /* DEBUG */
|
||||
|
||||
/*
|
||||
* Given bytecode address pc in script's main program code, return the operand
|
||||
|
||||
Reference in New Issue
Block a user