Instrument loop headers with jsvals above fp->vars and below fp->spbase.

This commit is contained in:
Brendan Eich
2008-05-28 19:07:32 -07:00
parent e203151242
commit 2f4182d585
13 changed files with 130 additions and 38 deletions

View File

@@ -287,10 +287,6 @@ js_Disassemble1(JSContext *cx, JSScript *script, jsbytecode *pc,
i = (jsint)GET_UINT16(pc);
goto print_int;
case JOF_2BYTE:
fprintf(fp, " %u", (uintN)pc[1]);
break;
case JOF_TABLESWITCH:
case JOF_TABLESWITCHX:
{
@@ -380,6 +376,11 @@ js_Disassemble1(JSContext *cx, JSScript *script, jsbytecode *pc,
i = GET_INT8(pc);
goto print_int;
case JOF_UINT8:
JS_ASSERT(op == JSOP_HEADER);
i = GET_UINT8(pc);
goto print_int;
case JOF_INT32:
JS_ASSERT(op == JSOP_INT32);
i = GET_INT32(pc);