Bug 674776 - Fix trap problem in js_GetOpcode (r=jorendorff)

This commit is contained in:
Bill McCloskey
2011-09-20 14:47:04 -07:00
parent 36db7a88c5
commit 1080105138
4 changed files with 70014 additions and 12 deletions

View File

@@ -224,7 +224,8 @@ typedef enum JSOp {
#define GET_INDEX(pc) GET_UINT16(pc)
#define SET_INDEX(pc,i) ((pc)[1] = INDEX_HI(i), (pc)[2] = INDEX_LO(i))
#define GET_INDEXBASE(pc) (JS_ASSERT(*(pc) == JSOP_INDEXBASE), \
#define GET_INDEXBASE(pc) (JS_ASSERT(*(pc) == JSOP_INDEXBASE \
|| *(pc) == JSOP_TRAP), \
((uintN)((pc)[1])) << 16)
#define INDEXBASE_LEN 1