Branch: Tag:

2000-05-01

2000-05-01 03:33:47 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

more optimizations (fairly minor)

Rev: src/docode.c:1.72
Rev: src/interpret_functions.h:1.20
Rev: src/language.yacc:1.183
Rev: src/operators.c:1.92
Rev: src/peep.in:1.36

1:   // - // $Id: peep.in,v 1.35 2000/05/01 02:11:25 hubbe Exp $ + // $Id: peep.in,v 1.36 2000/05/01 03:33:47 hubbe Exp $   //      NOP :
30:   NEG_NUMBER NEGATE : NUMBER ($1a)   NEGATE NEGATE :   COMPL COMPL : - NEGATE CONST_1 ADD : COMPL + NEGATE CONST_1 ADD_INTS : COMPL   NEGATE CONST1 SUBTRACT : COMPL   CONST0 ASSIGN_LOCAL_AND_POP : CLEAR_LOCAL($2a)   
183:   BRANCH_WHEN_GT BRANCH LABEL ($1a) : BRANCH_WHEN_LE($2a) LABEL($1a)       + CONST0 ADD_INTS: ADD_INT (0) + CONST1 ADD_INTS: ADD_INT (1) + CONST_1 ADD_INTS: ADD_NEG_INT (1) + NUMBER [$1a >= 0] ADD_INTS : ADD_INT ($1a) + NUMBER [$1a < 0] ADD_INTS : ADD_NEG_INT (-$1a) +    CONST0 ADD: ADD_INT (0)   CONST1 ADD: ADD_INT (1)   CONST_1 ADD: ADD_NEG_INT (1)
198:   LTOSVAL2 ADD ASSIGN_AND_POP : ADD_TO_AND_POP   LTOSVAL ADD ASSIGN_AND_POP : ADD_TO_AND_POP    + LTOSVAL2 ADD_INTS ASSIGN_AND_POP : ADD_TO_AND_POP + LTOSVAL ADD_INTS ASSIGN_AND_POP : ADD_TO_AND_POP +  + LTOSVAL2 ADD_FLOATS ASSIGN_AND_POP : ADD_TO_AND_POP + LTOSVAL ADD_FLOATS ASSIGN_AND_POP : ADD_TO_AND_POP +  + LOCAL CONST1 ADD_TO_AND_POP : INC_LOCAL_AND_POP($1a) + LOCAL CONST_1 ADD_TO_AND_POP : DEC_LOCAL_AND_POP($1a) +    APPLY [ !(debug_options & NO_TAILRECURSION) ] RETURN : APPLY_AND_RETURN($1a)   CALL_FUNCTION [ !(debug_options & NO_TAILRECURSION) ] RETURN : CALL_FUNCTION_AND_RETURN   CALL_LFUN [ !(debug_options & NO_TAILRECURSION) ] RETURN : CALL_LFUN_AND_RETURN($1a)