Branch: Tag:

2014-08-07

2014-08-07 16:24:31 by Per Hedbor <ph@opera.com>

Save a few bytes of code size for each free_svalue

8-bit constants generates smaller code.

1153:    /* load type -> RAX */    mov_sval_type( src, P_REG_RAX );    -  and_reg_imm(P_REG_RAX, ~(MIN_REF_TYPE - 1)); +  and_reg_imm(P_REG_RAX, (~(MIN_REF_TYPE - 1)) & 0x1f);       /* if RAX != MIN_REF_TYPE */    cmp_reg32_imm( P_REG_RAX,MIN_REF_TYPE);