bug 449494 - uniform handling of bytecodes with variable stack uses. r=mrbkap,brendan

This commit is contained in:
Igor Bukanov
2008-09-02 08:25:15 +02:00
parent 5899982681
commit 4be80b5c95
5 changed files with 86 additions and 151 deletions

View File

@@ -340,6 +340,13 @@ js_GetIndexFromBytecode(JSContext *cx, JSScript *script, jsbytecode *pc,
extern uintN
js_GetVariableBytecodeLength(jsbytecode *pc);
/*
* Find the number of stack slots used by a variadic opcode such as JSOP_CALL
* or JSOP_NEWARRAY (for such ops, JSCodeSpec.nuses is -1).
*/
extern uintN
js_GetVariableStackUseLength(JSOp op, jsbytecode *pc);
#ifdef DEBUG
/*
* Disassemblers, for debugging only.