Lines Matching refs:op1
577 function helper_name($name, $spec, $op1, $op2, $extra_spec) { argument
585 if (!isset($helpers[$name]["op1"][$op1])) {
586 if (($op1 == 'TMP' || $op1 == 'VAR') &&
588 $op1 = "TMPVAR";
589 } else if (($op1 == 'TMP' || $op1 == 'VAR') &&
591 $op1 = "TMPVARCV";
592 } else if ($op1 == 'CV' &&
594 $op1 = "TMPVARCV";
596 $op1 = "ANY";
619 return $name . ($spec ? "_SPEC" : "") . $prefix[$op1] . $prefix[$op2] . $extra;
622 function opcode_name($name, $spec, $op1, $op2, $extra_spec) { argument
631 if (!isset($opcode["op1"][$op1])) {
632 if (($op1 == 'TMP' || $op1 == 'VAR') &&
634 $op1 = "TMPVAR";
635 } else if (($op1 == 'TMP' || $op1 == 'VAR') &&
637 $op1 = "TMPVARCV";
638 } else if ($op1 == 'CV' &&
640 $op1 = "TMPVARCV";
642 $op1 = "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
707 "/OP1_TYPE/" => $op1_type[$op1],
709 "/GET_OP1_ZVAL_PTR\(([^)]*)\)/" => $op1_get_zval_ptr[$op1],
711 "/GET_OP1_ZVAL_PTR_DEREF\(([^)]*)\)/" => $op1_get_zval_ptr_deref[$op1],
713 "/GET_OP1_ZVAL_PTR_UNDEF\(([^)]*)\)/" => $op1_get_zval_ptr_undef[$op1],
715 "/GET_OP1_ZVAL_PTR_PTR\(([^)]*)\)/" => $op1_get_zval_ptr_ptr[$op1],
717 "/GET_OP1_ZVAL_PTR_PTR_UNDEF\(([^)]*)\)/" => $op1_get_zval_ptr_ptr_undef[$op1],
719 "/GET_OP1_OBJ_ZVAL_PTR\(([^)]*)\)/" => $op1_get_obj_zval_ptr[$op1],
721 "/GET_OP1_OBJ_ZVAL_PTR_UNDEF\(([^)]*)\)/" => $op1_get_obj_zval_ptr_undef[$op1],
723 "/GET_OP1_OBJ_ZVAL_PTR_DEREF\(([^)]*)\)/" => $op1_get_obj_zval_ptr_deref[$op1],
725 "/GET_OP1_OBJ_ZVAL_PTR_PTR\(([^)]*)\)/" => $op1_get_obj_zval_ptr_ptr[$op1],
727 "/GET_OP1_OBJ_ZVAL_PTR_PTR_UNDEF\(([^)]*)\)/" => $op1_get_obj_zval_ptr_ptr_undef[$op1],
729 "/FREE_OP1\(\)/" => $op1_free_op[$op1],
731 "/FREE_OP1_IF_VAR\(\)/" => $op1_free_op_if_var[$op1],
733 "/\!ZEND_VM_SPEC/m" => ($op1!="ANY"||$op2!="ANY")?"0":"1",
734 "/ZEND_VM_SPEC/m" => ($op1!="ANY"||$op2!="ANY")?"1":"0",
735 …\s*\)/m" => "\\1".(($spec && $kind != ZEND_VM_KIND_CALL)?("_SPEC".$prefix[$op1].$prefix[$op2].extr…
736 …/m" => "goto \\1".(($spec && $kind != ZEND_VM_KIND_CALL)?("_SPEC".$prefix[$op1].$prefix[$op2].extr…
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
949 return ($op1 !== 'CONST');
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
967 return ($op1 === 'CONST');
969 return ($op1 === 'CONST' && $op2 === 'CONST');
971 return ($op1 === 'CONST');
973 return ($op1 === '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')) {
1033 if ($op1 != "ANY" || $op2 != "ANY") {
1036 $op1 = "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);
1256 foreach ($op_types as $op1) {
1257 if ($op1 != "ANY") {
1258 if (!isset($dsc["op1"][$op1])) {
1259 if ($op1 == "TMP" || $op1 == "VAR") {
1261 $op1 = "TMPVAR";
1263 $op1 = "TMPVARCV";
1265 $op1 = "ANY";
1267 } else if ($op1 == "CV" && isset($dsc["op1"]["TMPVARCV"])) {
1268 $op1 = "TMPVARCV";
1271 $op1 = "ANY";
1274 $do($op1, $op2);
1280 return function($op1, $_) use ($do, $dsc, $op_types) {
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, $…
1344 if (isset($dsc["op1"][$op1]) &&
1347 if (skip_extra_spec_function($op1, $op2, $extra_spec)) {
1358 if (($op1 === 'CONST') && ($op2 === 'CONST')) {
1376 if ($op1 != "ANY" || $op2 != "ANY") {
1377 $op1 = "ANY";
1383 … $spec_name = $dsc["op"]."_SPEC".$prefix[$op1].$prefix[$op2].extra_spec_name($extra_spec);
1676 foreach ($op1t as $op1) {
1686 if (isset($opcodes[$num]["op1"][$op1]) &&
1689 …gen_handler($f, 1, $kind, $opcodes[$num]["op"], $op1, $op2, isset($opcodes[$num]["use"]), $opcodes…
1696 if (isset($helpers[$num]["op1"][$op1]) &&
1699 …gen_helper($f, 1, $kind, $num, $op1, $op2, $helpers[$num]["param"], $helpers[$num]["code"], $linen…
2426 $op1 = parse_operand_spec($def, $lineno, $m[4], $flags1);
2445 … $opcodes[$code] = array("op"=>$op,"op1"=>$op1,"op2"=>$op2,"code"=>"","flags"=>$flags,"hot"=>$hot);
2485 $op1 = parse_operand_spec($def, $lineno, $m[5], $flags1);
2496 …$opcodes[$code] = array("op"=>$op,"op1"=>$op1,"op2"=>$op2,"code"=>"","flags"=>$flags,"hot"=>$hot,"…
2525 $op1 = parse_operand_spec($def, $lineno, $m[3], $flags1);
2545 …$helpers[$helper] = array("op1"=>$op1,"op2"=>$op2,"param"=>$param,"code"=>"","inline"=>$inline,"co…