@@ -1905,11 +1905,7 @@ function gen_executor($f, $skl, $spec, $kind, $executor_name, $initializer_name)
19051905 out ($ f ,"# define ZEND_OPCODE_HANDLER_RET const zend_op * \n" );
19061906 out ($ f ,"# define ZEND_VM_TAIL_CALL(call) return call \n" );
19071907 out ($ f ,"# define ZEND_VM_CONTINUE() return opline \n" );
1908- out ($ f ,"# ifdef ZEND_HIGH_HALF_KERNEL \n" );
1909- out ($ f ,"# define ZEND_VM_RETURN() return NULL \n" );
1910- out ($ f ,"# else \n" );
1911- out ($ f ,"# define ZEND_VM_RETURN() return (const zend_op*)ZEND_VM_ENTER_BIT \n" );
1912- out ($ f ,"# endif \n" );
1908+ out ($ f ,"# define ZEND_VM_RETURN() return (const zend_op*)ZEND_VM_ENTER_BIT \n" );
19131909 if ($ kind == ZEND_VM_KIND_HYBRID ) {
19141910 out ($ f ,"# define ZEND_VM_HOT \n" );
19151911 }
@@ -1948,11 +1944,7 @@ function gen_executor($f, $skl, $spec, $kind, $executor_name, $initializer_name)
19481944 out ($ f ,"# define ZEND_VM_ENTER() opline = EG(current_execute_data)->opline; ZEND_VM_ENTER_EX() \n" );
19491945 out ($ f ,"# define ZEND_VM_LEAVE() return 2 \n" );
19501946 out ($ f ,"#else \n" );
1951- out ($ f ,"# ifdef ZEND_HIGH_HALF_KERNEL \n" );
1952- out ($ f ,"# define ZEND_VM_ENTER_BIT (1ULL<<(UINTPTR_WIDTH-1)) \n" );
1953- out ($ f ,"# else \n" );
1954- out ($ f ,"# define ZEND_VM_ENTER_BIT 1ULL \n" );
1955- out ($ f ,"# endif \n" );
1947+ out ($ f ,"# define ZEND_VM_ENTER_BIT 1ULL \n" );
19561948 out ($ f ,"# define ZEND_VM_ENTER_EX() return (zend_op*)((uintptr_t)opline | ZEND_VM_ENTER_BIT) \n" );
19571949 out ($ f ,"# define ZEND_VM_ENTER() execute_data = EG(current_execute_data); LOAD_OPLINE(); ZEND_VM_ENTER_EX() \n" );
19581950 out ($ f ,"# define ZEND_VM_LEAVE() return (zend_op*)((uintptr_t)opline | ZEND_VM_ENTER_BIT) \n" );
@@ -2155,11 +2147,7 @@ function gen_executor($f, $skl, $spec, $kind, $executor_name, $initializer_name)
21552147 out ($ f , $ m [1 ]."if (UNEXPECTED(!OPLINE)) " .$ m [3 ]."\n" );
21562148 out ($ f ,"#else \n" );
21572149 out ($ f , $ m [1 ]."opline = ((opcode_handler_t)opline->handler)(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU); \n" );
2158- out ($ f , "# ifdef ZEND_HIGH_HALF_KERNEL \n" );
2159- out ($ f , $ m [1 ]."if (UNEXPECTED((intptr_t)opline <= 0)) " .$ m [3 ]."\n" );
2160- out ($ f , "# else \n" );
21612150 out ($ f , $ m [1 ]."if (UNEXPECTED(((uintptr_t)opline & ZEND_VM_ENTER_BIT))) " .$ m [3 ]."\n" );
2162- out ($ f , "# endif \n" );
21632151 out ($ f ,"#endif \n" );
21642152 if ($ kind == ZEND_VM_KIND_HYBRID ) {
21652153 out ($ f ,"#endif /* ZEND_VM_KIND != ZEND_VM_KIND_HYBRID */ \n" );
@@ -3017,11 +3005,7 @@ function gen_vm($def, $skel) {
30173005 out ($ f , "#else \n" );
30183006 out ($ f , "\topline = ((opcode_handler_t)OPLINE->handler)(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU); \n" );
30193007
3020- out ($ f , "# ifdef ZEND_HIGH_HALF_KERNEL \n" );
3021- out ($ f , "\tif (UNEXPECTED((intptr_t)opline <= 0)) { \n" );
3022- out ($ f , "# else \n" );
3023- out ($ f , "\tif (UNEXPECTED(((uintptr_t)opline & ZEND_VM_ENTER_BIT))) { \n" );
3024- out ($ f , "# endif \n" );
3008+ out ($ f , "if (UNEXPECTED(((uintptr_t)opline & ZEND_VM_ENTER_BIT))) { \n" );
30253009 out ($ f , "\t\topline = (const zend_op*)((uintptr_t)opline & ~ZEND_VM_ENTER_BIT); \n" );
30263010 out ($ f , "\t\tif (EXPECTED(opline)) { \n" );
30273011 out ($ f , "\t\t\t/* ZEND_VM_ENTER() or ZEND_VM_LEAVE() */ \n" );
0 commit comments