Fix goof in switching from word to jsval counters.

This commit is contained in:
Brendan Eich 2008-05-28 20:16:15 -07:00
parent 067121104e
commit 3996420eda

View File

@ -2803,8 +2803,13 @@ JS_INTERPRET(JSContext *cx)
BEGIN_CASE(JSOP_HEADER) BEGIN_CASE(JSOP_HEADER)
i = GET_UINT8(regs.pc); i = GET_UINT8(regs.pc);
vp = &fp->spbase[-1 - i]; vp = &fp->spbase[-1 - i];
JS_ASSERT(JSVAL_IS_INT(*vp)); lval = *vp;
*vp += 2; if (JSVAL_IS_NULL(lval)) {
*vp = JSVAL_ONE;
} else {
JS_ASSERT(JSVAL_IS_INT(lval));
*vp = lval + 2;
}
END_CASE(JSOP_HEADER) END_CASE(JSOP_HEADER)
/* ADD_EMPTY_CASE is not used here as JSOP_LINENO_LENGTH == 3. */ /* ADD_EMPTY_CASE is not used here as JSOP_LINENO_LENGTH == 3. */