Home
last modified time | relevance | path

Searched refs:op (Results 1 – 25 of 109) sorted by relevance

12345

/PHP-7.4/ext/opcache/Optimizer/
H A Dpass3.c299 zend_op *op; in zend_optimizer_pass3()
300 for(op = opline+1; op<end; op++) { in zend_optimizer_pass3()
306 if(op->opcode == ZEND_JMP || in zend_optimizer_pass3()
307 op->opcode == ZEND_JMPZ || in zend_optimizer_pass3()
312 op->opcode == ZEND_CASE || in zend_optimizer_pass3()
318 op->opcode == ZEND_EXIT) { in zend_optimizer_pass3()
333 for(op = &op_array->opcodes[opline->op2.opline_num]; op<end; op++) { in zend_optimizer_pass3()
340 if(op->opcode == ZEND_JMP || in zend_optimizer_pass3()
341 op->opcode == ZEND_JMPZ || in zend_optimizer_pass3()
346 op->opcode == ZEND_CASE || in zend_optimizer_pass3()
[all …]
H A Descape_analysis.c107 if (op->op1_def >= 0) { in zend_build_equi_escape_sets()
110 union_find_unite(parent, size, op->op1_def, op->op1_use); in zend_build_equi_escape_sets()
114 union_find_unite(parent, size, op->op1_def, op->op2_use); in zend_build_equi_escape_sets()
119 union_find_unite(parent, size, op->op2_def, op->op2_use); in zend_build_equi_escape_sets()
125 union_find_unite(parent, size, op->result_def, op->result_use); in zend_build_equi_escape_sets()
129 union_find_unite(parent, size, op->result_def, op->op1_use); in zend_build_equi_escape_sets()
132 union_find_unite(parent, size, op->result_def, op->op2_use); in zend_build_equi_escape_sets()
135 union_find_unite(parent, size, op->result_def, op->op1_def); in zend_build_equi_escape_sets()
337 op--; in is_escape_use()
340 || (op->op1_def >= 0 && ssa->vars[op->op1_def].alias)) { in is_escape_use()
[all …]
H A Dzend_optimizer_internal.h36 #define INV_COND(op) ((op) == ZEND_JMPZ ? ZEND_JMPNZ : ZEND_JMPZ) argument
37 #define INV_EX_COND(op) ((op) == ZEND_JMPZ_EX ? ZEND_JMPNZ : ZEND_JMPZ) argument
38 #define INV_COND_EX(op) ((op) == ZEND_JMPZ ? ZEND_JMPNZ_EX : ZEND_JMPZ_EX) argument
39 #define INV_EX_COND_EX(op) ((op) == ZEND_JMPZ_EX ? ZEND_JMPNZ_EX : ZEND_JMPZ_EX) argument
41 #define RESULT_UNUSED(op) (op->result_type == IS_UNUSED) argument
52 #define LITERAL_LONG(op, val) do { \ argument
55 op.constant = zend_optimizer_add_literal(op_array, &_c); \
58 #define LITERAL_BOOL(op, val) do { \ argument
61 op.constant = zend_optimizer_add_literal(op_array, &_c); \
H A Dzend_ssa.c174 zend_op *op = opline; in find_adjusted_tmp_var() local
178 op--; in find_adjusted_tmp_var()
179 if (op->result_type != IS_TMP_VAR || op->result.var != var_num) { in find_adjusted_tmp_var()
194 if (op->op1_type == IS_CV && op->op2_type == IS_CONST) { in find_adjusted_tmp_var()
201 } else if (op->op2_type == IS_CV && op->op1_type == IS_CONST) { in find_adjusted_tmp_var()
210 if (op->op1_type == IS_CV && op->op2_type == IS_CONST) { in find_adjusted_tmp_var()
1057 op->op1_use_chain = ssa_vars[op->op1_use].use_chain; in zend_ssa_compute_use_def_chains()
1060 if (op->op2_use >= 0 && op->op2_use != op->op1_use) { in zend_ssa_compute_use_def_chains()
1061 op->op2_use_chain = ssa_vars[op->op2_use].use_chain; in zend_ssa_compute_use_def_chains()
1064 if (op->result_use >= 0 && op->result_use != op->op1_use && op->result_use != op->op2_use) { in zend_ssa_compute_use_def_chains()
[all …]
/PHP-7.4/Zend/
H A Dzend_operators.c271 ((Z_TYPE_P(op) == IS_LONG || Z_TYPE_P(op) == IS_DOUBLE) ? (op) : \
272 (((op) == result) ? (_convert_scalar_to_number((op), silent, 1), (op)) : \
355 ZVAL_LONG(op, zval_get_long(op)); in convert_to_long_base()
409 ZVAL_DOUBLE(op, (double) Z_LVAL_P(op)); in convert_to_double()
475 ZVAL_BOOL(op, Z_LVAL_P(op) ? 1 : 0); in convert_to_boolean()
478 ZVAL_BOOL(op, Z_DVAL_P(op) ? 1 : 0); in convert_to_boolean()
583 zval *z = Z_OBJ_HT_P(op)->get(op, &tmp); in _convert_to_string()
810 op = Z_REFVAL_P(op); in _zval_get_long_func_ex()
861 op = Z_REFVAL_P(op); in zval_get_double_func()
899 zval *z = Z_OBJ_HT_P(op)->get(op, &tmp); in __zval_get_string_func()
[all …]
H A Dzend_operators.h266 return EXPECTED(Z_TYPE_P(op) == IS_LONG) ? Z_LVAL_P(op) : zval_get_long_func(op); in zval_get_long()
269 return EXPECTED(Z_TYPE_P(op) == IS_DOUBLE) ? Z_DVAL_P(op) : zval_get_double_func(op); in zval_get_double()
323 #define _zval_get_long(op) zval_get_long(op) argument
324 #define _zval_get_double(op) zval_get_double(op) argument
325 #define _zval_get_string(op) zval_get_string(op) argument
326 #define _zval_get_long_func(op) zval_get_long_func(op) argument
330 #define convert_to_cstring(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_cstring((op)); } argument
331 #define convert_to_string(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_string((op)); } argument
360 if (Z_STRLEN_P(op) > 1 || (Z_STRLEN_P(op) && Z_STRVAL_P(op)[0] != '0')) { in i_zend_is_true()
382 op = Z_REFVAL_P(op); in i_zend_is_true()
[all …]
H A Dzend_vm_trace_handlers.h21 #define VM_TRACE(op) zend_vm_trace(#op, sizeof(#op)-1); argument
27 static void zend_vm_trace(const char *op, size_t op_len) in zend_vm_trace() argument
39 memcpy(buf + last_len + 1, op, op_len + 1); in zend_vm_trace()
50 last = op; in zend_vm_trace()
H A Dzend_vm_execute.skl97 ZEND_API void ZEND_FASTCALL zend_serialize_opcode_handler(zend_op *op)
104 zv = zend_hash_index_find(zend_handlers_table, (zend_long)(zend_uintptr_t)op->handler);
106 op->handler = (const void *)(zend_uintptr_t)Z_LVAL_P(zv);
109 ZEND_API void ZEND_FASTCALL zend_deserialize_opcode_handler(zend_op *op)
111 op->handler = zend_opcode_handlers[(zend_uintptr_t)op->handler];
114 ZEND_API const void* ZEND_FASTCALL zend_get_opcode_handler_func(const zend_op *op)
117 return op->handler;
124 zv = zend_hash_index_find(zend_handlers_table, (zend_long)(zend_uintptr_t)op->handler);
H A Dzend_vm.h26 ZEND_API void ZEND_FASTCALL zend_serialize_opcode_handler(zend_op *op);
27 ZEND_API void ZEND_FASTCALL zend_deserialize_opcode_handler(zend_op *op);
28 ZEND_API const void* ZEND_FASTCALL zend_get_opcode_handler_func(const zend_op *op);
/PHP-7.4/ext/standard/
H A Dversioning.c209 char *v1, *v2, *op = NULL; in PHP_FUNCTION() local
217 Z_PARAM_STRING(op, op_len) in PHP_FUNCTION()
221 if (!op) { in PHP_FUNCTION()
224 if (!strncmp(op, "<", op_len) || !strncmp(op, "lt", op_len)) { in PHP_FUNCTION()
227 if (!strncmp(op, "<=", op_len) || !strncmp(op, "le", op_len)) { in PHP_FUNCTION()
230 if (!strncmp(op, ">", op_len) || !strncmp(op, "gt", op_len)) { in PHP_FUNCTION()
233 if (!strncmp(op, ">=", op_len) || !strncmp(op, "ge", op_len)) { in PHP_FUNCTION()
236 if (!strncmp(op, "==", op_len) || !strncmp(op, "=", op_len) || !strncmp(op, "eq", op_len)) { in PHP_FUNCTION()
239 if (!strncmp(op, "!=", op_len) || !strncmp(op, "<>", op_len) || !strncmp(op, "ne", op_len)) { in PHP_FUNCTION()
/PHP-7.4/ext/pcre/pcre2lib/sljit/
H A DsljitLir.c96 #define GET_FLAG_TYPE(op) ((op) >> VARIABLE_FLAG_SHIFT) argument
109 ((op) >= SLJIT_MOV_U8 && (op) <= SLJIT_MOV_S32)
112 ((op) >= SLJIT_MOV_U8 && (op) <= SLJIT_MOV_S16)
1125 CHECK_ARGUMENT(op >= SLJIT_MOV && op <= SLJIT_MOV_P); in check_sljit_emit_return()
1165 CHECK_ARGUMENT((op >= SLJIT_BREAKPOINT && op <= SLJIT_LMUL_SW) in check_sljit_emit_op0()
1167 || (op >= SLJIT_ENDBR && op <= SLJIT_SKIP_FRAMES_BEFORE_RETURN)); in check_sljit_emit_op0()
1169 …if ((GET_OPCODE(op) >= SLJIT_LMUL_UW && GET_OPCODE(op) <= SLJIT_DIV_SW) || op == SLJIT_SKIP_FRAMES… in check_sljit_emit_op0()
1331 else if (op >= SLJIT_PREFETCH_L1 && op <= SLJIT_PREFETCH_ONCE) in check_sljit_emit_op_src()
1804 CHECK_ARGUMENT(op == SLJIT_MOV || op == SLJIT_MOV32 in check_sljit_emit_op_flags()
1805 || (GET_OPCODE(op) >= SLJIT_AND && GET_OPCODE(op) <= SLJIT_XOR)); in check_sljit_emit_op_flags()
[all …]
H A DsljitNativeSPARC_common.c124 #define DOP(op) ((op) << 5) argument
733 if (op >= SLJIT_MOV && op <= SLJIT_MOV_P) in emit_op()
842 op = GET_OPCODE(op); in sljit_emit_op0()
843 switch (op) { in sljit_emit_op0()
897 op = GET_OPCODE(op); in sljit_emit_op1()
898 switch (op) { in sljit_emit_op1()
948 op = GET_OPCODE(op); in sljit_emit_op2()
949 switch (op) { in sljit_emit_op2()
984 switch (op) { in sljit_emit_op_src()
1029 #define FLOAT_DATA(op) (DOUBLE_DATA | ((op & SLJIT_F32_OP) >> 7)) argument
[all …]
H A DsljitNativePPC_common.c1079 if (op >= SLJIT_MOV && op <= SLJIT_MOV_P) in emit_op()
1102 if (!(flags & REG_DEST) && op >= SLJIT_MOV && op <= SLJIT_MOV_P) in emit_op()
1131 op = GET_OPCODE(op); in sljit_emit_op0()
1132 switch (op) { in sljit_emit_op0()
1212 op = GET_OPCODE(op); in sljit_emit_op1()
1245 switch (op) { in sljit_emit_op1()
1490 if (!HAS_FLAGS(op) || GET_OPCODE(op) == SLJIT_AND) { in sljit_emit_op2()
1545 switch (op) { in sljit_emit_op_src()
1592 #define FLOAT_DATA(op) (DOUBLE_DATA | ((op & SLJIT_F32_OP) >> 6)) argument
1621 op = GET_OPCODE(op); in sljit_emit_fop1_conv_sw_from_f64()
[all …]
H A DsljitNativeMIPS_64.c126 if (op & SLJIT_SET_Z) \
132 if (op & SLJIT_SET_Z) \
147 if (op & SLJIT_SET_Z) \
154 if (op & SLJIT_SET_Z) \
166 switch (GET_OPCODE(op)) { in emit_single_op()
215 if (op & SLJIT_SET_Z) in emit_single_op()
224 if (op & SLJIT_SET_Z) in emit_single_op()
293 if (op & SLJIT_SET_Z) in emit_single_op()
375 if (op & SLJIT_SET_Z) in emit_single_op()
381 if (op & SLJIT_SET_Z) in emit_single_op()
[all …]
H A DsljitNativeMIPS_common.c1113 if (op >= SLJIT_MOV && op <= SLJIT_MOV_P) in emit_op()
1167 if (!(flags & REG_DEST) && op >= SLJIT_MOV && op <= SLJIT_MOV_P) in emit_op()
1178 if ((op >= SLJIT_MOV && op <= SLJIT_MOV_P) && (dst & SLJIT_MEM)) in emit_op()
1229 op = GET_OPCODE(op); in sljit_emit_op0()
1230 switch (op) { in sljit_emit_op0()
1340 if ((op & SLJIT_I32_OP) && GET_OPCODE(op) >= SLJIT_NOT) in sljit_emit_op1()
1472 switch (op) { in sljit_emit_op_src()
1522 #define FLOAT_DATA(op) (DOUBLE_DATA | ((op & SLJIT_F32_OP) >> 7)) argument
1523 #define FMT(op) (((op & SLJIT_F32_OP) ^ SLJIT_F32_OP) << (21 - 8)) argument
1642 op ^= SLJIT_F32_OP; in sljit_emit_fop1()
[all …]
H A DsljitNativeMIPS_32.c43 if (op & SLJIT_SET_Z) \
49 if (op & SLJIT_SET_Z) \
57 if (op & SLJIT_SET_Z) \
63 if (op & SLJIT_SET_Z) \
74 switch (GET_OPCODE(op)) { in emit_single_op()
124 if (op & SLJIT_SET_Z) in emit_single_op()
133 if (op & SLJIT_SET_Z) in emit_single_op()
202 if (op & SLJIT_SET_Z) in emit_single_op()
284 if (op & SLJIT_SET_Z) in emit_single_op()
290 if (op & SLJIT_SET_Z) in emit_single_op()
[all …]
H A DsljitNativeARM_64.c622 if (arg1 == 0 && op != SLJIT_ADD && op != SLJIT_SUB) in emit_op_imm()
634 switch (op) { in emit_op_imm()
754 switch (op) { in emit_op_imm()
1138 op = GET_OPCODE(op); in sljit_emit_op0()
1139 switch (op) { in sljit_emit_op0()
1180 op = GET_OPCODE(op); in sljit_emit_op1()
1181 if (op >= SLJIT_MOV && op <= SLJIT_MOV_P) { in sljit_emit_op1()
1342 op = 1; in sljit_emit_op_src()
1344 op = 3; in sljit_emit_op_src()
1346 op = 5; in sljit_emit_op_src()
[all …]
H A DsljitNativeX86_common.c985 op = GET_OPCODE(op); in sljit_emit_op0()
1052 switch (op) { in sljit_emit_op0()
1459 op = GET_OPCODE(op); in sljit_emit_op1()
1461 if (op >= SLJIT_MOV && op <= SLJIT_MOV_P) { in sljit_emit_op1()
1485 switch (op) { in sljit_emit_op1()
1514 …if (SLJIT_UNLIKELY(dst_is_ereg) && (!(op == SLJIT_MOV || op == SLJIT_MOV_U32 || op == SLJIT_MOV_S3… in sljit_emit_op1()
1520 switch (op) { in sljit_emit_op1()
1558 switch (op) { in sljit_emit_op1()
2306 if (!HAS_FLAGS(op)) {
2368 switch (op) {
[all …]
H A DsljitNativeARM_32.c1507 op = SLJIT_SUB | GET_ALL_FLAGS(op); in emit_op()
1514 op = SLJIT_ADD | GET_ALL_FLAGS(op); in emit_op()
1543 op = SLJIT_SUB | GET_ALL_FLAGS(op); in emit_op()
1621 op = GET_OPCODE(op); in sljit_emit_op0()
1622 switch (op) { in sljit_emit_op0()
1789 switch (op) { in sljit_emit_op_src()
1896 op ^= SLJIT_F32_OP; in sljit_emit_fop1_conv_sw_from_f64()
1918 op ^= SLJIT_F32_OP; in sljit_emit_fop1_conv_f64_from_sw()
1942 op ^= SLJIT_F32_OP; in sljit_emit_fop1_cmp()
2517 op = GET_OPCODE(op); in sljit_emit_op_flags()
[all …]
H A DsljitNativeTILEGX_64.c1626 if (op & SLJIT_SET_E) in emit_single_op()
1958 if (op >= SLJIT_MOV && op <= SLJIT_MOVU_S32 && !(src2 & SLJIT_MEM)) in emit_op()
1960 if (GET_FLAGS(op)) in emit_op()
1965 if (op >= SLJIT_MOV && op <= SLJIT_MOVU_S32) in emit_op()
2018 if (!(flags & REG_DEST) && op >= SLJIT_MOV && op <= SLJIT_MOVU_S32) in emit_op()
2027 if ((op >= SLJIT_MOV && op <= SLJIT_MOVU_S32) && (dst & SLJIT_MEM)) in emit_op()
2077 op = GET_OPCODE(op); in sljit_emit_op_flags()
2078 if (op == SLJIT_MOV_S32 || op == SLJIT_MOV_U32) in sljit_emit_op_flags()
2154 op = GET_OPCODE(op); in sljit_emit_op0()
2155 switch (op) { in sljit_emit_op0()
[all …]
/PHP-7.4/sapi/phpdbg/
H A Dphpdbg_opcode.c46 zend_string *var = ops->vars[EX_VAR_TO_NUM(op->var)]; in phpdbg_decode_op()
53 spprintf(&decode, 0, "@%u", EX_VAR_TO_NUM(op->var) - ops->last_var); in phpdbg_decode_op()
56 spprintf(&decode, 0, "~%u", EX_VAR_TO_NUM(op->var) - ops->last_var); in phpdbg_decode_op()
59 zval *literal = RT_CONSTANT(opline, *op); in phpdbg_decode_op()
67 zend_op_array *ops, const zend_op *opline, znode_op op, zend_uchar op_type, in phpdbg_decode_input_op() argument
71 result = phpdbg_decode_op(ops, opline, &op, op_type); in phpdbg_decode_input_op()
73 spprintf(&result, 0, "J%td", OP_JMP_ADDR(opline, op) - ops->opcodes); in phpdbg_decode_input_op()
75 spprintf(&result, 0, "%" PRIu32, op.num); in phpdbg_decode_input_op()
77 if (op.num != (uint32_t)-1) { in phpdbg_decode_input_op()
78 spprintf(&result, 0, "try-catch(%" PRIu32 ")", op.num); in phpdbg_decode_input_op()
[all …]
H A Dphpdbg_opcode.h26 char *phpdbg_decode_opline(zend_op_array *ops, zend_op *op);
37 zend_op *op; member
/PHP-7.4/ext/standard/tests/strings/
H A Dstr_shuffle_basic.phpt29 $op = str_shuffle($ip);
31 if (!is_string($op) || strlen($op) != $len_ip) {
36 if (empty($a[$op])) {
38 $a[$op] = 0;
42 $a[$op]++;
/PHP-7.4/ext/filter/
H A Dfilter.c678 if (!op) { in php_filter_array_handler()
681 } else if (Z_TYPE_P(op) == IS_LONG) { in php_filter_array_handler()
684 } else if (Z_TYPE_P(op) == IS_ARRAY) { in php_filter_array_handler()
800 zval *array_input = NULL, *op = NULL; in PHP_FUNCTION() local
807 …if (op && (Z_TYPE_P(op) != IS_ARRAY) && !(Z_TYPE_P(op) == IS_LONG && PHP_FILTER_ID_EXISTS(Z_LVAL_P… in PHP_FUNCTION()
816 if (op) { in PHP_FUNCTION()
817 if (Z_TYPE_P(op) == IS_LONG) { in PHP_FUNCTION()
818 filter_flags = Z_LVAL_P(op); in PHP_FUNCTION()
819 …} else if (Z_TYPE_P(op) == IS_ARRAY && (option = zend_hash_str_find(Z_ARRVAL_P(op), "flags", sizeo… in PHP_FUNCTION()
845 zval *array_input = NULL, *op = NULL; in PHP_FUNCTION() local
[all …]
/PHP-7.4/ext/pgsql/tests/
H A Dskipif.inc20 function skip_server_version($version, $op = '<')
23 if (version_compare($pg, $version, $op)) {
24 die("skip Server version {$pg} is {$op} {$version}\n");

Completed in 178 milliseconds

12345