Fix JOF_XMLNAME, etc., interrogation to mask the mode bits and compare (381504, r=mrbkap).

This commit is contained in:
2007-05-22 23:04:18 -07:00
parent 85609df465
commit 0952a2cdb6
3 changed files with 15 additions and 12 deletions

View File

@@ -114,6 +114,10 @@ typedef enum JSOpLength {
parenthesized statement head */
#define JOF_INVOKE 0x200000 /* JSOP_CALL, JSOP_NEW, JSOP_EVAL */
/* Shorthands for mode from format and mode from opcode. */
#define JOF_MODE(fmt) ((fmt) & JOF_MODEMASK)
#define JOF_OPMODE(op) JOF_MODE(js_CodeSpec[op].format)
#define JOF_TYPE_IS_EXTENDED_JUMP(t) \
((unsigned)((t) - JOF_JUMPX) <= (unsigned)(JOF_LOOKUPSWITCHX - JOF_JUMPX))