Lines Matching refs:prolog
1043 function gen_null_label($f, $kind, $prolog) { argument
1046 out($f,$prolog."ZEND_NULL_HANDLER,\n");
1049 out($f,$prolog."(void*)(uintptr_t)-1,\n");
1052 out($f,$prolog."(void*)&&ZEND_NULL_HANDLER,\n");
1058 function gen_labels($f, $spec, $kind, $prolog, &$specs, $switch_labels = array()) { argument
1177 …$generate = function ($op1, $op2, $extra_spec = array()) use ($f, $kind, $dsc, $prefix, $prolog, $…
1189 gen_null_label($f, $kind, $prolog);
1195 gen_null_label($f, $kind, $prolog);
1202 gen_null_label($f, $kind, $prolog);
1211 out($f,"$prolog{$spec_name}_HANDLER,\n");
1215 out($f,$prolog."(void*)(uintptr_t)$switch_labels[$spec_name],\n");
1219 out($f,$prolog."(void*)&&{$spec_name}_HANDLER,\n");
1225 gen_null_label($f, $kind, $prolog);
1259 out($f,$prolog."ZEND_NULL_HANDLER,\n");
1262 out($f,$prolog."(void*)(uintptr_t)-1,\n");
1265 out($f,$prolog."(void*)&&ZEND_NULL_HANDLER,\n");
1280 out($f,$prolog.$dsc["op"]."_HANDLER,\n");
1283 out($f,$prolog."(void*)(uintptr_t)".((string)$num).",\n");
1286 out($f,$prolog."(void*)&&".$dsc["op"]."_HANDLER,\n");
1292 out($f,$prolog."ZEND_NULL_HANDLER,\n");
1295 out($f,$prolog."(void*)(uintptr_t)-1,\n");
1298 out($f,$prolog."(void*)&&ZEND_NULL_HANDLER,\n");
1308 out($f,$prolog."ZEND_NULL_HANDLER\n");
1311 out($f,$prolog."(void*)(uintptr_t)-1\n");
1314 out($f,$prolog."(void*)&&ZEND_NULL_HANDLER\n");
1321 function gen_specs($f, $spec, $kind, $prolog, $specs) { argument
1326 out($f, "$prolog$lastdef,\n");
1329 out($f, "$prolog$def,\n");
1331 out($f, "$prolog$lastdef\n");
1442 function gen_executor_code($f, $spec, $kind, $prolog, &$switch_labels = array()) { argument
1525 function skip_blanks($f, $prolog, $epilog) { argument
1526 if (trim($prolog) != "" || trim($epilog) != "") {
1527 out($f, $prolog.$epilog);
1744 $prolog = $m[1];
1745 out($f,$prolog."if (UNEXPECTED(execute_data == NULL)) {\n");
1746 out($f,$prolog."\tstatic const void* labels[] = {\n");
1747 gen_labels($f, $spec, $kind, $prolog."\t\t", $specs);
1748 out($f,$prolog."\t};\n");
1749 out($f,$prolog."static const uint32_t specs[] = {\n");
1750 gen_specs($f, $spec, $kind, $prolog."\t", $specs);
1751 out($f,$prolog."};\n");
1752 out($f,$prolog."\tzend_opcode_handlers = (const void **) labels;\n");
1753 out($f,$prolog."\tzend_handlers_count = sizeof(labels) / sizeof(void*);\n");
1754 out($f,$prolog."\tzend_spec_handlers = (const uint32_t *) specs;\n");
1755 out($f,$prolog."\treturn;\n");
1756 out($f,$prolog."}\n");
1829 $prolog = $m[1];
1833 out($f,$prolog."");
1834 out($f,$prolog.$executor_name."_ex(NULL);\n");
1836 out($f,$prolog."static const void *labels[] = {\n");
1837 gen_labels($f, $spec, $kind, $prolog."\t", $specs, $switch_labels);
1838 out($f,$prolog."};\n");
1839 out($f,$prolog."static const uint32_t specs[] = {\n");
1840 gen_specs($f, $spec, $kind, $prolog."\t", $specs);
1841 out($f,$prolog."};\n");
1842 out($f,$prolog."zend_opcode_handlers = labels;\n");
1843 out($f,$prolog."zend_handlers_count = sizeof(labels) / sizeof(void*);\n");
1844 out($f,$prolog."zend_spec_handlers = specs;\n");