Support generator expressions for JS1.8 (380237, r=mrbkap).

This commit is contained in:
2007-05-17 18:41:17 -07:00
parent c9693fbd36
commit 8dc87a0d75
9 changed files with 675 additions and 264 deletions

View File

@@ -110,6 +110,9 @@ typedef enum JSOpLength {
#define JOF_DECLARING 0x20000 /* var, const, or function declaration op */
#define JOF_ATOMBASE 0x40000 /* atom segment base setting prefix op */
#define JOF_CALLOP 0x80000 /* call operation pushing function and this */
#define JOF_PARENHEAD 0x100000 /* opcode consumes value of expression in
parenthesized statement head */
#define JOF_INVOKE 0x200000 /* JSOP_CALL, JSOP_NEW, JSOP_EVAL */
#define JOF_TYPE_IS_EXTENDED_JUMP(t) \
((unsigned)((t) - JOF_JUMPX) <= (unsigned)(JOF_LOOKUPSWITCHX - JOF_JUMPX))