Lines Matching refs:prolog

1228 function gen_null_label($f, $kind, $prolog) {  argument
1231 out($f,$prolog."ZEND_NULL_HANDLER,\n");
1234 out($f,$prolog."(void*)(uintptr_t)-1,\n");
1237 out($f,$prolog."(void*)&&ZEND_NULL_LABEL,\n");
1243 function gen_labels($f, $spec, $kind, $prolog, &$specs, $switch_labels = array()) { argument
1382 …$generate = function ($op1, $op2, $extra_spec = array()) use ($f, $kind, $dsc, $prefix, $prolog, $…
1391 gen_null_label($f, $kind, $prolog);
1401 out($f,"$prolog{$spec_name}_HANDLER,\n");
1404 out($f,$prolog."(void*)(uintptr_t)$switch_labels[$spec_name],\n");
1407 out($f,$prolog."(void*)&&{$spec_name}_LABEL,\n");
1414 gen_null_label($f, $kind, $prolog);
1449 out($f,$prolog."ZEND_NULL_HANDLER,\n");
1452 out($f,$prolog."(void*)(uintptr_t)-1,\n");
1455 out($f,$prolog."(void*)&&ZEND_NULL_LABEL,\n");
1470 out($f,$prolog.$dsc["op"]."_HANDLER,\n");
1473 out($f,$prolog."(void*)(uintptr_t)".((string)$num).",\n");
1476 out($f,$prolog."(void*)&&".$dsc["op"]."_LABEL,\n");
1483 out($f,$prolog."ZEND_NULL_HANDLER,\n");
1486 out($f,$prolog."(void*)(uintptr_t)-1,\n");
1489 out($f,$prolog."(void*)&&ZEND_NULL_LABEL,\n");
1500 out($f,$prolog."ZEND_NULL_HANDLER\n");
1503 out($f,$prolog."(void*)(uintptr_t)-1\n");
1506 out($f,$prolog."(void*)&&ZEND_NULL_LABEL\n");
1523 function gen_specs($f, $prolog, $specs) { argument
1528 out($f, "$prolog$lastdef,\n");
1531 out($f, "$prolog$def,\n");
1533 out($f, "$prolog$lastdef\n");
1673 function gen_executor_code($f, $spec, $kind, $prolog, &$switch_labels = array()) { argument
1782 function skip_blanks($f, $prolog, $epilog) { argument
1783 if (trim($prolog) != "" || trim($epilog) != "") {
1784 out($f, $prolog.$epilog);
2069 $prolog = $m[1];
2070 out($f,$prolog."if (UNEXPECTED(execute_data == NULL)) {\n");
2071 out($f,$prolog."\tstatic const void * const labels[] = {\n");
2072 …gen_labels($f, $spec, ($kind == ZEND_VM_KIND_HYBRID) ? ZEND_VM_KIND_GOTO : $kind, $prolog."\t\t", …
2073 out($f,$prolog."\t};\n");
2074 out($f,$prolog."\tzend_opcode_handlers = (const void **) labels;\n");
2075 out($f,$prolog."\tzend_handlers_count = sizeof(labels) / sizeof(void*);\n");
2077 out($f,$prolog."\tmemset(&hybrid_halt_op, 0, sizeof(hybrid_halt_op));\n");
2078 out($f,$prolog."\thybrid_halt_op.handler = (void*)&&HYBRID_HALT_LABEL;\n");
2079 out($f,$prolog."\tgoto HYBRID_HALT_LABEL;\n");
2081 out($f,$prolog."\treturn;\n");
2083 out($f,$prolog."}\n");
2176 $prolog = $m[1];
2180 out($f,$prolog."static const uint32_t specs[] = {\n");
2181 gen_specs($f, $prolog."\t", $specs);
2182 out($f,$prolog."};\n");
2183 out($f,$prolog."zend_spec_handlers = specs;\n");
2184 out($f,$prolog.$executor_name."_ex(NULL);\n");
2186 out($f,$prolog."static const void * const labels[] = {\n");
2187 …gen_labels($f, $spec, ($kind == ZEND_VM_KIND_HYBRID) ? ZEND_VM_KIND_CALL : $kind, $prolog."\t", $s…
2188 out($f,$prolog."};\n");
2189 out($f,$prolog."static const uint32_t specs[] = {\n");
2190 gen_specs($f, $prolog."\t", $specs);
2191 out($f,$prolog."};\n");
2194 out($f,$prolog."zend_opcode_handler_funcs = labels;\n");
2195 out($f,$prolog."zend_spec_handlers = specs;\n");
2196 out($f,$prolog.$executor_name."_ex(NULL);\n");
2199 out($f,$prolog."zend_opcode_handlers = labels;\n");
2200 out($f,$prolog."zend_handlers_count = sizeof(labels) / sizeof(void*);\n");
2201 out($f,$prolog."zend_spec_handlers = specs;\n");