Lines Matching refs:op1
654 function helper_name($name, $spec, $op1, $op2, $extra_spec) { argument
662 if (!isset($helpers[$name]["op1"][$op1])) {
663 if (($op1 == 'TMP' || $op1 == 'VAR') &&
665 $op1 = "TMPVAR";
666 } else if (($op1 == 'TMP' || $op1 == 'VAR') &&
668 $op1 = "TMPVARCV";
669 } else if ($op1 == 'CV' &&
671 $op1 = "TMPVARCV";
673 $op1 = "ANY";
695 return $name.($spec?"_SPEC":"").$prefix[$op1].$prefix[$op2].$extra;
698 function opcode_name($name, $spec, $op1, $op2, $extra_spec) { argument
707 if (!isset($opcode["op1"][$op1])) {
708 if (($op1 == 'TMP' || $op1 == 'VAR') &&
710 $op1 = "TMPVAR";
711 } else if (($op1 == 'TMP' || $op1 == 'VAR') &&
713 $op1 = "TMPVARCV";
714 } else if ($op1 == 'CV' &&
716 $op1 = "TMPVARCV";
718 $op1 = "ANY";
746 return $name.($spec?"_SPEC":"").$prefix[$op1].$prefix[$op2].$extra;
763 function gen_code($f, $spec, $kind, $export, $code, $op1, $op2, $name, $extra_spec=null) { argument
783 "/OP1_TYPE/" => $op1_type[$op1],
785 "/OP1_FREE/" => $op1_free[$op1],
787 "/GET_OP1_ZVAL_PTR\(([^)]*)\)/" => $op1_get_zval_ptr[$op1],
789 "/GET_OP1_ZVAL_PTR_DEREF\(([^)]*)\)/" => $op1_get_zval_ptr_deref[$op1],
791 "/GET_OP1_ZVAL_PTR_UNDEF\(([^)]*)\)/" => $op1_get_zval_ptr_undef[$op1],
793 "/GET_OP1_ZVAL_PTR_PTR\(([^)]*)\)/" => $op1_get_zval_ptr_ptr[$op1],
795 "/GET_OP1_ZVAL_PTR_PTR_UNDEF\(([^)]*)\)/" => $op1_get_zval_ptr_ptr_undef[$op1],
797 "/GET_OP1_OBJ_ZVAL_PTR\(([^)]*)\)/" => $op1_get_obj_zval_ptr[$op1],
799 "/GET_OP1_OBJ_ZVAL_PTR_UNDEF\(([^)]*)\)/" => $op1_get_obj_zval_ptr_undef[$op1],
801 "/GET_OP1_OBJ_ZVAL_PTR_DEREF\(([^)]*)\)/" => $op1_get_obj_zval_ptr_deref[$op1],
803 "/GET_OP1_OBJ_ZVAL_PTR_PTR\(([^)]*)\)/" => $op1_get_obj_zval_ptr_ptr[$op1],
805 "/GET_OP1_OBJ_ZVAL_PTR_PTR_UNDEF\(([^)]*)\)/" => $op1_get_obj_zval_ptr_ptr_undef[$op1],
807 "/FREE_OP1\(\)/" => $op1_free_op[$op1],
809 "/FREE_OP1_IF_VAR\(\)/" => $op1_free_op_if_var[$op1],
811 "/FREE_OP1_VAR_PTR\(\)/" => $op1_free_op_var_ptr[$op1],
813 "/FREE_UNFETCHED_OP1\(\)/" => $op1_free_unfetched[$op1],
815 "/\!ZEND_VM_SPEC/m" => ($op1!="ANY"||$op2!="ANY")?"0":"1",
816 "/ZEND_VM_SPEC/m" => ($op1!="ANY"||$op2!="ANY")?"1":"0",
817 …\s*\)/m" => "\\1".(($spec && $kind != ZEND_VM_KIND_CALL)?("_SPEC".$prefix[$op1].$prefix[$op2].extr…
818 …/m" => "goto \\1".(($spec && $kind != ZEND_VM_KIND_CALL)?("_SPEC".$prefix[$op1].$prefix[$op2].extr…
873 function($matches) use ($spec, $prefix, $op1, $op2, $extra_spec) {
881 … return "goto " . opcode_name($name, $spec, $op1, $op2, $extra_spec) . "_LABEL";
888 … return $args . "goto " . helper_name($matches[1], $spec, $op1, $op2, $extra_spec) . "_LABEL";
890 … return "goto " . helper_name($matches[1], $spec, $op1, $op2, $extra_spec) . "_LABEL";
895 …return "ZEND_VM_TAIL_CALL(" . helper_name($matches[1], $spec, $op1, $op2, $extra_spec) . "(" . $ar…
897 …return "ZEND_VM_TAIL_CALL(" . helper_name($matches[1], $spec, $op1, $op2, $extra_spec) . "(ZEND_OP…
909 function($matches) use ($spec, $prefix, $op1, $op2, $extra_spec, $name) {
920 is_hot_handler($opcode["hot"], $op1, $op2, $extra_spec) &&
921 … is_hot_handler($opcodes[$opnames[$name]]["hot"], $op1, $op2, $extra_spec) ?
923 …return "ZEND_VM_TAIL_CALL(" . opcode_name($handler, $spec, $op1, $op2, $extra_spec) . $inline . "_…
929 …return "ZEND_VM_TAIL_CALL(" . helper_name($matches[1], $spec, $op1, $op2, $extra_spec) . "(" . $ar…
931 …return "ZEND_VM_TAIL_CALL(" . helper_name($matches[1], $spec, $op1, $op2, $extra_spec) . "(ZEND_OP…
943 function($matches) use ($spec, $prefix, $op1, $op2, $extra_spec) {
947 … return "goto " . opcode_name($matches[1], $spec, $op1, $op2, $extra_spec) . "_LABEL";
953 … return $args . "goto " . helper_name($matches[1], $spec, $op1, $op2, $extra_spec);
955 return "goto " . helper_name($matches[1], $spec, $op1, $op2, $extra_spec);
967 function($matches) use ($spec, $prefix, $op1, $op2, $extra_spec) {
971 … return "goto " . opcode_name($matches[1], $spec, $op1, $op2, $extra_spec) . "_LABEL";
977 … return $args . "goto " . helper_name($matches[1], $spec, $op1, $op2, $extra_spec);
979 return "goto " . helper_name($matches[1], $spec, $op1, $op2, $extra_spec);
1033 function skip_extra_spec_function($op1, $op2, $extra_spec) { argument
1037 $op1 == "CONST" && $op2 == "CONST") {
1043 $commutative_order[$op1] < $commutative_order[$op2]) {
1051 function is_hot_handler($hot, $op1, $op2, $extra_spec) { argument
1058 return ($op1 !== 'CONST');
1060 return (($op1 !== 'CONST') || ($op2 !== 'CONST')) ;
1062 return (($op1 === 'UNUSED') || ($op1 === 'CV')) && ($op2 === 'CONST');
1070 function is_cold_handler($hot, $op1, $op2, $extra_spec) { argument
1074 return ($op1 === 'CONST');
1076 return ($op1 === 'CONST' && $op2 === 'CONST');
1078 return ($op1 === 'CONST');
1080 return ($op1 === 'CONST');
1082 return ($op1 === 'CONST' && $op2 === 'CONST');
1088 function is_inline_hybrid_handler($name, $hot, $op1, $op2, $extra_spec) { argument
1093 function gen_handler($f, $spec, $kind, $name, $op1, $op2, $use, $code, $lineno, $opcode, $extra_spe… argument
1100 if ($spec && skip_extra_spec_function($op1, $op2, $extra_spec)) {
1108 if (($op1 === 'CONST') && ($op2 === 'CONST')) {
1124 …$spec_name = $name.($spec?"_SPEC":"").$prefix[$op1].$prefix[$op2].($spec?extra_spec_name($extra_sp…
1127 if (is_inline_hybrid_handler($name, $opcode["hot"], $op1, $op2, $extra_spec)) {
1129 gen_code($out, $spec, $kind, 0, $code, $op1, $op2, $name, $extra_spec);
1139 is_hot_handler($opcode["hot"], $op1, $op2, $extra_spec) ?
1154 … && ZEND_VM_KIND == ZEND_VM_KIND_HYBRID && is_hot_handler($opcode["hot"], $op1, $op2, $extra_spec)…
1161 } else if ($opcode["hot"] && is_cold_handler($opcode["hot"], $op1, $op2, $extra_spec)) {
1188 gen_code($f, $spec, $kind, 0, $code, $op1, $op2, $name, $extra_spec);
1200 function gen_helper($f, $spec, $kind, $name, $op1, $op2, $param, $code, $lineno, $inline, $cold = f… argument
1207 if ($spec && skip_extra_spec_function($op1, $op2, $extra_spec)) {
1215 …$spec_name = $name.($spec?"_SPEC":"").$prefix[$op1].$prefix[$op2].($spec?extra_spec_name($extra_sp…
1251 gen_code($f, $spec, $kind, 0, $code, $op1, $op2, $name, $extra_spec);
1330 foreach($op_types as $op1) {
1331 if ($op1 != "ANY") {
1332 if (!isset($dsc["op1"][$op1])) {
1333 if ($op1 == "TMP" || $op1 == "VAR") {
1335 $op1 = "TMPVAR";
1337 $op1 = "TMPVARCV";
1339 $op1 = "ANY";
1341 } else if ($op1 == "CV" && isset($dsc["op1"]["TMPVARCV"])) {
1342 $op1 = "TMPVARCV";
1345 $op1 = "ANY";
1348 $do($op1, $op2);
1354 return function($op1, $_) use ($do, $dsc, $op_types) {
1374 $do($op1, $op2);
1380 return function($op1, $op2, $extra_spec = array()) use ($do, $dsc, $op_types) {
1401 $do($op1, $op2, array("OP_DATA" => $op_data) + $extra_spec);
1407 return function($op1, $op2, $extra_spec = array()) use ($do, $spec, $dsc) {
1409 $do($op1, $op2, array($spec => $val) + $extra_spec);
1413 …$generate = function ($op1, $op2, $extra_spec = array()) use ($f, $kind, $dsc, $prefix, $prolog, $…
1418 if (isset($dsc["op1"][$op1]) &&
1421 if (skip_extra_spec_function($op1, $op2, $extra_spec)) {
1432 if (($op1 === 'CONST') && ($op2 === 'CONST')) {
1439 … $spec_name = $dsc["op"]."_SPEC".$prefix[$op1].$prefix[$op2].extra_spec_name($extra_spec);
1727 foreach($op1t as $op1) {
1737 if (isset($opcodes[$num]["op1"][$op1]) &&
1740 …gen_handler($f, 1, $kind, $opcodes[$num]["op"], $op1, $op2, isset($opcodes[$num]["use"]), $opcodes…
1747 if (isset($helpers[$num]["op1"][$op1]) &&
1750 …gen_helper($f, 1, $kind, $num, $op1, $op2, $helpers[$num]["param"], $helpers[$num]["code"], $linen…
2417 $op1 = parse_operand_spec($def, $lineno, $m[4], $flags1);
2436 … $opcodes[$code] = array("op"=>$op,"op1"=>$op1,"op2"=>$op2,"code"=>"","flags"=>$flags,"hot"=>$hot);
2473 $op1 = parse_operand_spec($def, $lineno, $m[5], $flags1);
2485 …$opcodes[$code] = array("op"=>$op,"op1"=>$op1,"op2"=>$op2,"code"=>"","flags"=>$flags,"hot"=>$hot,"…
2514 $op1 = parse_operand_spec($def, $lineno, $m[3], $flags1);
2533 …$helpers[$helper] = array("op1"=>$op1,"op2"=>$op2,"param"=>$param,"code"=>"","inline"=>$inline,"co…