Lines Matching refs:out
272 function out($f, $s) { function
477 out($f, $code);
485 out($f, "#line $lineno \"$definition_file\"\n");
491 …out($f,"static int ZEND_FASTCALL ".$name.($spec?"_SPEC":"").$prefix[$op1].$prefix[$op2]."_HANDLER…
495 …out($f,"case ".((string)($opnames[$name]*25+($typecode[$op1]*5)+$typecode[$op2])).": /*".$name."_S…
497 out($f,"case ".$name.":");
501 out($f," ".$name.($spec?"_SPEC":"").$prefix[$op1].$prefix[$op2]."_LABEL:\n");
503 out($f,"\n");
507 out($f,$name.($spec?"_SPEC":"").$prefix[$op1].$prefix[$op2]."_HANDLER:\n");
520 out($f, "#line $lineno \"$definition_file\"\n");
528 …out($f, "static int ZEND_FASTCALL ".$name.($spec?"_SPEC":"").$prefix[$op1].$prefix[$op2]."(ZEND_OP…
531 …out($f, "static int ZEND_FASTCALL ".$name.($spec?"_SPEC":"").$prefix[$op1].$prefix[$op2]."(".$para…
535 out($f, $name.($spec?"_SPEC":"").$prefix[$op1].$prefix[$op2].":\n");
538 out($f, $name.($spec?"_SPEC":"").$prefix[$op1].$prefix[$op2].":\n");
570 out($f,$prolog."ZEND_NULL_HANDLER,\n");
573 out($f,$prolog."(opcode_handler_t)-1,\n");
576 out($f,$prolog."(opcode_handler_t)&&ZEND_NULL_HANDLER,\n");
608 out($f,$prolog.$dsc["op"]."_SPEC".$prefix[$op1].$prefix[$op2]."_HANDLER,\n");
611 … out($f,$prolog."(opcode_handler_t)".((string)($num*25+$typecode[$op1]*5+$typecode[$op2])).",\n");
614 …out($f,$prolog."(opcode_handler_t)&&".$dsc["op"]."_SPEC".$prefix[$op1].$prefix[$op2]."_HANDLER,\n"…
621 out($f,$prolog."ZEND_NULL_HANDLER,\n");
624 out($f,$prolog."(opcode_handler_t)-1,\n");
627 out($f,$prolog."(opcode_handler_t)&&ZEND_NULL_HANDLER,\n");
646 out($f,$prolog."ZEND_NULL_HANDLER,\n");
649 out($f,$prolog."(opcode_handler_t)-1,\n");
652 out($f,$prolog."(opcode_handler_t)&&ZEND_NULL_HANDLER,\n");
661 out($f,$prolog.$dsc["op"]."_HANDLER,\n");
664 out($f,$prolog."(opcode_handler_t)".((string)$num).",\n");
667 out($f,$prolog."(opcode_handler_t)&&".$dsc["op"]."_HANDLER,\n");
676 out($f,$prolog."ZEND_NULL_HANDLER\n");
679 out($f,$prolog."(opcode_handler_t)-1\n");
682 out($f,$prolog."(opcode_handler_t)&&ZEND_NULL_HANDLER\n");
695 out($f,"static int ZEND_FASTCALL ZEND_NULL_HANDLER(ZEND_OPCODE_HANDLER_ARGS)\n");
696 out($f,"{\n");
697 …out($f,"\tzend_error_noreturn(E_ERROR, \"Invalid opcode %d/%d/%d.\", EX(opline)->opcode, EX(opline…
698 out($f,"}\n\n");
770 out($f,"default:\n");
771 …out($f,"\tzend_error_noreturn(E_ERROR, \"Invalid opcode %d/%d/%d.\", EX(opline)->opcode, EX(opline…
774 out($f,"ZEND_NULL_HANDLER:\n");
775 …out($f,"\tzend_error_noreturn(E_ERROR, \"Invalid opcode %d/%d/%d.\", EX(opline)->opcode, EX(opline…
782 out($f, $prolog.$epilog);
798 out($f,"static int zend_vm_old_executor = 0;\n\n");
800 … out($f,"static opcode_handler_t zend_vm_get_opcode_handler(zend_uchar opcode, zend_op* op);\n\n");
803 out($f,"\n");
804 out($f,"#define ZEND_VM_CONTINUE() return 0\n");
805 out($f,"#define ZEND_VM_RETURN() return 1\n");
806 out($f,"#define ZEND_VM_ENTER() return 2\n");
807 out($f,"#define ZEND_VM_LEAVE() return 3\n");
808 …out($f,"#define ZEND_VM_DISPATCH(opcode, opline) return zend_vm_get_opcode_handler(opcode, opline)…
809 out($f,"#define ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_INTERNAL execute_data TSRMLS_CC\n");
810 out($f,"#undef EX\n");
811 out($f,"#define EX(element) execute_data->element\n\n");
814 out($f,"\n");
815 out($f,"#define ZEND_VM_CONTINUE() goto zend_vm_continue\n");
816 out($f,"#define ZEND_VM_RETURN() EG(in_execution) = original_in_execution; return\n");
817 out($f,"#define ZEND_VM_ENTER() op_array = EG(active_op_array); goto zend_vm_enter\n");
818 out($f,"#define ZEND_VM_LEAVE() ZEND_VM_CONTINUE()\n");
819 …out($f,"#define ZEND_VM_DISPATCH(opcode, opline) dispatch_handler = zend_vm_get_opcode_handler(opc…
820 out($f,"#define ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_INTERNAL execute_data TSRMLS_CC\n");
821 out($f,"#undef EX\n");
822 out($f,"#define EX(element) execute_data->element\n\n");
825 out($f,"\n");
826 out($f,"#define ZEND_VM_CONTINUE() goto *(void**)(EX(opline)->handler)\n");
827 out($f,"#define ZEND_VM_RETURN() EG(in_execution) = original_in_execution; return\n");
828 out($f,"#define ZEND_VM_ENTER() op_array = EG(active_op_array); goto zend_vm_enter\n");
829 out($f,"#define ZEND_VM_LEAVE() ZEND_VM_CONTINUE()\n");
830 …out($f,"#define ZEND_VM_DISPATCH(opcode, opline) goto *(void**)(zend_vm_get_opcode_handler(opcode,…
831 out($f,"#define ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_INTERNAL execute_data TSRMLS_CC\n");
832 out($f,"#undef EX\n");
833 out($f,"#define EX(element) execute_data->element\n\n");
838 out($f, $m[1].$executor_name.$m[3]."\n");
843 out($f,$m[1]."opcode_handler_t dispatch_handler;\n");
847 out($f,$m[1].$param.";\n");
855 out($f, $m[1] . "zend_bool original_in_execution = EG(in_execution);\n");
857 out($f, $m[1] . "zend_bool original_in_execution = op_array? EG(in_execution) : 0;\n");
865 out($f,$prolog."if (op_array == NULL) {\n");
866 out($f,$prolog."\tstatic const opcode_handler_t labels[] = {\n");
868 out($f,$prolog."\t};\n");
869 out($f,$prolog."\tzend_opcode_handlers = (opcode_handler_t*)labels;\n");
870 out($f,$prolog."\treturn;\n");
871 out($f,$prolog."}\n");
879 out($f,$m[1]."\tint ret;".$m[3]."\n");
882 out($f,"zend_vm_continue:".$m[3]."\n");
891 out($f, $m[1]."if ((ret = EX(opline)->handler(execute_data TSRMLS_CC)) > 0)".$m[3]."\n");
894 …out($f, $m[1]."dispatch_handler = EX(opline)->handler;\nzend_vm_dispatch:\n".$m[1]."switch ((int)d…
897 out($f, $m[1]."goto *(void**)(EX(opline)->handler);".$m[3]."\n");
904 out($f, $m[1]."switch (ret) {\n" .
932 out($f, $m[1].$initializer_name.$m[3]."\n");
940 out($f,$prolog."TSRMLS_FETCH();\n");
941 out($f,$prolog."zend_execute(NULL TSRMLS_CC);\n");
945 out($f,$prolog."static opcode_handler_t labels[512] = {\n");
947 out($f,$prolog."static const opcode_handler_t labels[] = {\n");
950 out($f,$prolog."};\n");
951 out($f,$prolog."zend_opcode_handlers = (opcode_handler_t*)labels;\n");
954 out($f,$prolog."zend_vm_old_executor = 1;\n");
955 out($f,$prolog."zend_execute = old_execute;\n");
964 out($f, $line);
1118 out($f, $GLOBALS['header_text']);
1133 out($f, $GLOBALS['header_text']);
1136 out($f, "#ifdef ZEND_WIN32\n# pragma warning(once : 4101)\n#endif\n");
1139 out($f, "static user_opcode_handler_t zend_user_opcode_handlers[256] = {");
1141 out($f, "(user_opcode_handler_t)NULL,");
1143 out($f, "(user_opcode_handler_t)NULL};\n\n");
1145 out($f, "static zend_uchar zend_user_opcodes[256] = {");
1147 out($f, "$i,");
1149 out($f, "255};\n\n");
1156 out($f,"\n/* Old executor */\n\n");
1157 out($f,"#undef EX\n");
1158 out($f,"#define EX(element) execute_data.element\n\n");
1159 out($f,"#undef ZEND_VM_CONTINUE\n\n");
1160 out($f,"#undef ZEND_VM_RETURN\n\n");
1161 out($f,"#undef ZEND_VM_ENTER\n\n");
1162 out($f,"#undef ZEND_VM_LEAVE\n\n");
1163 out($f,"#undef ZEND_VM_DISPATCH\n\n");
1164 out($f,"#undef ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_INTERNAL\n\n");
1169 out($f, "static opcode_handler_t zend_vm_get_opcode_handler(zend_uchar opcode, zend_op* op)\n");
1170 out($f, "{\n");
1172 out($f, "\treturn zend_opcode_handlers[opcode];\n");
1175 out($f, "\tif (zend_vm_old_executor) {\n");
1176 out($f, "\t\treturn zend_opcode_handlers[opcode];\n");
1177 out($f, "\t} else {\n");
1179 out($f, "\t\tstatic const int zend_vm_decode[] = {\n");
1180 out($f, "\t\t\t_UNUSED_CODE, /* 0 */\n");
1181 out($f, "\t\t\t_CONST_CODE, /* 1 = IS_CONST */\n");
1182 out($f, "\t\t\t_TMP_CODE, /* 2 = IS_TMP_VAR */\n");
1183 out($f, "\t\t\t_UNUSED_CODE, /* 3 */\n");
1184 out($f, "\t\t\t_VAR_CODE, /* 4 = IS_VAR */\n");
1185 out($f, "\t\t\t_UNUSED_CODE, /* 5 */\n");
1186 out($f, "\t\t\t_UNUSED_CODE, /* 6 */\n");
1187 out($f, "\t\t\t_UNUSED_CODE, /* 7 */\n");
1188 out($f, "\t\t\t_UNUSED_CODE, /* 8 = IS_UNUSED */\n");
1189 out($f, "\t\t\t_UNUSED_CODE, /* 9 */\n");
1190 out($f, "\t\t\t_UNUSED_CODE, /* 10 */\n");
1191 out($f, "\t\t\t_UNUSED_CODE, /* 11 */\n");
1192 out($f, "\t\t\t_UNUSED_CODE, /* 12 */\n");
1193 out($f, "\t\t\t_UNUSED_CODE, /* 13 */\n");
1194 out($f, "\t\t\t_UNUSED_CODE, /* 14 */\n");
1195 out($f, "\t\t\t_UNUSED_CODE, /* 15 */\n");
1196 out($f, "\t\t\t_CV_CODE /* 16 = IS_CV */\n");
1197 out($f, "\t\t};\n");
1198 …out($f, "\t\treturn zend_opcode_handlers[opcode * 25 + zend_vm_decode[op->op1.op_type] * 5 + zend_…
1200 out($f, "\t}\n");
1203 out($f, "}\n\n");
1206 out($f, "ZEND_API void zend_vm_set_opcode_handler(zend_op* op)\n");
1207 out($f, "{\n");
1208 out($f, "\top->handler = zend_vm_get_opcode_handler(zend_user_opcodes[op->opcode], op);\n");
1209 out($f, "}\n\n");
1215 out($f,"#undef EX\n");
1216 out($f,"#define EX(element) execute_data->element\n\n");
1217 out($f,"#undef ZEND_VM_CONTINUE\n");
1218 out($f,"#undef ZEND_VM_RETURN\n");
1219 out($f,"#undef ZEND_VM_ENTER\n");
1220 out($f,"#undef ZEND_VM_LEAVE\n");
1221 out($f,"#undef ZEND_VM_DISPATCH\n");
1222 out($f,"#undef ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_INTERNAL\n\n");
1223 out($f,"#define ZEND_VM_CONTINUE() return 0\n");
1224 out($f,"#define ZEND_VM_RETURN() return 1\n");
1225 out($f,"#define ZEND_VM_ENTER() return 2\n");
1226 out($f,"#define ZEND_VM_LEAVE() return 3\n");
1227 …out($f,"#define ZEND_VM_DISPATCH(opcode, opline) return zend_vm_get_opcode_handler(opcode, opline)…
1228 out($f,"#define ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_INTERNAL execute_data TSRMLS_CC\n\n");
1232 out($f, "ZEND_API int $func(");
1234 out($f, "ZEND_OPCODE_HANDLER_ARGS)\n");
1239 out($f, "ZEND_OPCODE_HANDLER_ARGS)\n");
1241 out($f, $h['param']. ", ZEND_OPCODE_HANDLER_ARGS)\n");
1248 out($f, "{\n\treturn ".$name."_HANDLER(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);\n}\n\n");
1251 out($f, "{\n\treturn ".$name."(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);\n}\n\n");
1258 …out($f, "{\n\treturn ".$name.(ZEND_VM_SPEC?"_SPEC":"")."_HANDLER(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU…
1264 …out($f, "{\n\treturn ".$name.(ZEND_VM_SPEC?"_SPEC":"")."(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);\n}\n\…