Lines Matching refs:op2

610 function helper_name($name, $spec, $op1, $op2, $extra_spec) {  argument
632 if (!isset($helpers[$name]["op2"][$op2])) {
633 if (($op2 == 'TMP' || $op2 == 'VAR') &&
635 $op2 = "TMPVAR";
636 } else if (($op2 == 'TMP' || $op2 == 'VAR') &&
638 $op2 = "TMPVARCV";
639 } else if ($op2 == 'CV' &&
641 $op2 = "TMPVARCV";
643 $op2 = "ANY";
652 return $name . ($spec ? "_SPEC" : "") . $prefix[$op1] . $prefix[$op2] . $extra;
655 function opcode_name($name, $spec, $op1, $op2, $extra_spec) { argument
681 if (!isset($opcode["op2"][$op2])) {
682 if (($op2 == 'TMP' || $op2 == 'VAR') &&
684 $op2 = "TMPVAR";
685 } else if (($op2 == 'TMP' || $op2 == 'VAR') &&
687 $op2 = "TMPVARCV";
688 } else if ($op2 == 'CV' &&
690 $op2 = "TMPVARCV";
692 $op2 = "ANY";
704 return $name . ($spec ? "_SPEC" : "") . $prefix[$op1] . $prefix[$op2] . $extra;
721 function gen_code($f, $spec, $kind, $code, $op1, $op2, $name, $extra_spec=null) { argument
742 "/OP2_TYPE/" => $op2_type[$op2],
744 "/GET_OP2_ZVAL_PTR\(([^)]*)\)/" => $op2_get_zval_ptr[$op2],
746 "/GET_OP2_ZVAL_PTR_DEREF\(([^)]*)\)/" => $op2_get_zval_ptr_deref[$op2],
748 "/GET_OP2_ZVAL_PTR_UNDEF\(([^)]*)\)/" => $op2_get_zval_ptr_undef[$op2],
750 "/GET_OP2_ZVAL_PTR_PTR\(([^)]*)\)/" => $op2_get_zval_ptr_ptr[$op2],
752 "/GET_OP2_ZVAL_PTR_PTR_UNDEF\(([^)]*)\)/" => $op2_get_zval_ptr_ptr_undef[$op2],
754 "/GET_OP2_OBJ_ZVAL_PTR\(([^)]*)\)/" => $op2_get_obj_zval_ptr[$op2],
756 "/GET_OP2_OBJ_ZVAL_PTR_UNDEF\(([^)]*)\)/" => $op2_get_obj_zval_ptr_undef[$op2],
758 "/GET_OP2_OBJ_ZVAL_PTR_DEREF\(([^)]*)\)/" => $op2_get_obj_zval_ptr_deref[$op2],
760 "/GET_OP2_OBJ_ZVAL_PTR_PTR\(([^)]*)\)/" => $op2_get_obj_zval_ptr_ptr[$op2],
762 "/GET_OP2_OBJ_ZVAL_PTR_PTR_UNDEF\(([^)]*)\)/" => $op2_get_obj_zval_ptr_ptr_undef[$op2],
764 "/FREE_OP2\(\)/" => $op2_free_op[$op2],
766 "/FREE_OP2_IF_VAR\(\)/" => $op2_free_op_if_var[$op2],
768 "/FREE_OP2_VAR_PTR\(\)/" => $op2_free_op_var_ptr[$op2],
769 "/\!ZEND_VM_SPEC/m" => ($op1!="ANY"||$op2!="ANY")?"0":"1",
770 "/ZEND_VM_SPEC/m" => ($op1!="ANY"||$op2!="ANY")?"1":"0",
771 …\1".(($spec && $kind != ZEND_VM_KIND_CALL)?("_SPEC".$prefix[$op1].$prefix[$op2].extra_spec_name($e…
772 …\1".(($spec && $kind != ZEND_VM_KIND_CALL)?("_SPEC".$prefix[$op1].$prefix[$op2].extra_spec_name($e…
836 function($matches) use ($spec, $prefix, $op1, $op2, $extra_spec) {
844 … return "goto " . opcode_name($name, $spec, $op1, $op2, $extra_spec) . "_LABEL";
851 … return $args . "goto " . helper_name($matches[1], $spec, $op1, $op2, $extra_spec) . "_LABEL";
853 … return "goto " . helper_name($matches[1], $spec, $op1, $op2, $extra_spec) . "_LABEL";
858 …return "ZEND_VM_TAIL_CALL(" . helper_name($matches[1], $spec, $op1, $op2, $extra_spec) . "(" . $ar…
860 …return "ZEND_VM_TAIL_CALL(" . helper_name($matches[1], $spec, $op1, $op2, $extra_spec) . "(ZEND_OP…
872 function($matches) use ($spec, $prefix, $op1, $op2, $extra_spec, $name) {
883 is_hot_handler($opcode["hot"], $op1, $op2, $extra_spec) &&
884 … is_hot_handler($opcodes[$opnames[$name]]["hot"], $op1, $op2, $extra_spec) ?
886 …return "ZEND_VM_TAIL_CALL(" . opcode_name($handler, $spec, $op1, $op2, $extra_spec) . $inline . "_…
892 …return "ZEND_VM_TAIL_CALL(" . helper_name($matches[1], $spec, $op1, $op2, $extra_spec) . "(" . $ar…
894 …return "ZEND_VM_TAIL_CALL(" . helper_name($matches[1], $spec, $op1, $op2, $extra_spec) . "(ZEND_OP…
906 function($matches) use ($spec, $prefix, $op1, $op2, $extra_spec) {
910 … return "goto " . opcode_name($matches[1], $spec, $op1, $op2, $extra_spec) . "_LABEL";
916 … return $args . "goto " . helper_name($matches[1], $spec, $op1, $op2, $extra_spec);
918 return "goto " . helper_name($matches[1], $spec, $op1, $op2, $extra_spec);
930 function($matches) use ($spec, $prefix, $op1, $op2, $extra_spec) {
934 … return "goto " . opcode_name($matches[1], $spec, $op1, $op2, $extra_spec) . "_LABEL";
940 … return $args . "goto " . helper_name($matches[1], $spec, $op1, $op2, $extra_spec);
942 return "goto " . helper_name($matches[1], $spec, $op1, $op2, $extra_spec);
958 function skip_extra_spec_function($op1, $op2, $extra_spec) { argument
962 $op1 == "CONST" && $op2 == "CONST") {
968 $commutative_order[$op1] < $commutative_order[$op2]) {
976 function is_hot_handler($hot, $op1, $op2, $extra_spec) { argument
988 return (($op1 !== 'CONST') || ($op2 !== 'CONST')) ;
990 return (($op1 === 'UNUSED') || ($op1 === 'CV')) && ($op2 === 'CONST');
998 function is_cold_handler($hot, $op1, $op2, $extra_spec) { argument
1006 return ($op1 === 'CONST' && $op2 === 'CONST');
1012 return ($op1 === 'CONST' && $op2 === 'CONST');
1018 function is_inline_hybrid_handler($name, $hot, $op1, $op2, $extra_spec) { argument
1023 function gen_handler($f, $spec, $kind, $name, $op1, $op2, $use, $code, $lineno, $opcode, $extra_spe… argument
1032 if ($spec && skip_extra_spec_function($op1, $op2, $extra_spec)) {
1040 if (($op1 === 'CONST') && ($op2 === 'CONST')) {
1052 if ($op2 === "CONST") {
1070 if ($op1 != "ANY" || $op2 != "ANY") {
1074 $op2 = "ANY";
1087 …$spec_name = $name.($spec?"_SPEC":"").$prefix[$op1].$prefix[$op2].($spec?extra_spec_name($extra_sp…
1090 if (is_inline_hybrid_handler($name, $opcode["hot"], $op1, $op2, $extra_spec)) {
1092 gen_code($out, $spec, $kind, $code, $op1, $op2, $name, $extra_spec);
1102 is_hot_handler($opcode["hot"], $op1, $op2, $extra_spec) ?
1117 …& ZEND_VM_KIND == ZEND_VM_KIND_HYBRID && is_hot_handler($opcode["hot"], $op1, $op2, $extra_spec)) {
1124 } else if ($opcode["hot"] && is_cold_handler($opcode["hot"], $op1, $op2, $extra_spec)) {
1151 gen_code($f, $spec, $kind, $code, $op1, $op2, $name, $extra_spec);
1163 function gen_helper($f, $spec, $kind, $name, $op1, $op2, $param, $code, $lineno, $inline, $cold = f… argument
1170 if ($spec && skip_extra_spec_function($op1, $op2, $extra_spec)) {
1178 …$spec_name = $name.($spec?"_SPEC":"").$prefix[$op1].$prefix[$op2].($spec?extra_spec_name($extra_sp…
1214 gen_code($f, $spec, $kind, $code, $op1, $op2, $name, $extra_spec);
1291 return function($_, $op2) use ($do, $dsc, $op_types) {
1311 $do($op1, $op2);
1319 foreach ($op_types as $op2) {
1320 if ($op2 != "ANY") {
1321 if (!isset($dsc["op2"][$op2])) {
1322 if ($op2 == "TMP" || $op2 == "VAR") {
1324 $op2 = "TMPVAR";
1326 $op2 = "TMPVARCV";
1328 $op2 = "ANY";
1330 } else if ($op2 == "CV" && isset($dsc["op2"]["TMPVARCV"])) {
1331 $op2 = "TMPVARCV";
1334 $op2 = "ANY";
1337 $do($op1, $op2);
1343 return function($op1, $op2, $extra_spec = array()) use ($do, $dsc, $op_types) {
1364 $do($op1, $op2, array("OP_DATA" => $op_data) + $extra_spec);
1370 return function($op1, $op2, $extra_spec = array()) use ($do, $spec, $dsc) {
1372 $do($op1, $op2, array($spec => $val) + $extra_spec);
1376 …$generate = function ($op1, $op2, $extra_spec = array()) use ($f, $kind, $dsc, $prefix, $prolog, $…
1382 isset($dsc["op2"][$op2]) &&
1384 if (skip_extra_spec_function($op1, $op2, $extra_spec)) {
1395 if (($op1 === 'CONST') && ($op2 === 'CONST')) {
1403 if ($op2 === "CONST") {
1413 if ($op1 != "ANY" || $op2 != "ANY") {
1415 $op2 = "ANY";
1420 … $spec_name = $dsc["op"]."_SPEC".$prefix[$op1].$prefix[$op2].extra_spec_name($extra_spec);
1714 foreach ($op2t as $op2) {
1722 isset($opcodes[$num]["op2"][$op2])) {
1724 …gen_handler($f, 1, $kind, $opcodes[$num]["op"], $op1, $op2, isset($opcodes[$num]["use"]), $opcodes…
1732 isset($helpers[$num]["op2"][$op2])) {
1734 …gen_helper($f, 1, $kind, $num, $op1, $op2, $helpers[$num]["param"], $helpers[$num]["code"], $linen…
2462 $op2 = parse_operand_spec($def, $lineno, $m[5], $flags2);
2480 … $opcodes[$code] = array("op"=>$op,"op1"=>$op1,"op2"=>$op2,"code"=>"","flags"=>$flags,"hot"=>$hot);
2521 $op2 = parse_operand_spec($def, $lineno, $m[6], $flags2);
2531 …$opcodes[$code] = array("op"=>$op,"op1"=>$op1,"op2"=>$op2,"code"=>"","flags"=>$flags,"hot"=>$hot,"…
2561 $op2 = parse_operand_spec($def, $lineno, $m[4], $flags2);
2580 …$helpers[$helper] = array("op1"=>$op1,"op2"=>$op2,"param"=>$param,"code"=>"","inline"=>$inline,"co…