Lines Matching refs:op2
654 function helper_name($name, $spec, $op1, $op2, $extra_spec) { argument
676 if (!isset($helpers[$name]["op2"][$op2])) {
677 if (($op2 == 'TMP' || $op2 == 'VAR') &&
679 $op2 = "TMPVAR";
680 } else if (($op2 == 'TMP' || $op2 == 'VAR') &&
682 $op2 = "TMPVARCV";
683 } else if ($op2 == 'CV' &&
685 $op2 = "TMPVARCV";
687 $op2 = "ANY";
695 return $name.($spec?"_SPEC":"").$prefix[$op1].$prefix[$op2].$extra;
698 function opcode_name($name, $spec, $op1, $op2, $extra_spec) { argument
724 if (!isset($opcode["op2"][$op2])) {
725 if (($op2 == 'TMP' || $op2 == 'VAR') &&
727 $op2 = "TMPVAR";
728 } else if (($op2 == 'TMP' || $op2 == 'VAR') &&
730 $op2 = "TMPVARCV";
731 } else if ($op2 == 'CV' &&
733 $op2 = "TMPVARCV";
735 $op2 = "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
784 "/OP2_TYPE/" => $op2_type[$op2],
786 "/OP2_FREE/" => $op2_free[$op2],
788 "/GET_OP2_ZVAL_PTR\(([^)]*)\)/" => $op2_get_zval_ptr[$op2],
790 "/GET_OP2_ZVAL_PTR_DEREF\(([^)]*)\)/" => $op2_get_zval_ptr_deref[$op2],
792 "/GET_OP2_ZVAL_PTR_UNDEF\(([^)]*)\)/" => $op2_get_zval_ptr_undef[$op2],
794 "/GET_OP2_ZVAL_PTR_PTR\(([^)]*)\)/" => $op2_get_zval_ptr_ptr[$op2],
796 "/GET_OP2_ZVAL_PTR_PTR_UNDEF\(([^)]*)\)/" => $op2_get_zval_ptr_ptr_undef[$op2],
798 "/GET_OP2_OBJ_ZVAL_PTR\(([^)]*)\)/" => $op2_get_obj_zval_ptr[$op2],
800 "/GET_OP2_OBJ_ZVAL_PTR_UNDEF\(([^)]*)\)/" => $op2_get_obj_zval_ptr_undef[$op2],
802 "/GET_OP2_OBJ_ZVAL_PTR_DEREF\(([^)]*)\)/" => $op2_get_obj_zval_ptr_deref[$op2],
804 "/GET_OP2_OBJ_ZVAL_PTR_PTR\(([^)]*)\)/" => $op2_get_obj_zval_ptr_ptr[$op2],
806 "/GET_OP2_OBJ_ZVAL_PTR_PTR_UNDEF\(([^)]*)\)/" => $op2_get_obj_zval_ptr_ptr_undef[$op2],
808 "/FREE_OP2\(\)/" => $op2_free_op[$op2],
810 "/FREE_OP2_IF_VAR\(\)/" => $op2_free_op_if_var[$op2],
812 "/FREE_OP2_VAR_PTR\(\)/" => $op2_free_op_var_ptr[$op2],
814 "/FREE_UNFETCHED_OP2\(\)/" => $op2_free_unfetched[$op2],
815 "/\!ZEND_VM_SPEC/m" => ($op1!="ANY"||$op2!="ANY")?"0":"1",
816 "/ZEND_VM_SPEC/m" => ($op1!="ANY"||$op2!="ANY")?"1":"0",
817 …\1".(($spec && $kind != ZEND_VM_KIND_CALL)?("_SPEC".$prefix[$op1].$prefix[$op2].extra_spec_name($e…
818 …\1".(($spec && $kind != ZEND_VM_KIND_CALL)?("_SPEC".$prefix[$op1].$prefix[$op2].extra_spec_name($e…
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
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
1076 return ($op1 === 'CONST' && $op2 === '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);
1328 return function($_, $op2) use ($do, $dsc, $op_types) {
1348 $do($op1, $op2);
1356 foreach($op_types as $op2) {
1357 if ($op2 != "ANY") {
1358 if (!isset($dsc["op2"][$op2])) {
1359 if ($op2 == "TMP" || $op2 == "VAR") {
1361 $op2 = "TMPVAR";
1363 $op2 = "TMPVARCV";
1365 $op2 = "ANY";
1367 } else if ($op2 == "CV" && isset($dsc["op2"]["TMPVARCV"])) {
1368 $op2 = "TMPVARCV";
1371 $op2 = "ANY";
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, $…
1419 isset($dsc["op2"][$op2]) &&
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);
1730 foreach($op2t as $op2) {
1738 isset($opcodes[$num]["op2"][$op2])) {
1740 …gen_handler($f, 1, $kind, $opcodes[$num]["op"], $op1, $op2, isset($opcodes[$num]["use"]), $opcodes…
1748 isset($helpers[$num]["op2"][$op2])) {
1750 …gen_helper($f, 1, $kind, $num, $op1, $op2, $helpers[$num]["param"], $helpers[$num]["code"], $linen…
2418 $op2 = parse_operand_spec($def, $lineno, $m[5], $flags2);
2436 … $opcodes[$code] = array("op"=>$op,"op1"=>$op1,"op2"=>$op2,"code"=>"","flags"=>$flags,"hot"=>$hot);
2474 $op2 = parse_operand_spec($def, $lineno, $m[6], $flags2);
2485 …$opcodes[$code] = array("op"=>$op,"op1"=>$op1,"op2"=>$op2,"code"=>"","flags"=>$flags,"hot"=>$hot,"…
2515 $op2 = parse_operand_spec($def, $lineno, $m[4], $flags2);
2533 …$helpers[$helper] = array("op1"=>$op1,"op2"=>$op2,"param"=>$param,"code"=>"","inline"=>$inline,"co…