Add a resume point (JSOP_RESUME) immediately following JSOP_CALL (457789, r=mrbkap).
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user