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")?"0":"1",
734 "/ZEND_VM_SPEC/m" => ($op1!="ANY"||$op2!="ANY")?"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);
1065 is_hot_handler($opcode["hot"], $op1, $op2, $extra_spec) ?
1080 …& ZEND_VM_KIND == ZEND_VM_KIND_HYBRID && is_hot_handler($opcode["hot"], $op1, $op2, $extra_spec)) {
1087 } else if ($opcode["hot"] && is_cold_handler($opcode["hot"], $op1, $op2, $extra_spec)) {
1114 gen_code($f, $spec, $kind, $code, $op1, $op2, $name, $extra_spec);
1126 function gen_helper($f, $spec, $kind, $name, $op1, $op2, $param, $code, $lineno, $inline, $cold = f… argument
1133 if ($spec && skip_extra_spec_function($op1, $op2, $extra_spec)) {
1141 …$spec_name = $name.($spec?"_SPEC":"").$prefix[$op1].$prefix[$op2].($spec?extra_spec_name($extra_sp…
1177 gen_code($f, $spec, $kind, $code, $op1, $op2, $name, $extra_spec);
1254 return function($_, $op2) use ($do, $dsc, $op_types) {
1274 $do($op1, $op2);
1282 foreach ($op_types as $op2) {
1283 if ($op2 != "ANY") {
1284 if (!isset($dsc["op2"][$op2])) {
1285 if ($op2 == "TMP" || $op2 == "VAR") {
1287 $op2 = "TMPVAR";
1289 $op2 = "TMPVARCV";
1291 $op2 = "ANY";
1293 } else if ($op2 == "CV" && isset($dsc["op2"]["TMPVARCV"])) {
1294 $op2 = "TMPVARCV";
1297 $op2 = "ANY";
1300 $do($op1, $op2);
1306 return function($op1, $op2, $extra_spec = array()) use ($do, $dsc, $op_types) {
1327 $do($op1, $op2, array("OP_DATA" => $op_data) + $extra_spec);
1333 return function($op1, $op2, $extra_spec = array()) use ($do, $spec, $dsc) {
1335 $do($op1, $op2, array($spec => $val) + $extra_spec);
1339 …$generate = function ($op1, $op2, $extra_spec = array()) use ($f, $kind, $dsc, $prefix, $prolog, $…
1345 isset($dsc["op2"][$op2]) &&
1347 if (skip_extra_spec_function($op1, $op2, $extra_spec)) {
1358 if (($op1 === 'CONST') && ($op2 === 'CONST')) {
1366 if ($op2 === "CONST") {
1376 if ($op1 != "ANY" || $op2 != "ANY") {
1378 $op2 = "ANY";
1383 … $spec_name = $dsc["op"]."_SPEC".$prefix[$op1].$prefix[$op2].extra_spec_name($extra_spec);
1679 foreach ($op2t as $op2) {
1687 isset($opcodes[$num]["op2"][$op2])) {
1689 …gen_handler($f, 1, $kind, $opcodes[$num]["op"], $op1, $op2, isset($opcodes[$num]["use"]), $opcodes…
1697 isset($helpers[$num]["op2"][$op2])) {
1699 …gen_helper($f, 1, $kind, $num, $op1, $op2, $helpers[$num]["param"], $helpers[$num]["code"], $linen…
2427 $op2 = parse_operand_spec($def, $lineno, $m[5], $flags2);
2445 … $opcodes[$code] = array("op"=>$op,"op1"=>$op1,"op2"=>$op2,"code"=>"","flags"=>$flags,"hot"=>$hot);
2486 $op2 = parse_operand_spec($def, $lineno, $m[6], $flags2);
2496 …$opcodes[$code] = array("op"=>$op,"op1"=>$op1,"op2"=>$op2,"code"=>"","flags"=>$flags,"hot"=>$hot,"…
2526 $op2 = parse_operand_spec($def, $lineno, $m[4], $flags2);
2545 …$helpers[$helper] = array("op1"=>$op1,"op2"=>$op2,"param"=>$param,"code"=>"","inline"=>$inline,"co…