Lines Matching refs:prolog
1077 function gen_null_label($f, $kind, $prolog) { argument
1080 out($f,$prolog."ZEND_NULL_HANDLER,\n");
1083 out($f,$prolog."(void*)(uintptr_t)-1,\n");
1086 out($f,$prolog."(void*)&&ZEND_NULL_LABEL,\n");
1092 function gen_labels($f, $spec, $kind, $prolog, &$specs, $switch_labels = array()) { argument
1211 …$generate = function ($op1, $op2, $extra_spec = array()) use ($f, $kind, $dsc, $prefix, $prolog, $…
1220 gen_null_label($f, $kind, $prolog);
1229 out($f,"$prolog{$spec_name}_HANDLER,\n");
1233 out($f,$prolog."(void*)(uintptr_t)$switch_labels[$spec_name],\n");
1237 out($f,$prolog."(void*)&&{$spec_name}_LABEL,\n");
1243 gen_null_label($f, $kind, $prolog);
1277 out($f,$prolog."ZEND_NULL_HANDLER,\n");
1280 out($f,$prolog."(void*)(uintptr_t)-1,\n");
1283 out($f,$prolog."(void*)&&ZEND_NULL_LABEL,\n");
1298 out($f,$prolog.$dsc["op"]."_HANDLER,\n");
1301 out($f,$prolog."(void*)(uintptr_t)".((string)$num).",\n");
1304 out($f,$prolog."(void*)&&".$dsc["op"]."_LABEL,\n");
1310 out($f,$prolog."ZEND_NULL_HANDLER,\n");
1313 out($f,$prolog."(void*)(uintptr_t)-1,\n");
1316 out($f,$prolog."(void*)&&ZEND_NULL_LABEL,\n");
1326 out($f,$prolog."ZEND_NULL_HANDLER\n");
1329 out($f,$prolog."(void*)(uintptr_t)-1\n");
1332 out($f,$prolog."(void*)&&ZEND_NULL_LABEL\n");
1339 function gen_specs($f, $prolog, $specs) { argument
1344 out($f, "$prolog$lastdef,\n");
1347 out($f, "$prolog$def,\n");
1349 out($f, "$prolog$lastdef\n");
1460 function gen_executor_code($f, $spec, $kind, $prolog, &$switch_labels = array()) { argument
1554 function skip_blanks($f, $prolog, $epilog) { argument
1555 if (trim($prolog) != "" || trim($epilog) != "") {
1556 out($f, $prolog.$epilog);
1805 $prolog = $m[1];
1806 out($f,$prolog."if (UNEXPECTED(execute_data == NULL)) {\n");
1807 out($f,$prolog."\tstatic const void* labels[] = {\n");
1808 …gen_labels($f, $spec, ($kind == ZEND_VM_KIND_HYBRID) ? ZEND_VM_KIND_GOTO : $kind, $prolog."\t\t", …
1809 out($f,$prolog."\t};\n");
1810 out($f,$prolog."\tzend_opcode_handlers = (const void **) labels;\n");
1811 out($f,$prolog."\tzend_handlers_count = sizeof(labels) / sizeof(void*);\n");
1813 out($f,$prolog."\tmemset(&hybrid_halt_op, 0, sizeof(hybrid_halt_op));\n");
1814 out($f,$prolog."\thybrid_halt_op.handler = (void*)&&HYBRID_HALT_LABEL;\n");
1815 out($f,$prolog."\tgoto HYBRID_HALT_LABEL;\n");
1817 out($f,$prolog."\treturn;\n");
1819 out($f,$prolog."}\n");
1912 $prolog = $m[1];
1916 out($f,$prolog."static const uint32_t specs[] = {\n");
1917 gen_specs($f, $prolog."\t", $specs);
1918 out($f,$prolog."};\n");
1919 out($f,$prolog."zend_spec_handlers = specs;\n");
1920 out($f,$prolog.$executor_name."_ex(NULL);\n");
1922 out($f,$prolog."static const void *labels[] = {\n");
1923 …gen_labels($f, $spec, ($kind == ZEND_VM_KIND_HYBRID) ? ZEND_VM_KIND_CALL : $kind, $prolog."\t", $s…
1924 out($f,$prolog."};\n");
1925 out($f,$prolog."static const uint32_t specs[] = {\n");
1926 gen_specs($f, $prolog."\t", $specs);
1927 out($f,$prolog."};\n");
1930 out($f,$prolog."zend_opcode_handler_funcs = labels;\n");
1931 out($f,$prolog."zend_spec_handlers = specs;\n");
1932 out($f,$prolog.$executor_name."_ex(NULL);\n");
1935 out($f,$prolog."zend_opcode_handlers = labels;\n");
1936 out($f,$prolog."zend_handlers_count = sizeof(labels) / sizeof(void*);\n");
1937 out($f,$prolog."zend_spec_handlers = specs;\n");