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:
Steve Fink
2011-05-10 11:26:39 -07:00
parent 980d62cf21
commit 0dd59833c2
11 changed files with 136 additions and 129 deletions

View File

@@ -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