Lines Matching refs:op1
577 function helper_name($name, $spec, $op1, $op2, $extra_spec) { argument
585 if (!isset($helpers[$name]["op1"][$op1])) {
586 if (($op1 == 'TMP' || $op1 == 'VAR') &&
588 $op1 = "TMPVAR";
589 } else if (($op1 == 'TMP' || $op1 == 'VAR') &&
591 $op1 = "TMPVARCV";
592 } else if ($op1 == 'CV' &&
594 $op1 = "TMPVARCV";
596 $op1 = "ANY";
619 return $name . ($spec ? "_SPEC" : "") . $prefix[$op1] . $prefix[$op2] . $extra;
622 function opcode_name($name, $spec, $op1, $op2, $extra_spec) { argument
631 if (!isset($opcode["op1"][$op1])) {
632 if (($op1 == 'TMP' || $op1 == 'VAR') &&
634 $op1 = "TMPVAR";
635 } else if (($op1 == 'TMP' || $op1 == 'VAR') &&
637 $op1 = "TMPVARCV";
638 } else if ($op1 == 'CV' &&
640 $op1 = "TMPVARCV";
642 $op1 = "ANY";
671 return $name . ($spec ? "_SPEC" : "") . $prefix[$op1] . $prefix[$op2] . $extra;
688 function gen_code($f, $spec, $kind, $code, $op1, $op2, $name, $extra_spec=null) { argument
707 "/OP1_TYPE/" => $op1_type[$op1],
709 "/GET_OP1_ZVAL_PTR\(([^)]*)\)/" => $op1_get_zval_ptr[$op1],
711 "/GET_OP1_ZVAL_PTR_DEREF\(([^)]*)\)/" => $op1_get_zval_ptr_deref[$op1],
713 "/GET_OP1_ZVAL_PTR_UNDEF\(([^)]*)\)/" => $op1_get_zval_ptr_undef[$op1],
715 "/GET_OP1_ZVAL_PTR_PTR\(([^)]*)\)/" => $op1_get_zval_ptr_ptr[$op1],
717 "/GET_OP1_ZVAL_PTR_PTR_UNDEF\(([^)]*)\)/" => $op1_get_zval_ptr_ptr_undef[$op1],
719 "/GET_OP1_OBJ_ZVAL_PTR\(([^)]*)\)/" => $op1_get_obj_zval_ptr[$op1],
721 "/GET_OP1_OBJ_ZVAL_PTR_UNDEF\(([^)]*)\)/" => $op1_get_obj_zval_ptr_undef[$op1],
723 "/GET_OP1_OBJ_ZVAL_PTR_DEREF\(([^)]*)\)/" => $op1_get_obj_zval_ptr_deref[$op1],
725 "/GET_OP1_OBJ_ZVAL_PTR_PTR\(([^)]*)\)/" => $op1_get_obj_zval_ptr_ptr[$op1],
727 "/GET_OP1_OBJ_ZVAL_PTR_PTR_UNDEF\(([^)]*)\)/" => $op1_get_obj_zval_ptr_ptr_undef[$op1],
729 "/FREE_OP1\(\)/" => $op1_free_op[$op1],
731 "/FREE_OP1_IF_VAR\(\)/" => $op1_free_op_if_var[$op1],
733 "/\!ZEND_VM_SPEC/m" => ($op1!="ANY"||$op2!="ANY"||$extra_spec)?"0":"1",
734 "/ZEND_VM_SPEC/m" => ($op1!="ANY"||$op2!="ANY"||$extra_spec)?"1":"0",
735 …\s*\)/m" => "\\1".(($spec && $kind != ZEND_VM_KIND_CALL)?("_SPEC".$prefix[$op1].$prefix[$op2].extr…
736 …/m" => "goto \\1".(($spec && $kind != ZEND_VM_KIND_CALL)?("_SPEC".$prefix[$op1].$prefix[$op2].extr…
799 function($matches) use ($spec, $prefix, $op1, $op2, $extra_spec) {
807 … return "goto " . opcode_name($name, $spec, $op1, $op2, $extra_spec) . "_LABEL";
814 … return $args . "goto " . helper_name($matches[1], $spec, $op1, $op2, $extra_spec) . "_LABEL";
816 … return "goto " . helper_name($matches[1], $spec, $op1, $op2, $extra_spec) . "_LABEL";
821 …return "ZEND_VM_TAIL_CALL(" . helper_name($matches[1], $spec, $op1, $op2, $extra_spec) . "(" . $ar…
823 …return "ZEND_VM_TAIL_CALL(" . helper_name($matches[1], $spec, $op1, $op2, $extra_spec) . "(ZEND_OP…
835 function($matches) use ($spec, $prefix, $op1, $op2, $extra_spec, $name) {
846 is_hot_handler($opcode["hot"], $op1, $op2, $extra_spec) &&
847 … is_hot_handler($opcodes[$opnames[$name]]["hot"], $op1, $op2, $extra_spec) ?
849 …return "ZEND_VM_TAIL_CALL(" . opcode_name($handler, $spec, $op1, $op2, $extra_spec) . $inline . "_…
855 …return "ZEND_VM_TAIL_CALL(" . helper_name($matches[1], $spec, $op1, $op2, $extra_spec) . "(" . $ar…
857 …return "ZEND_VM_TAIL_CALL(" . helper_name($matches[1], $spec, $op1, $op2, $extra_spec) . "(ZEND_OP…
869 function($matches) use ($spec, $prefix, $op1, $op2, $extra_spec) {
873 … return "goto " . opcode_name($matches[1], $spec, $op1, $op2, $extra_spec) . "_LABEL";
879 … return $args . "goto " . helper_name($matches[1], $spec, $op1, $op2, $extra_spec);
881 return "goto " . helper_name($matches[1], $spec, $op1, $op2, $extra_spec);
893 function($matches) use ($spec, $prefix, $op1, $op2, $extra_spec) {
897 … return "goto " . opcode_name($matches[1], $spec, $op1, $op2, $extra_spec) . "_LABEL";
903 … return $args . "goto " . helper_name($matches[1], $spec, $op1, $op2, $extra_spec);
905 return "goto " . helper_name($matches[1], $spec, $op1, $op2, $extra_spec);
921 function skip_extra_spec_function($op1, $op2, $extra_spec) { argument
925 $op1 == "CONST" && $op2 == "CONST") {
931 $commutative_order[$op1] < $commutative_order[$op2]) {
939 function is_hot_handler($hot, $op1, $op2, $extra_spec) { argument
949 return ($op1 !== 'CONST');
951 return (($op1 !== 'CONST') || ($op2 !== 'CONST')) ;
953 return (($op1 === 'UNUSED') || ($op1 === 'CV')) && ($op2 === 'CONST');
961 function is_cold_handler($hot, $op1, $op2, $extra_spec) { argument
967 return ($op1 === 'CONST');
969 return ($op1 === 'CONST' && $op2 === 'CONST');
971 return ($op1 === 'CONST');
973 return ($op1 === 'CONST');
975 return ($op1 === 'CONST' && $op2 === 'CONST');
981 function is_inline_hybrid_handler($name, $hot, $op1, $op2, $extra_spec) { argument
986 function gen_handler($f, $spec, $kind, $name, $op1, $op2, $use, $code, $lineno, $opcode, $extra_spe… argument
995 if ($spec && skip_extra_spec_function($op1, $op2, $extra_spec)) {
1003 if (($op1 === 'CONST') && ($op2 === 'CONST')) {
1033 if ($op1 != "ANY" || $op2 != "ANY") {
1036 $op1 = "ANY";
1050 …$spec_name = $name.($spec?"_SPEC":"").$prefix[$op1].$prefix[$op2].($spec?extra_spec_name($extra_sp…
1053 if (is_inline_hybrid_handler($name, $opcode["hot"], $op1, $op2, $extra_spec)) {
1055 gen_code($out, $spec, $kind, $code, $op1, $op2, $name, $extra_spec);
1066 is_hot_handler($opcode["hot"], $op1, $op2, $extra_spec) ?
1082 … && ZEND_VM_KIND == ZEND_VM_KIND_HYBRID && is_hot_handler($opcode["hot"], $op1, $op2, $extra_spec)…
1089 } else if ($opcode["hot"] && is_cold_handler($opcode["hot"], $op1, $op2, $extra_spec)) {
1116 gen_code($f, $spec, $kind, $code, $op1, $op2, $name, $extra_spec);
1128 function gen_helper($f, $spec, $kind, $name, $op1, $op2, $param, $code, $lineno, $inline, $cold = f… argument
1135 if ($spec && skip_extra_spec_function($op1, $op2, $extra_spec)) {
1143 …$spec_name = $name.($spec?"_SPEC":"").$prefix[$op1].$prefix[$op2].($spec?extra_spec_name($extra_sp…
1179 gen_code($f, $spec, $kind, $code, $op1, $op2, $name, $extra_spec);
1258 foreach ($op_types as $op1) {
1259 if ($op1 != "ANY") {
1260 if (!isset($dsc["op1"][$op1])) {
1261 if ($op1 == "TMP" || $op1 == "VAR") {
1263 $op1 = "TMPVAR";
1265 $op1 = "TMPVARCV";
1267 $op1 = "ANY";
1269 } else if ($op1 == "CV" && isset($dsc["op1"]["TMPVARCV"])) {
1270 $op1 = "TMPVARCV";
1273 $op1 = "ANY";
1276 $do($op1, $op2);
1282 return function($op1, $_) use ($do, $dsc, $op_types) {
1302 $do($op1, $op2);
1308 return function($op1, $op2, $extra_spec = array()) use ($do, $dsc, $op_types) {
1329 $do($op1, $op2, array("OP_DATA" => $op_data) + $extra_spec);
1335 return function($op1, $op2, $extra_spec = array()) use ($do, $spec, $dsc) {
1337 $do($op1, $op2, array($spec => $val) + $extra_spec);
1341 …$generate = function ($op1, $op2, $extra_spec = array()) use ($f, $kind, $dsc, $prefix, $prolog, $…
1346 if (isset($dsc["op1"][$op1]) &&
1349 if (skip_extra_spec_function($op1, $op2, $extra_spec)) {
1360 if (($op1 === 'CONST') && ($op2 === 'CONST')) {
1378 if ($op1 != "ANY" || $op2 != "ANY") {
1379 $op1 = "ANY";
1385 … $spec_name = $dsc["op"]."_SPEC".$prefix[$op1].$prefix[$op2].extra_spec_name($extra_spec);
1678 foreach ($op1t as $op1) {
1688 if (isset($opcodes[$num]["op1"][$op1]) &&
1691 …gen_handler($f, 1, $kind, $opcodes[$num]["op"], $op1, $op2, isset($opcodes[$num]["use"]), $opcodes…
1698 if (isset($helpers[$num]["op1"][$op1]) &&
1701 …gen_helper($f, 1, $kind, $num, $op1, $op2, $helpers[$num]["param"], $helpers[$num]["code"], $linen…
2450 $op1 = parse_operand_spec($def, $lineno, $m[4], $flags1);
2469 … $opcodes[$code] = array("op"=>$op,"op1"=>$op1,"op2"=>$op2,"code"=>"","flags"=>$flags,"hot"=>$hot);
2519 $op1 = parse_operand_spec($def, $lineno, $m[5], $flags1);
2530 …$opcodes[$code] = array("op"=>$op,"op1"=>$op1,"op2"=>$op2,"code"=>"","flags"=>$flags,"hot"=>$hot,"…
2567 $op1 = parse_operand_spec($def, $lineno, $m[3], $flags1);
2587 …$helpers[$helper] = array("op1"=>$op1,"op2"=>$op2,"param"=>$param,"code"=>"","inline"=>$inline,"co…