Add a resume point (JSOP_RESUME) immediately following JSOP_CALL (457789, r=mrbkap).

This commit is contained in:
Andreas Gal
2008-09-29 18:49:40 -07:00
parent f43b240283
commit e2f74ec2f4
5 changed files with 31 additions and 10 deletions

View File

@@ -1160,8 +1160,9 @@ js_ComputeFilename(JSContext *cx, JSStackFrame *caller,
}
if (caller->regs && *caller->regs->pc == JSOP_EVAL) {
JS_ASSERT(caller->regs->pc[JSOP_EVAL_LENGTH] == JSOP_LINENO);
*linenop = GET_UINT16(caller->regs->pc + JSOP_EVAL_LENGTH);
JS_ASSERT(caller->regs->pc[JSOP_EVAL_LENGTH] == JSOP_RESUME);
JS_ASSERT(caller->regs->pc[JSOP_EVAL_LENGTH + JSOP_RESUME_LENGTH] == JSOP_LINENO);
*linenop = GET_UINT16(caller->regs->pc + JSOP_EVAL_LENGTH + JSOP_RESUME_LENGTH);
} else {
*linenop = js_PCToLineNumber(cx, caller->script,
caller->regs ? caller->regs->pc : NULL);