Bug 482743: Compute opcode stack usage correctly. r=igor

This commit is contained in:
Jim Blandy 2009-04-01 11:02:52 -07:00
parent 02252a653d
commit b34fbbe457

View File

@ -2105,7 +2105,7 @@ js_TraceOpcode(JSContext *cx)
regs->pc - fp->script->code,
JS_FALSE, tracefp);
op = (JSOp) *regs->pc;
nuses = js_CodeSpec[op].nuses;
nuses = js_GetStackUses(&js_CodeSpec[op], op, regs->pc);
if (nuses != 0) {
for (n = -nuses; n < 0; n++) {
char *bytes = js_DecompileValueGenerator(cx, n, regs->sp[n],