Lines Matching refs:prolog
1255 function gen_null_label($f, $kind, $prolog) { argument
1258 out($f,$prolog."ZEND_NULL_HANDLER,\n");
1261 out($f,$prolog."(void*)(uintptr_t)-1,\n");
1264 out($f,$prolog."(void*)&&ZEND_NULL_LABEL,\n");
1270 function gen_labels($f, $spec, $kind, $prolog, &$specs, $switch_labels = array()) { argument
1413 …tion ($op1, $op2, $extra_spec = array()) use ($f, $kind, $dsc, $prefix, $prolog, $num, $switch_lab…
1422 gen_null_label($f, $kind, $prolog);
1442 out($f,"$prolog{$spec_name}_HANDLER,\n");
1445 out($f,$prolog."(void*)(uintptr_t)$switch_labels[$spec_name],\n");
1448 out($f,$prolog."(void*)&&{$spec_name}_LABEL,\n");
1455 gen_null_label($f, $kind, $prolog);
1490 out($f,$prolog."ZEND_NULL_HANDLER,\n");
1493 out($f,$prolog."(void*)(uintptr_t)-1,\n");
1496 out($f,$prolog."(void*)&&ZEND_NULL_LABEL,\n");
1510 out($f,$prolog.$dsc['alias']."_HANDLER,\n");
1513 out($f,$prolog."(void*)&&".$dsc['alias']."_LABEL,\n");
1521 out($f,$prolog.$dsc["op"]."_HANDLER,\n");
1524 out($f,$prolog."(void*)(uintptr_t)".((string)$num).",\n");
1527 out($f,$prolog."(void*)&&".$dsc["op"]."_LABEL,\n");
1534 out($f,$prolog."ZEND_NULL_HANDLER,\n");
1537 out($f,$prolog."(void*)(uintptr_t)-1,\n");
1540 out($f,$prolog."(void*)&&ZEND_NULL_LABEL,\n");
1551 out($f,$prolog."ZEND_NULL_HANDLER\n");
1554 out($f,$prolog."(void*)(uintptr_t)-1\n");
1557 out($f,$prolog."(void*)&&ZEND_NULL_LABEL\n");
1574 function gen_specs($f, $prolog, $specs) { argument
1579 out($f, "$prolog$lastdef,\n");
1582 out($f, "$prolog$def,\n");
1584 out($f, "$prolog$lastdef\n");
1714 function gen_executor_code($f, $spec, $kind, $prolog, &$switch_labels = array()) { argument
1827 function skip_blanks($f, $prolog, $epilog) { argument
1828 if (trim($prolog) != "" || trim($epilog) != "") {
1829 out($f, $prolog.$epilog);
2134 $prolog = $m[1];
2135 out($f,$prolog."if (UNEXPECTED(execute_data == NULL)) {\n");
2136 out($f,$prolog."\tstatic const void * const labels[] = {\n");
2137 …els($f, $spec, ($kind == ZEND_VM_KIND_HYBRID) ? ZEND_VM_KIND_GOTO : $kind, $prolog."\t\t", $specs);
2138 out($f,$prolog."\t};\n");
2139 out($f,$prolog."\tzend_opcode_handlers = (const void **) labels;\n");
2140 out($f,$prolog."\tzend_handlers_count = sizeof(labels) / sizeof(void*);\n");
2142 … out($f,$prolog."\tmemset(&hybrid_halt_op, 0, sizeof(hybrid_halt_op));\n");
2143 … out($f,$prolog."\thybrid_halt_op.handler = (void*)&&HYBRID_HALT_LABEL;\n");
2144 out($f,$prolog."\tgoto HYBRID_HALT_LABEL;\n");
2146 out($f,$prolog."\treturn;\n");
2148 out($f,$prolog."}\n");
2241 $prolog = $m[1];
2245 out($f,$prolog."static const uint32_t specs[] = {\n");
2246 gen_specs($f, $prolog."\t", $specs);
2247 out($f,$prolog."};\n");
2248 out($f,$prolog."zend_spec_handlers = specs;\n");
2249 out($f,$prolog.$executor_name."_ex(NULL);\n");
2251 out($f,$prolog."static const void * const labels[] = {\n");
2252 …($f, $spec, ($kind == ZEND_VM_KIND_HYBRID) ? ZEND_VM_KIND_CALL : $kind, $prolog."\t", $specs, $swi…
2253 out($f,$prolog."};\n");
2254 out($f,$prolog."static const uint32_t specs[] = {\n");
2255 gen_specs($f, $prolog."\t", $specs);
2256 out($f,$prolog."};\n");
2259 out($f,$prolog."zend_opcode_handler_funcs = labels;\n");
2260 out($f,$prolog."zend_spec_handlers = specs;\n");
2261 out($f,$prolog.$executor_name."_ex(NULL);\n");
2264 out($f,$prolog."zend_opcode_handlers = labels;\n");
2265 out($f,$prolog."zend_handlers_count = sizeof(labels) / sizeof(void*);\n");
2266 out($f,$prolog."zend_spec_handlers = specs;\n");