Export js_ReconstructStackDepth for use by side-exit code when synthesizing stack frames.

This commit is contained in:
Brendan Eich
2008-07-28 23:46:27 -07:00
parent 3e5963327b
commit d887639d7d
2 changed files with 26 additions and 7 deletions

View File

@@ -387,6 +387,13 @@ js_DecompileValueGenerator(JSContext *cx, intN spindex, jsval v,
#define JSDVG_IGNORE_STACK 0
#define JSDVG_SEARCH_STACK 1
/*
* Given bytecode address pc in script's main program code, return the operand
* stack depth just before (JSOp) *pc executes.
*/
extern uintN
js_ReconstructStackDepth(JSContext *cx, JSScript *script, jsbytecode *pc);
JS_END_EXTERN_C
#endif /* jsopcode_h___ */