Changeset 371


Ignore:
Timestamp:
12/23/09 14:41:08 (9 months ago)
Author:
hans
Message:

PHP 5.3 ZEND_JMP_SET support

Location:
eaccelerator/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • eaccelerator/trunk/ChangeLog

    r370 r371  
    44                * check_mtime can now be enabled/disabled through the web 
    55                  interface as requested in ticket #32 
    6                 * shortened some variable names 
     6                * Shortened some variable names 
     7                * ZEND_JMP_SET support 
    78 
    892009-12-01      Hans Rakers <hans at react.nl> 
  • eaccelerator/trunk/opcodes.c

    r366 r371  
    215215  , 
    216216  OPDEF("UNDEF-151",                EXT_UNUSED | OP1_UNUSED | OP2_UNUSED | RES_UNUSED), /* 151 */ 
    217   OPDEF("JMP_SET",                  EXT_UNUSED | OP1_STD    | OP2_JMPADDR| RES_UNUSED), /* 152 */ 
     217  OPDEF("JMP_SET",                  EXT_UNUSED | OP1_STD    | OP2_JMPADDR| RES_TMP),    /* 152 */ 
    218218  OPDEF("DECLARE_LAMBDA_FUNCTION",  EXT_UNUSED | OP1_STD    | OP2_STD    | RES_UNUSED)  /* 153 */ 
    219219# endif 
  • eaccelerator/trunk/optimize.c

    r370 r371  
    26262626                                op->op1.op_type = IS_UNUSED; 
    26272627                        } 
    2628                         if ((dsc->ops & OP2_MASK) == OP2_CLASS &&  op->opcode != ZEND_ADD_INTERFACE) 
     2628                        if ((dsc->ops & OP2_MASK) == OP2_CLASS && op->opcode != ZEND_ADD_INTERFACE) 
    26292629                        { 
    26302630                                op->op2.op_type = IS_VAR; 
     
    26682668                        case ZEND_JMPZ_EX: 
    26692669                        case ZEND_JMPNZ_EX: 
     2670#ifdef ZEND_JMP_SET 
     2671                        case ZEND_JMP_SET: 
     2672#endif 
    26702673                        /* 
    2671                           TODO: implement 5.3 opcodes ZEND_GOTO & ZEND_JMP_SET here 
     2674                          TODO: implement 5.3 opcode ZEND_GOTO here 
    26722675                        */ 
    26732676                        case ZEND_NEW: 
     
    28432846                                case ZEND_FE_RESET: 
    28442847                                case ZEND_FE_FETCH: 
     2848#ifdef ZEND_JMP_SET 
     2849                                case ZEND_JMP_SET: 
     2850#endif 
    28452851                                        p->jmp_2 = &bb[op->op2.u.opline_num]; 
    28462852                                        p->follow = &bb[line_num]; 
    28472853                                        break; 
    28482854                                /* 
    2849                                   TODO: implement 5.3 opcodes ZEND_GOTO & ZEND_JMP_SET here 
     2855                                  TODO: implement 5.3 opcode ZEND_GOTO here 
    28502856                                */ 
    28512857                                case ZEND_RETURN: 
Note: See TracChangeset for help on using the changeset viewer.