[INFER] Watch for bytecodes with no fallthrough when rejoining the interpreter, bug 675921.

This commit is contained in:
Brian Hackett 2011-08-02 08:39:33 -07:00
parent c2590db376
commit f08e4126fa

View File

@ -1263,7 +1263,7 @@ js_InternalInterpret(void *returnData, void *returnType, void *returnReg, js::VM
jsbytecode *nextpc = pc + analyze::GetBytecodeLength(pc);
Value *nextsp = NULL;
if (nextpc != script->code + script->length)
if (nextpc != script->code + script->length && analysis->maybeCode(nextpc))
nextsp = fp->base() + analysis->getCode(nextpc).stackDepth;
JS_ASSERT(&cx->regs() == &f.regs);