bug 449494 - uniform handling of bytecodes with variable stack uses. r=mrbkap,brendan
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user