Branch: Tag:

2012-06-22

2012-06-22 09:12:23 by Per Hedbor <ph@opera.com>

[compiler] Added ADD_LOCAL_INT to complement ADD_LOCAL_INT_AND_POP.

Also, do quick return for return UNDEFINED.

80:   LOCAL_LVALUE CONST1 ADD_TO_AND_POP: ADD_LOCAL_INT_AND_POP($1a,1)   LOCAL_LVALUE CONST0 ADD_TO_AND_POP:    + LOCAL_LVALUE LTOSVAL ADD_INT ASSIGN: ADD_LOCAL_INT($1a,$3a) + LOCAL_LVALUE LTOSVAL ADD_NEG_INT ASSIGN: ADD_LOCAL_INT($1a,-$3a) +    NUMBER ASSIGN_LOCAL_AND_POP : ASSIGN_LOCAL_NUMBER_AND_POP($2a,$1a)   CONST0 ASSIGN_LOCAL_AND_POP : CLEAR_LOCAL($2a)   CONST1 ASSIGN_LOCAL_AND_POP : ASSIGN_LOCAL_NUMBER_AND_POP($2a,1)
402:   //   // These are functions returning a constant, and doing nothing else.   MARK_AT(0) POP_TO_MARK INIT_FRAME RETURN_0 : RETURN_0 + MARK_AT(0) POP_TO_MARK INIT_FRAME UNDEFINED RETURN : UNDEFINED RETURN   MARK_AT(0) POP_TO_MARK INIT_FRAME RETURN_1 : RETURN_1   MARK_AT(0) POP_TO_MARK INIT_FRAME NUMBER RETURN : NUMBER($4a) RETURN   MARK_AT(0) POP_TO_MARK INIT_FRAME STRING RETURN : STRING($4a) RETURN