Fixed decompiler assertion related to JSOP_TRACE (bug 522624, r=brendan).

This commit is contained in:
David Anderson 2009-10-23 14:28:35 -07:00
parent eed5fefef2
commit e40deebae7

View File

@ -4981,7 +4981,8 @@ js_DecompileFunction(JSPrinter *jp)
#if JS_HAS_DESTRUCTURING
/* Skip trace hint if it appears here. */
if (js_GetOpcode(jp->sprinter.context, fun->u.i.script, pc) == JSOP_TRACE) {
JSOp op = js_GetOpcode(jp->sprinter.context, fun->u.i.script, pc);
if (op == JSOP_TRACE || op == JSOP_NOP) {
JS_STATIC_ASSERT(JSOP_TRACE_LENGTH == JSOP_NOP_LENGTH);
pc += JSOP_TRACE_LENGTH;
}