back out rev 3.160, it's buggy.

git-svn-id: svn://10.0.0.236/trunk@209423 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
brendan%mozilla.org 2006-09-08 05:18:36 +00:00
parent ec8c177ea4
commit cfc1d8ca26

View File

@ -780,7 +780,6 @@ DecompileSwitch(SprintStack *ss, TableEntry *table, uintN tableLength,
{
JSContext *cx;
JSPrinter *jp;
uintN top;
char *lval, *rval;
uintN i;
ptrdiff_t diff, off, off2, caseExprOff;
@ -790,9 +789,7 @@ DecompileSwitch(SprintStack *ss, TableEntry *table, uintN tableLength,
cx = ss->sprinter.context;
jp = ss->printer;
/* Don't pop the discriminant, the stack model requires it to be there. */
top = ss->top;
lval = OFF2STR(&ss->sprinter, ss->offsets[top-1]);
lval = OFF2STR(&ss->sprinter, PopOff(ss, JSOP_NOP));
js_printf(jp, "\tswitch (%s) {\n", lval);
if (tableLength) {
@ -879,10 +876,6 @@ DecompileSwitch(SprintStack *ss, TableEntry *table, uintN tableLength,
jp->indent -= 2;
}
js_printf(jp, "\t}\n");
/* Now that we are done, pop the discriminant. */
JS_ASSERT(ss->top == top);
ss->top = top - 1;
return JS_TRUE;
}