Lines Matching refs:op1
610 function helper_name($name, $spec, $op1, $op2, $extra_spec) { argument
618 if (!isset($helpers[$name]["op1"][$op1])) {
619 if (($op1 == 'TMP' || $op1 == 'VAR') &&
621 $op1 = "TMPVAR";
622 } else if (($op1 == 'TMP' || $op1 == 'VAR') &&
624 $op1 = "TMPVARCV";
625 } else if ($op1 == 'CV' &&
627 $op1 = "TMPVARCV";
629 $op1 = "ANY";
651 return $name.($spec?"_SPEC":"").$prefix[$op1].$prefix[$op2].$extra;
654 function opcode_name($name, $spec, $op1, $op2, $extra_spec) { argument
663 if (!isset($opcode["op1"][$op1])) {
664 if (($op1 == 'TMP' || $op1 == 'VAR') &&
666 $op1 = "TMPVAR";
667 } else if (($op1 == 'TMP' || $op1 == 'VAR') &&
669 $op1 = "TMPVARCV";
670 } else if ($op1 == 'CV' &&
672 $op1 = "TMPVARCV";
674 $op1 = "ANY";
702 return $name.($spec?"_SPEC":"").$prefix[$op1].$prefix[$op2].$extra;
719 function gen_code($f, $spec, $kind, $code, $op1, $op2, $name, $extra_spec=null) { argument
739 "/OP1_TYPE/" => $op1_type[$op1],
741 "/GET_OP1_ZVAL_PTR\(([^)]*)\)/" => $op1_get_zval_ptr[$op1],
743 "/GET_OP1_ZVAL_PTR_DEREF\(([^)]*)\)/" => $op1_get_zval_ptr_deref[$op1],
745 "/GET_OP1_ZVAL_PTR_UNDEF\(([^)]*)\)/" => $op1_get_zval_ptr_undef[$op1],
747 "/GET_OP1_ZVAL_PTR_PTR\(([^)]*)\)/" => $op1_get_zval_ptr_ptr[$op1],
749 "/GET_OP1_ZVAL_PTR_PTR_UNDEF\(([^)]*)\)/" => $op1_get_zval_ptr_ptr_undef[$op1],
751 "/GET_OP1_OBJ_ZVAL_PTR\(([^)]*)\)/" => $op1_get_obj_zval_ptr[$op1],
753 "/GET_OP1_OBJ_ZVAL_PTR_UNDEF\(([^)]*)\)/" => $op1_get_obj_zval_ptr_undef[$op1],
755 "/GET_OP1_OBJ_ZVAL_PTR_DEREF\(([^)]*)\)/" => $op1_get_obj_zval_ptr_deref[$op1],
757 "/GET_OP1_OBJ_ZVAL_PTR_PTR\(([^)]*)\)/" => $op1_get_obj_zval_ptr_ptr[$op1],
759 "/GET_OP1_OBJ_ZVAL_PTR_PTR_UNDEF\(([^)]*)\)/" => $op1_get_obj_zval_ptr_ptr_undef[$op1],
761 "/FREE_OP1\(\)/" => $op1_free_op[$op1],
763 "/FREE_OP1_IF_VAR\(\)/" => $op1_free_op_if_var[$op1],
765 "/FREE_OP1_VAR_PTR\(\)/" => $op1_free_op_var_ptr[$op1],
767 "/\!ZEND_VM_SPEC/m" => ($op1!="ANY"||$op2!="ANY")?"0":"1",
768 "/ZEND_VM_SPEC/m" => ($op1!="ANY"||$op2!="ANY")?"1":"0",
769 …\s*\)/m" => "\\1".(($spec && $kind != ZEND_VM_KIND_CALL)?("_SPEC".$prefix[$op1].$prefix[$op2].extr…
770 …/m" => "goto \\1".(($spec && $kind != ZEND_VM_KIND_CALL)?("_SPEC".$prefix[$op1].$prefix[$op2].extr…
834 function($matches) use ($spec, $prefix, $op1, $op2, $extra_spec) {
842 … return "goto " . opcode_name($name, $spec, $op1, $op2, $extra_spec) . "_LABEL";
849 … return $args . "goto " . helper_name($matches[1], $spec, $op1, $op2, $extra_spec) . "_LABEL";
851 … return "goto " . helper_name($matches[1], $spec, $op1, $op2, $extra_spec) . "_LABEL";
856 …return "ZEND_VM_TAIL_CALL(" . helper_name($matches[1], $spec, $op1, $op2, $extra_spec) . "(" . $ar…
858 …return "ZEND_VM_TAIL_CALL(" . helper_name($matches[1], $spec, $op1, $op2, $extra_spec) . "(ZEND_OP…
870 function($matches) use ($spec, $prefix, $op1, $op2, $extra_spec, $name) {
881 is_hot_handler($opcode["hot"], $op1, $op2, $extra_spec) &&
882 … is_hot_handler($opcodes[$opnames[$name]]["hot"], $op1, $op2, $extra_spec) ?
884 …return "ZEND_VM_TAIL_CALL(" . opcode_name($handler, $spec, $op1, $op2, $extra_spec) . $inline . "_…
890 …return "ZEND_VM_TAIL_CALL(" . helper_name($matches[1], $spec, $op1, $op2, $extra_spec) . "(" . $ar…
892 …return "ZEND_VM_TAIL_CALL(" . helper_name($matches[1], $spec, $op1, $op2, $extra_spec) . "(ZEND_OP…
904 function($matches) use ($spec, $prefix, $op1, $op2, $extra_spec) {
908 … return "goto " . opcode_name($matches[1], $spec, $op1, $op2, $extra_spec) . "_LABEL";
914 … return $args . "goto " . helper_name($matches[1], $spec, $op1, $op2, $extra_spec);
916 return "goto " . helper_name($matches[1], $spec, $op1, $op2, $extra_spec);
928 function($matches) use ($spec, $prefix, $op1, $op2, $extra_spec) {
932 … return "goto " . opcode_name($matches[1], $spec, $op1, $op2, $extra_spec) . "_LABEL";
938 … return $args . "goto " . helper_name($matches[1], $spec, $op1, $op2, $extra_spec);
940 return "goto " . helper_name($matches[1], $spec, $op1, $op2, $extra_spec);
956 function skip_extra_spec_function($op1, $op2, $extra_spec) { argument
960 $op1 == "CONST" && $op2 == "CONST") {
966 $commutative_order[$op1] < $commutative_order[$op2]) {
974 function is_hot_handler($hot, $op1, $op2, $extra_spec) { argument
984 return ($op1 !== 'CONST');
986 return (($op1 !== 'CONST') || ($op2 !== 'CONST')) ;
988 return (($op1 === 'UNUSED') || ($op1 === 'CV')) && ($op2 === 'CONST');
996 function is_cold_handler($hot, $op1, $op2, $extra_spec) { argument
1002 return ($op1 === 'CONST');
1004 return ($op1 === 'CONST' && $op2 === 'CONST');
1006 return ($op1 === 'CONST');
1008 return ($op1 === 'CONST');
1010 return ($op1 === 'CONST' && $op2 === 'CONST');
1016 function is_inline_hybrid_handler($name, $hot, $op1, $op2, $extra_spec) { argument
1021 function gen_handler($f, $spec, $kind, $name, $op1, $op2, $use, $code, $lineno, $opcode, $extra_spe… argument
1030 if ($spec && skip_extra_spec_function($op1, $op2, $extra_spec)) {
1038 if (($op1 === 'CONST') && ($op2 === 'CONST')) {
1068 if ($op1 != "ANY" || $op2 != "ANY") {
1071 $op1 = "ANY";
1085 …$spec_name = $name.($spec?"_SPEC":"").$prefix[$op1].$prefix[$op2].($spec?extra_spec_name($extra_sp…
1088 if (is_inline_hybrid_handler($name, $opcode["hot"], $op1, $op2, $extra_spec)) {
1090 gen_code($out, $spec, $kind, $code, $op1, $op2, $name, $extra_spec);
1100 is_hot_handler($opcode["hot"], $op1, $op2, $extra_spec) ?
1115 … && ZEND_VM_KIND == ZEND_VM_KIND_HYBRID && is_hot_handler($opcode["hot"], $op1, $op2, $extra_spec)…
1122 } else if ($opcode["hot"] && is_cold_handler($opcode["hot"], $op1, $op2, $extra_spec)) {
1149 gen_code($f, $spec, $kind, $code, $op1, $op2, $name, $extra_spec);
1161 function gen_helper($f, $spec, $kind, $name, $op1, $op2, $param, $code, $lineno, $inline, $cold = f… argument
1168 if ($spec && skip_extra_spec_function($op1, $op2, $extra_spec)) {
1176 …$spec_name = $name.($spec?"_SPEC":"").$prefix[$op1].$prefix[$op2].($spec?extra_spec_name($extra_sp…
1212 gen_code($f, $spec, $kind, $code, $op1, $op2, $name, $extra_spec);
1291 foreach($op_types as $op1) {
1292 if ($op1 != "ANY") {
1293 if (!isset($dsc["op1"][$op1])) {
1294 if ($op1 == "TMP" || $op1 == "VAR") {
1296 $op1 = "TMPVAR";
1298 $op1 = "TMPVARCV";
1300 $op1 = "ANY";
1302 } else if ($op1 == "CV" && isset($dsc["op1"]["TMPVARCV"])) {
1303 $op1 = "TMPVARCV";
1306 $op1 = "ANY";
1309 $do($op1, $op2);
1315 return function($op1, $_) use ($do, $dsc, $op_types) {
1335 $do($op1, $op2);
1341 return function($op1, $op2, $extra_spec = array()) use ($do, $dsc, $op_types) {
1362 $do($op1, $op2, array("OP_DATA" => $op_data) + $extra_spec);
1368 return function($op1, $op2, $extra_spec = array()) use ($do, $spec, $dsc) {
1370 $do($op1, $op2, array($spec => $val) + $extra_spec);
1374 …$generate = function ($op1, $op2, $extra_spec = array()) use ($f, $kind, $dsc, $prefix, $prolog, $…
1379 if (isset($dsc["op1"][$op1]) &&
1382 if (skip_extra_spec_function($op1, $op2, $extra_spec)) {
1393 if (($op1 === 'CONST') && ($op2 === 'CONST')) {
1411 if ($op1 != "ANY" || $op2 != "ANY") {
1412 $op1 = "ANY";
1418 … $spec_name = $dsc["op"]."_SPEC".$prefix[$op1].$prefix[$op2].extra_spec_name($extra_spec);
1709 foreach($op1t as $op1) {
1719 if (isset($opcodes[$num]["op1"][$op1]) &&
1722 …gen_handler($f, 1, $kind, $opcodes[$num]["op"], $op1, $op2, isset($opcodes[$num]["use"]), $opcodes…
1729 if (isset($helpers[$num]["op1"][$op1]) &&
1732 …gen_helper($f, 1, $kind, $num, $op1, $op2, $helpers[$num]["param"], $helpers[$num]["code"], $linen…
2402 $op1 = parse_operand_spec($def, $lineno, $m[4], $flags1);
2421 … $opcodes[$code] = array("op"=>$op,"op1"=>$op1,"op2"=>$op2,"code"=>"","flags"=>$flags,"hot"=>$hot);
2461 $op1 = parse_operand_spec($def, $lineno, $m[5], $flags1);
2472 …$opcodes[$code] = array("op"=>$op,"op1"=>$op1,"op2"=>$op2,"code"=>"","flags"=>$flags,"hot"=>$hot,"…
2501 $op1 = parse_operand_spec($def, $lineno, $m[3], $flags1);
2520 …$helpers[$helper] = array("op1"=>$op1,"op2"=>$op2,"param"=>$param,"code"=>"","inline"=>$inline,"co…