Bug 916612 - rm some unused JOF_* bits (r=wingo)

--HG--
extra : rebase_source : 6155e21575185241e792757abb13efceb3da4396
This commit is contained in:
Luke Wagner 2014-01-16 10:23:19 -06:00
parent d96baf20ea
commit d08877c482
2 changed files with 2 additions and 19 deletions

View File

@ -1025,26 +1025,9 @@ js_Disassemble1(JSContext *cx, HandleScript script, jsbytecode *pc,
Sprint(sp, " %u", GET_SLOTNO(pc));
break;
case JOF_SLOTOBJECT: {
Sprint(sp, " %u", GET_SLOTNO(pc));
JSObject *obj = script->getObject(GET_UINT32_INDEX(pc + SLOTNO_LEN));
JSAutoByteString bytes;
RootedValue v(cx, ObjectValue(*obj));
if (!ToDisassemblySource(cx, v, &bytes))
return 0;
Sprint(sp, " %s", bytes.ptr());
break;
}
{
int i;
case JOF_UINT16PAIR:
i = (int)GET_UINT16(pc);
Sprint(sp, " %d", i);
pc += UINT16_LEN;
/* FALL THROUGH */
case JOF_UINT16:
i = (int)GET_UINT16(pc);
goto print_int;

View File

@ -55,11 +55,11 @@ typedef enum JSOp {
atom index */
#define JOF_INT32 14 /* int32_t immediate operand */
#define JOF_OBJECT 15 /* unsigned 16-bit object index */
#define JOF_SLOTOBJECT 16 /* uint16_t slot index + object index */
/* 16 is unused */
#define JOF_REGEXP 17 /* unsigned 32-bit regexp index */
#define JOF_INT8 18 /* int8_t immediate operand */
#define JOF_ATOMOBJECT 19 /* uint16_t constant index + object index */
#define JOF_UINT16PAIR 20 /* pair of uint16_t immediates */
/* 20 is unused */
#define JOF_SCOPECOORD 21 /* pair of uint16_t immediates followed by block index */
#define JOF_TYPEMASK 0x001f /* mask for above immediate types */