Lines Matching refs:op2
577 function helper_name($name, $spec, $op1, $op2, $extra_spec) { argument
599 if (!isset($helpers[$name]["op2"][$op2])) {
600 if (($op2 == 'TMP' || $op2 == 'VAR') &&
602 $op2 = "TMPVAR";
603 } else if (($op2 == 'TMP' || $op2 == 'VAR') &&
605 $op2 = "TMPVARCV";
606 } else if ($op2 == 'CV' &&
608 $op2 = "TMPVARCV";
610 $op2 = "ANY";
619 return $name . ($spec ? "_SPEC" : "") . $prefix[$op1] . $prefix[$op2] . $extra;
622 function opcode_name($name, $spec, $op1, $op2, $extra_spec) { argument
648 if (!isset($opcode["op2"][$op2])) {
649 if (($op2 == 'TMP' || $op2 == 'VAR') &&
651 $op2 = "TMPVAR";
652 } else if (($op2 == 'TMP' || $op2 == 'VAR') &&
654 $op2 = "TMPVARCV";
655 } else if ($op2 == 'CV' &&
657 $op2 = "TMPVARCV";
659 $op2 = "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
708 "/OP2_TYPE/" => $op2_type[$op2],
710 "/GET_OP2_ZVAL_PTR\(([^)]*)\)/" => $op2_get_zval_ptr[$op2],
712 "/GET_OP2_ZVAL_PTR_DEREF\(([^)]*)\)/" => $op2_get_zval_ptr_deref[$op2],
714 "/GET_OP2_ZVAL_PTR_UNDEF\(([^)]*)\)/" => $op2_get_zval_ptr_undef[$op2],
716 "/GET_OP2_ZVAL_PTR_PTR\(([^)]*)\)/" => $op2_get_zval_ptr_ptr[$op2],
718 "/GET_OP2_ZVAL_PTR_PTR_UNDEF\(([^)]*)\)/" => $op2_get_zval_ptr_ptr_undef[$op2],
720 "/GET_OP2_OBJ_ZVAL_PTR\(([^)]*)\)/" => $op2_get_obj_zval_ptr[$op2],
722 "/GET_OP2_OBJ_ZVAL_PTR_UNDEF\(([^)]*)\)/" => $op2_get_obj_zval_ptr_undef[$op2],
724 "/GET_OP2_OBJ_ZVAL_PTR_DEREF\(([^)]*)\)/" => $op2_get_obj_zval_ptr_deref[$op2],
726 "/GET_OP2_OBJ_ZVAL_PTR_PTR\(([^)]*)\)/" => $op2_get_obj_zval_ptr_ptr[$op2],
728 "/GET_OP2_OBJ_ZVAL_PTR_PTR_UNDEF\(([^)]*)\)/" => $op2_get_obj_zval_ptr_ptr_undef[$op2],
730 "/FREE_OP2\(\)/" => $op2_free_op[$op2],
732 "/FREE_OP2_IF_VAR\(\)/" => $op2_free_op_if_var[$op2],
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 …\1".(($spec && $kind != ZEND_VM_KIND_CALL)?("_SPEC".$prefix[$op1].$prefix[$op2].extra_spec_name($e…
736 …\1".(($spec && $kind != ZEND_VM_KIND_CALL)?("_SPEC".$prefix[$op1].$prefix[$op2].extra_spec_name($e…
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
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
969 return ($op1 === 'CONST' && $op2 === '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')) {
1015 if ($op2 === "CONST") {
1033 if ($op1 != "ANY" || $op2 != "ANY") {
1037 $op2 = "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);
1256 return function($_, $op2) use ($do, $dsc, $op_types) {
1276 $do($op1, $op2);
1284 foreach ($op_types as $op2) {
1285 if ($op2 != "ANY") {
1286 if (!isset($dsc["op2"][$op2])) {
1287 if ($op2 == "TMP" || $op2 == "VAR") {
1289 $op2 = "TMPVAR";
1291 $op2 = "TMPVARCV";
1293 $op2 = "ANY";
1295 } else if ($op2 == "CV" && isset($dsc["op2"]["TMPVARCV"])) {
1296 $op2 = "TMPVARCV";
1299 $op2 = "ANY";
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, $…
1347 isset($dsc["op2"][$op2]) &&
1349 if (skip_extra_spec_function($op1, $op2, $extra_spec)) {
1360 if (($op1 === 'CONST') && ($op2 === 'CONST')) {
1368 if ($op2 === "CONST") {
1378 if ($op1 != "ANY" || $op2 != "ANY") {
1380 $op2 = "ANY";
1385 … $spec_name = $dsc["op"]."_SPEC".$prefix[$op1].$prefix[$op2].extra_spec_name($extra_spec);
1681 foreach ($op2t as $op2) {
1689 isset($opcodes[$num]["op2"][$op2])) {
1691 …gen_handler($f, 1, $kind, $opcodes[$num]["op"], $op1, $op2, isset($opcodes[$num]["use"]), $opcodes…
1699 isset($helpers[$num]["op2"][$op2])) {
1701 …gen_helper($f, 1, $kind, $num, $op1, $op2, $helpers[$num]["param"], $helpers[$num]["code"], $linen…
2451 $op2 = parse_operand_spec($def, $lineno, $m[5], $flags2);
2469 … $opcodes[$code] = array("op"=>$op,"op1"=>$op1,"op2"=>$op2,"code"=>"","flags"=>$flags,"hot"=>$hot);
2520 $op2 = parse_operand_spec($def, $lineno, $m[6], $flags2);
2530 …$opcodes[$code] = array("op"=>$op,"op1"=>$op1,"op2"=>$op2,"code"=>"","flags"=>$flags,"hot"=>$hot,"…
2568 $op2 = parse_operand_spec($def, $lineno, $m[4], $flags2);
2587 …$helpers[$helper] = array("op1"=>$op1,"op2"=>$op2,"param"=>$param,"code"=>"","inline"=>$inline,"co…