Lines Matching refs:op1

627 function helper_name($name, $spec, $op1, $op2, $extra_spec) {  argument
635 if (!isset($helpers[$name]["op1"][$op1])) {
636 if (($op1 == 'TMP' || $op1 == 'VAR') &&
638 $op1 = "TMPVAR";
639 } else if (($op1 == 'TMP' || $op1 == 'VAR') &&
641 $op1 = "TMPVARCV";
642 } else if ($op1 == 'CV' &&
644 $op1 = "TMPVARCV";
646 $op1 = "ANY";
668 return $name.($spec?"_SPEC":"").$prefix[$op1].$prefix[$op2].$extra;
671 function opcode_name($name, $spec, $op1, $op2) { argument
678 if (!isset($opcode["op1"][$op1])) {
679 if (($op1 == 'TMP' || $op1 == 'VAR') &&
681 $op1 = "TMPVAR";
682 } else if (($op1 == 'TMP' || $op1 == 'VAR') &&
684 $op1 = "TMPVARCV";
685 } else if ($op1 == 'CV' &&
687 $op1 = "TMPVARCV";
689 $op1 = "ANY";
713 return $name.($spec?"_SPEC":"").$prefix[$op1].$prefix[$op2];
730 function gen_code($f, $spec, $kind, $export, $code, $op1, $op2, $name, $extra_spec=null) { argument
807 $op1_type[$op1],
809 $op1_free[$op1],
811 $op1_get_zval_ptr[$op1],
813 $op1_get_zval_ptr_deref[$op1],
815 $op1_get_zval_ptr_undef[$op1],
817 $op1_get_zval_ptr_ptr[$op1],
819 $op1_get_zval_ptr_ptr_undef[$op1],
821 $op1_get_obj_zval_ptr[$op1],
823 $op1_get_obj_zval_ptr_undef[$op1],
825 $op1_get_obj_zval_ptr_deref[$op1],
827 $op1_get_obj_zval_ptr_ptr[$op1],
829 $op1_get_obj_zval_ptr_ptr_undef[$op1],
831 $op1_free_op[$op1],
833 $op1_free_op_if_var[$op1],
835 $op1_free_op_var_ptr[$op1],
837 $op1_free_unfetched[$op1],
839 ($op1!="ANY"||$op2!="ANY")?"#\\1if 1\n":"#\\1if 0\n",
840 ($op1!="ANY"||$op2!="ANY")?"#\\1if 0\n":"#\\1if 1\n",
841 ($op1!="ANY"||$op2!="ANY")?"0":"1",
842 ($op1!="ANY"||$op2!="ANY")?"1":"0",
843 …"\\1".(($spec && $kind != ZEND_VM_KIND_CALL)?("_SPEC".$prefix[$op1].$prefix[$op2].extra_spec_name(…
844 …"goto \\1".(($spec && $kind != ZEND_VM_KIND_CALL)?("_SPEC".$prefix[$op1].$prefix[$op2].extra_spec_…
892 function($matches) use ($spec, $prefix, $op1, $op2, $extra_spec) {
900 if (is_hot_handler($opcode["hot"], $op1, $op2, $extra_spec)) {
901 return "goto " . opcode_name($name, $spec, $op1, $op2) . "_LABEL";
903 …return "ZEND_VM_TAIL_CALL(" . opcode_name($name, $spec, $op1, $op2) . "_HANDLER(ZEND_OPCODE_HANDLE…
910 …return "ZEND_VM_TAIL_CALL(" . helper_name($matches[1], $spec, $op1, $op2, $extra_spec) . "(" . $ar…
913 return "goto " . helper_name($matches[1], $spec, $op1, $op2, $extra_spec) . "_LABEL";
915 …return "ZEND_VM_TAIL_CALL(" . helper_name($matches[1], $spec, $op1, $op2, $extra_spec) . "(ZEND_OP…
927 function($matches) use ($spec, $prefix, $op1, $op2, $extra_spec) {
931 …return "ZEND_VM_TAIL_CALL(" . opcode_name($matches[1], $spec, $op1, $op2) . "_HANDLER(ZEND_OPCODE_…
937 …return "ZEND_VM_TAIL_CALL(" . helper_name($matches[1], $spec, $op1, $op2, $extra_spec) . "(" . $ar…
939 …return "ZEND_VM_TAIL_CALL(" . helper_name($matches[1], $spec, $op1, $op2, $extra_spec) . "(ZEND_OP…
951 function($matches) use ($spec, $prefix, $op1, $op2, $extra_spec) {
955 return "goto " . opcode_name($matches[1], $spec, $op1, $op2) . "_LABEL";
961 return $args . "goto " . helper_name($matches[1], $spec, $op1, $op2, $extra_spec);
963 return "goto " . helper_name($matches[1], $spec, $op1, $op2, $extra_spec);
975 function($matches) use ($spec, $prefix, $op1, $op2, $extra_spec) {
979 return "goto " . opcode_name($matches[1], $spec, $op1, $op2) . "_LABEL";
985 return $args . "goto " . helper_name($matches[1], $spec, $op1, $op2, $extra_spec);
987 return "goto " . helper_name($matches[1], $spec, $op1, $op2, $extra_spec);
1041 function skip_extra_spec_function($op1, $op2, $extra_spec) { argument
1045 $op1 == "CONST" && $op2 == "CONST") {
1051 $commutative_order[$op1] < $commutative_order[$op2]) {
1058 ($op1 == "UNUSED" && $extra_spec["DIM_OBJ"] != 2))) {
1066 function is_hot_handler($hot, $op1, $op2, $extra_spec) { argument
1070 return ($op1 !== 'CONST');
1072 return (($op1 === 'UNUSED') || ($op1 === 'CV')) && ($op2 === 'CONST');
1080 function is_cold_handler($hot, $op1, $op2, $extra_spec) { argument
1084 return ($op1 === 'CONST');
1086 return ($op1 === 'CONST' && $op2 === 'CONST');
1088 return ($op1 === 'CONST');
1090 return ($op1 === 'CONST');
1096 function is_inline_hybrid_handler($name, $hot, $op1, $op2, $extra_spec) { argument
1102 function gen_handler($f, $spec, $kind, $name, $op1, $op2, $use, $code, $lineno, $opcode, $extra_spe… argument
1105 if ($spec && skip_extra_spec_function($op1, $op2, $extra_spec)) {
1114 …$spec_name = $name.($spec?"_SPEC":"").$prefix[$op1].$prefix[$op2].($spec?extra_spec_name($extra_sp…
1117 if (is_inline_hybrid_handler($name, $opcode["hot"], $op1, $op2, $extra_spec)) {
1119 gen_code($out, $spec, $kind, 0, $code, $op1, $op2, $name, $extra_spec);
1140 …if ($opcode["hot"] && ZEND_VM_KIND == ZEND_VM_KIND_HYBRID && is_hot_handler($opcode["hot"], $op1, …
1142 } else if ($opcode["hot"] && is_cold_handler($opcode["hot"], $op1, $op2, $extra_spec)) {
1169 gen_code($f, $spec, $kind, 0, $code, $op1, $op2, $name, $extra_spec);
1173 function gen_helper($f, $spec, $kind, $name, $op1, $op2, $param, $code, $lineno, $inline, $cold = f… argument
1180 if ($spec && skip_extra_spec_function($op1, $op2, $extra_spec)) {
1188 …$spec_name = $name.($spec?"_SPEC":"").$prefix[$op1].$prefix[$op2].($spec?extra_spec_name($extra_sp…
1224 gen_code($f, $spec, $kind, 0, $code, $op1, $op2, $name, $extra_spec);
1299 foreach($op_types as $op1) {
1300 if ($op1 != "ANY") {
1301 if (!isset($dsc["op1"][$op1])) {
1302 if ($op1 == "TMP" || $op1 == "VAR") {
1304 $op1 = "TMPVAR";
1306 $op1 = "TMPVARCV";
1308 $op1 = "ANY";
1310 } else if ($op1 == "CV" && isset($dsc["op1"]["TMPVARCV"])) {
1311 $op1 = "TMPVARCV";
1314 $op1 = "ANY";
1317 $do($op1, $op2);
1323 return function($op1, $_) use ($do, $dsc, $op_types) {
1343 $do($op1, $op2);
1349 return function($op1, $op2, $extra_spec = array()) use ($do, $dsc, $op_types) {
1370 $do($op1, $op2, array("OP_DATA" => $op_data) + $extra_spec);
1376 return function($op1, $op2, $extra_spec = array()) use ($do, $spec, $dsc) {
1378 $do($op1, $op2, array($spec => $val) + $extra_spec);
1382 …$generate = function ($op1, $op2, $extra_spec = array()) use ($f, $kind, $dsc, $prefix, $prolog, $…
1387 if (isset($dsc["op1"][$op1]) &&
1390 if (skip_extra_spec_function($op1, $op2, $extra_spec)) {
1398 $spec_name = $dsc["op"]."_SPEC".$prefix[$op1].$prefix[$op2].extra_spec_name($extra_spec);
1686 foreach($op1t as $op1) {
1696 if (isset($opcodes[$num]["op1"][$op1]) &&
1699 …gen_handler($f, 1, $kind, $opcodes[$num]["op"], $op1, $op2, isset($opcodes[$num]["use"]), $opcodes…
1706 if (isset($helpers[$num]["op1"][$op1]) &&
1709 …gen_helper($f, 1, $kind, $num, $op1, $op2, $helpers[$num]["param"], $helpers[$num]["code"], $linen…
2353 $op1 = parse_operand_spec($def, $lineno, $m[4], $flags1);
2372 … $opcodes[$code] = array("op"=>$op,"op1"=>$op1,"op2"=>$op2,"code"=>"","flags"=>$flags,"hot"=>$hot);
2407 $op1 = parse_operand_spec($def, $lineno, $m[5], $flags1);
2419 …$opcodes[$code] = array("op"=>$op,"op1"=>$op1,"op2"=>$op2,"code"=>"","flags"=>$flags,"hot"=>$hot,"…
2448 $op1 = parse_operand_spec($def, $lineno, $m[3], $flags1);
2463 …$helpers[$helper] = array("op1"=>$op1,"op2"=>$op2,"param"=>$param,"code"=>"","inline"=>$inline,"co…