Searched refs:op2 (Results 1 - 25 of 37) sorted by relevance

12

/PHP_TRUNK/ext/mbstring/oniguruma/
H A Donigposix.h118 unsigned int op2; member in struct:__anon224
H A Dregsyntax.c245 onig_set_syntax_op2(OnigSyntaxType* syntax, unsigned int op2) argument
247 syntax->op2 = op2;
271 return syntax->op2;
/PHP_TRUNK/ext/intl/collator/
H A Dcollator_sort.h23 typedef int (*collator_compare_func_t)( zval *result, zval *op1, zval *op2 );
H A Dcollator_sort.c53 static int collator_regular_compare_function(zval *result, zval *op1, zval *op2) argument
63 zval* str2_p = collator_convert_object_to_string( op2, &str2 );
145 static int collator_numeric_compare_function(zval *result, zval *op1, zval *op2) argument
158 if( Z_TYPE_P(op2) == IS_STRING )
160 num2_p = collator_convert_string_to_double( op2, &num2 );
161 op2 = num2_p;
164 rc = numeric_compare_function( result, op1, op2);
178 static int collator_icu_compare_function(zval *result, zval *op1, zval *op2) argument
187 str2_p = collator_make_printable_zval( op2, &str2 );
/PHP_TRUNK/ext/opcache/Optimizer/
H A Dcompact_literals.c139 LITERAL_INFO(opline->op2.constant, LITERAL_FUNC, 1, 1, 1);
143 LITERAL_INFO(opline->op2.constant, LITERAL_FUNC, 1, 1, 2);
147 LITERAL_INFO(opline->op2.constant, LITERAL_FUNC, 1, 1, 3);
155 opline->op2.constant,
169 opline->op2.constant,
183 LITERAL_INFO(opline->op2.constant, LITERAL_CONST, 1, 1, 5);
185 LITERAL_INFO(opline->op2.constant, LITERAL_CONST, 1, 1, 3);
195 opline->op2.constant,
214 LITERAL_INFO(opline->op2.constant, LITERAL_CLASS, 1, 1, 2);
220 opline->op2,
[all...]
H A Doptimize_func_calls.c34 Z_TYPE(op_array->literals[(opline)->op2.constant]) == IS_STRING)
61 zval *function_name = &op_array->literals[opline->op2.constant + 1];
84 Z_CACHE_SLOT(op_array->literals[fcall->op2.constant + 1]) = Z_CACHE_SLOT(op_array->literals[fcall->op2.constant]);
86 fcall->op2.constant = fcall->op2.constant + 1;
90 Z_CACHE_SLOT(op_array->literals[fcall->op2.constant + 1]) = Z_CACHE_SLOT(op_array->literals[fcall->op2.constant]);
91 literal_dtor(&op_array->literals[fcall->op2.constant]);
92 literal_dtor(&op_array->literals[fcall->op2
[all...]
H A Dpass1_5.c71 int (*binary_op)(zval *result, zval *op1, zval *op2) = get_binary_op(opline->opcode);
358 if (send1_opline->op2.num == 2) {
403 opline->op2.constant = send2_opline->op1.constant;
649 } else if (op->op2_type == IS_VAR && op->op2.var == var) {
665 } else if (use->op2_type == IS_VAR && use->op2.var == var) {
667 use->op2.var = zend_optimizer_lookup_cv(op_array,
H A Dpass2.c53 /* break missing *intentionally* - the assign_op's may only optimize op2 */
77 /* break missing *intentionally - the assign_op's may only optimize op2 */
98 /* break missing *intentionally - the assign_op's may only optimize op2 */
128 SET_UNUSED(opline->op2);
145 COPY_NODE(opline->op1, opline->op2);
162 COPY_NODE(opline->op2, (opline + 1)->op1);
231 /* MAKE_NOP() already set op1 and op2 to IS_UNUSED */
H A Dpass3.c111 COPY_NODE(opline->op1, opline->op2);
112 COPY_NODE(opline->op2, tmp);
268 SET_UNUSED(opline->op2);
H A Dzend_optimizer.c86 opline->op2.var += sizeof(zval);
155 opline->op2.constant = zend_optimizer_add_literal(op_array, val);
157 Z_CACHE_SLOT(op_array->literals[opline->op2.constant]) = op_array->last_cache_slot++;
160 opline->op2.constant = zend_optimizer_add_literal(op_array, val);
178 Z_CACHE_SLOT(op_array->literals[opline->op2.constant]) = op_array->last_cache_slot++;
181 zend_string_hash_val(Z_STR(op_array->literals[opline->op2.constant+1]));
187 zend_string_hash_val(Z_STR(op_array->literals[opline->op2.constant+1]));
203 Z_CACHE_SLOT(op_array->literals[opline->op2.constant]) = op_array->last_cache_slot;
218 Z_CACHE_SLOT(op_array->literals[opline->op2.constant]) = op_array->last_cache_slot;
257 op_array->literals[opline->op2
[all...]
H A Dzend_optimizer_internal.h41 memset(&(opline)->op2, 0, sizeof((opline)->op2)); \
47 #define SAME_VAR(op1, op2) ((((op1 ## _type & IS_VAR) && (op2 ## _type & IS_VAR)) || (op1 ## _type == IS_TMP_VAR && op2 ## _type == IS_TMP_VAR)) && op1.var == op2.var)
/PHP_TRUNK/ext/opcache/
H A DZendAccelerator.h329 # define ZEND_OP2(opline) (opline)->op2
330 # define ZEND_OP2_CONST(opline) (*(opline)->op2.zv)
331 # define ZEND_OP2_LITERAL(opline) (op_array)->literals[(opline)->op2.constant]
/PHP_TRUNK/Zend/
H A Dzend_ini_parser.y51 static void zend_ini_do_op(char type, zval *result, zval *op1, zval *op2)
60 if (op2) {
61 i_op2 = atoi(Z_STRVAL_P(op2));
62 zend_string_free(Z_STR_P(op2));
103 static void zend_ini_add_string(zval *result, zval *op1, zval *op2)
106 int length = op1_len + (int)Z_STRLEN_P(op2);
109 memcpy(Z_STRVAL_P(result)+op1_len, Z_STRVAL_P(op2), Z_STRLEN_P(op2));
H A Dzend_object_handlers.h109 typedef int (*zend_object_compare_zvals_t)(zval *resul, zval *op1, zval *op2);
123 typedef int (*zend_object_do_operation_t)(zend_uchar opcode, zval *result, zval *op1, zval *op2);
H A Dzend_operators.h47 ZEND_API int add_function(zval *result, zval *op1, zval *op2);
48 ZEND_API int sub_function(zval *result, zval *op1, zval *op2);
49 ZEND_API int mul_function(zval *result, zval *op1, zval *op2);
50 ZEND_API int pow_function(zval *result, zval *op1, zval *op2);
51 ZEND_API int div_function(zval *result, zval *op1, zval *op2);
52 ZEND_API int mod_function(zval *result, zval *op1, zval *op2);
53 ZEND_API int boolean_xor_function(zval *result, zval *op1, zval *op2);
56 ZEND_API int bitwise_or_function(zval *result, zval *op1, zval *op2);
57 ZEND_API int bitwise_and_function(zval *result, zval *op1, zval *op2);
58 ZEND_API int bitwise_xor_function(zval *result, zval *op1, zval *op2);
605 fast_add_function(zval *result, zval *op1, zval *op2) argument
716 fast_sub_function(zval *result, zval *op1, zval *op2) argument
829 fast_mul_function(zval *result, zval *op1, zval *op2) argument
854 fast_div_function(zval *result, zval *op1, zval *op2) argument
905 fast_mod_function(zval *result, zval *op1, zval *op2) argument
925 fast_equal_check_function(zval *op1, zval *op2) argument
959 fast_equal_check_long(zval *op1, zval *op2) argument
969 fast_equal_check_string(zval *op1, zval *op2) argument
989 fast_equal_function(zval *result, zval *op1, zval *op2) argument
1030 fast_not_equal_function(zval *result, zval *op1, zval *op2) argument
1071 fast_is_smaller_function(zval *result, zval *op1, zval *op2) argument
1094 fast_is_smaller_or_equal_function(zval *result, zval *op1, zval *op2) argument
1117 fast_is_identical_function(zval *result, zval *op1, zval *op2) argument
1126 fast_is_not_identical_function(zval *result, zval *op1, zval *op2) argument
[all...]
H A Dzend_vm_gen.php147 "ANY" => "get_zval_ptr(opline->op2_type, opline->op2, execute_data, &free_op2, \\1)",
148 "TMP" => "_get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2)",
149 "VAR" => "_get_zval_ptr_var(opline->op2.var, execute_data, &free_op2)",
150 "CONST" => "EX_CONSTANT(opline->op2)",
152 "CV" => "_get_zval_ptr_cv_\\1(execute_data, opline->op2.var)",
153 "TMPVAR" => "_get_zval_ptr_var(opline->op2.var, execute_data, &free_op2)",
167 "ANY" => "get_zval_ptr_ptr(opline->op2_type, opline->op2, execute_data, &free_op2, \\1)",
169 "VAR" => "_get_zval_ptr_ptr_var(opline->op2.var, execute_data, &free_op2)",
172 "CV" => "_get_zval_ptr_cv_\\1(execute_data, opline->op2.var)",
187 "ANY" => "get_zval_ptr_deref(opline->op2_type, opline->op2, execute_dat
392 $op2 = "ANY"; variable
727 $op2 = "TMPVAR"; variable
730 $op2 = "ANY"; variable
1181 $op2 = array_flip(explode("|",$m[4])); variable
1210 $op2 = array_flip(explode("|",$m[3])); variable
1227 $op2 = array_flip(explode("|",$m[3])); variable
[all...]
H A Dzend_ast.c210 zval op1, op2; local
217 zend_ast_evaluate(&op2, ast->child[1], scope);
218 op(result, &op1, &op2);
220 zval_dtor(&op2);
226 /* op1 > op2 is the same as op2 < op1 */
230 zend_ast_evaluate(&op2, ast->child[1], scope);
231 op(result, &op2, &op1);
233 zval_dtor(&op2);
264 zend_ast_evaluate(&op2, as
[all...]
H A Dzend_compile.c477 SET_UNUSED(opline->op2);
495 SET_UNUSED(opline->op2);
508 SET_UNUSED(opline->op2);
756 label = RT_CONSTANT(op_array, opline->op2);
758 label = CT_CONSTANT_EX(op_array, opline->op2.constant);
796 SET_UNUSED(opline->op2);
834 SET_UNUSED(opline->op2);
885 zval *op1, *op2; local
889 op2 = CT_CONSTANT_EX(op_array, opline->op2
924 zval *op1, *op2; local
961 zval *op1, *op2; local
1679 zend_emit_op(znode *result, zend_uchar opcode, znode *op1, znode *op2) argument
1703 zend_emit_op_tmp(znode *result, zend_uchar opcode, znode *op1, znode *op2) argument
1787 zend_delayed_emit_op(znode *result, zend_uchar opcode, znode *op1, znode *op2) argument
5083 zend_ct_eval_binary_op(zval *result, uint32_t opcode, zval *op1, zval *op2) argument
5101 zend_ct_eval_greater(zval *result, zend_ast_kind kind, zval *op1, zval *op2) argument
[all...]
H A Dzend_opcode.c501 op_array->opcodes[op_num - 2].op2.opline_num = fast_call;
522 op_array->opcodes[fast_call].op2.opline_num = finally_op_num - 2;
560 SET_UNUSED(opline->op2);
566 opline->op2.opline_num = op_array->try_catch_array[i].catch_op;
574 SET_UNUSED(opline->op2);
595 SET_UNUSED(opline->op2);
608 SET_UNUSED(opline->op2);
636 op_array->opcodes[op_num].op2.opline_num = finally_op_num;
640 op_array->opcodes[op_num].op2.opline_num = catch_op_num;
663 nest_levels = Z_LVAL(op_array->literals[opline->op2
[all...]
H A Dzend_vm_def.h336 ZEND_VM_HELPER_EX(zend_binary_assign_op_obj_helper, VAR|UNUSED|CV, CONST|TMPVAR|CV, int (*binary_op)(zval *result, zval *op1, zval *op2)) argument
414 ZEND_VM_HELPER_EX(zend_binary_assign_op_dim_helper, VAR|UNUSED|CV, CONST|TMPVAR|UNUSED|CV, int (*binary_op)(zval *result, zval *op1, zval *op2)) argument
476 ZEND_VM_HELPER_EX(zend_binary_assign_op_helper, VAR|CV, CONST|TMPVAR|CV, int (*binary_op)(zval *result, zval *op1, zval *op2)) argument
1126 } else if (CACHED_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op2)))) {
1127 ce = CACHED_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op2)));
1129 ce = zend_fetch_class_by_name(Z_STR_P(EX_CONSTANT(opline->op2)), EX_CONSTANT(opline->op2) + 1, 0);
1138 CACHE_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op2)), ce);
1141 ce = Z_CE_P(EX_VAR(opline->op2.var));
1788 /* zend_assign_to_variable() always takes care of op2, neve
[all...]
H A Dzend_vm_execute.h1125 if ((zce = zend_hash_find(EG(class_table), Z_STR_P(EX_CONSTANT(opline->op2)))) == NULL ||
1176 if (CACHED_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op2)))) {
1177 trait = CACHED_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op2)));
1179 trait = zend_fetch_class_by_name(Z_STR_P(EX_CONSTANT(opline->op2)),
1180 EX_CONSTANT(opline->op2) + 1,
1189 CACHE_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op2)), trait);
1275 ZEND_CALL_NUM_ARGS(call) = opline->op2.num;
1454 ZEND_VM_SET_OPCODE(&EX(func)->op_array.opcodes[opline->op2.opline_num]);
1474 fast_call->u2.lineno = fast_ret->op2.opline_num;
1482 ZEND_VM_SET_OPCODE(&EX(func)->op_array.opcodes[opline->op2
12392 zend_binary_assign_op_obj_helper_SPEC_VAR_CONST(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
12470 zend_binary_assign_op_dim_helper_SPEC_VAR_CONST(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
12531 zend_binary_assign_op_helper_SPEC_VAR_CONST(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
14400 zend_binary_assign_op_dim_helper_SPEC_VAR_UNUSED(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
15272 zend_binary_assign_op_obj_helper_SPEC_VAR_CV(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
15350 zend_binary_assign_op_dim_helper_SPEC_VAR_CV(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
15411 zend_binary_assign_op_helper_SPEC_VAR_CV(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
16790 zend_binary_assign_op_obj_helper_SPEC_VAR_TMPVAR(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
16868 zend_binary_assign_op_dim_helper_SPEC_VAR_TMPVAR(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
16930 zend_binary_assign_op_helper_SPEC_VAR_TMPVAR(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
18193 zend_binary_assign_op_obj_helper_SPEC_UNUSED_CONST(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
18271 zend_binary_assign_op_dim_helper_SPEC_UNUSED_CONST(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
19935 zend_binary_assign_op_dim_helper_SPEC_UNUSED_UNUSED(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
20396 zend_binary_assign_op_obj_helper_SPEC_UNUSED_CV(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
20474 zend_binary_assign_op_dim_helper_SPEC_UNUSED_CV(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
21780 zend_binary_assign_op_obj_helper_SPEC_UNUSED_TMPVAR(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
21858 zend_binary_assign_op_dim_helper_SPEC_UNUSED_TMPVAR(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
24747 zend_binary_assign_op_obj_helper_SPEC_CV_CONST(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
24825 zend_binary_assign_op_dim_helper_SPEC_CV_CONST(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
24886 zend_binary_assign_op_helper_SPEC_CV_CONST(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
27796 zend_binary_assign_op_dim_helper_SPEC_CV_UNUSED(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
29115 zend_binary_assign_op_obj_helper_SPEC_CV_CV(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
29193 zend_binary_assign_op_dim_helper_SPEC_CV_CV(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
29254 zend_binary_assign_op_helper_SPEC_CV_CV(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
31147 zend_binary_assign_op_obj_helper_SPEC_CV_TMPVAR(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
31225 zend_binary_assign_op_dim_helper_SPEC_CV_TMPVAR(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
31287 zend_binary_assign_op_helper_SPEC_CV_TMPVAR(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
[all...]
H A Dzend_operators.c243 #define convert_op1_op2_long(op1, op1_lval, op2, op2_lval, op, op_func) \
260 if (UNEXPECTED(Z_TYPE_P(op2) != IS_LONG)) { \
261 if (Z_ISREF_P(op2)) { \
262 op2 = Z_REFVAL_P(op2); \
263 if (Z_TYPE_P(op2) == IS_LONG) { \
264 op2_lval = Z_LVAL_P(op2); \
269 op2_lval = _zval_get_long_func(op2); \
271 op2_lval = Z_LVAL_P(op2); \
816 ZEND_API int add_function(zval *result, zval *op1, zval *op2) /* {{{ */ argument
880 sub_function(zval *result, zval *op1, zval *op2) argument
933 mul_function(zval *result, zval *op1, zval *op2) argument
980 pow_function(zval *result, zval *op1, zval *op2) argument
1068 div_function(zval *result, zval *op1, zval *op2) argument
1139 mod_function(zval *result, zval *op1, zval *op2) argument
1166 boolean_xor_function(zval *result, zval *op1, zval *op2) argument
1273 bitwise_or_function(zval *result, zval *op1, zval *op2) argument
1331 bitwise_and_function(zval *result, zval *op1, zval *op2) argument
1389 bitwise_xor_function(zval *result, zval *op1, zval *op2) argument
1447 shift_left_function(zval *result, zval *op1, zval *op2) argument
1474 shift_right_function(zval *result, zval *op1, zval *op2) argument
1502 add_char_to_string(zval *result, const zval *op1, const zval *op2) argument
1515 add_string_to_string(zval *result, const zval *op1, const zval *op2) argument
1528 concat_function(zval *result, zval *op1, zval *op2) argument
1606 string_compare_function_ex(zval *result, zval *op1, zval *op2, zend_bool case_insensitive) argument
1623 string_compare_function(zval *result, zval *op1, zval *op2) argument
1645 string_case_compare_function(zval *result, zval *op1, zval *op2) argument
1668 string_locale_compare_function(zval *result, zval *op1, zval *op2) argument
1682 numeric_compare_function(zval *result, zval *op1, zval *op2) argument
1707 compare_function(zval *result, zval *op1, zval *op2) argument
1907 is_identical_function(zval *result, zval *op1, zval *op2) argument
1955 is_not_identical_function(zval *result, zval *op1, zval *op2) argument
1965 is_equal_function(zval *result, zval *op1, zval *op2) argument
1975 is_not_equal_function(zval *result, zval *op1, zval *op2) argument
1985 is_smaller_function(zval *result, zval *op1, zval *op2) argument
1995 is_smaller_or_equal_function(zval *result, zval *op1, zval *op2) argument
2219 zval op2; local
2292 zval op2; local
[all...]
/PHP_TRUNK/ext/standard/
H A Dphp_array.h129 int (*compare_func)(zval *result, zval *op1, zval *op2);
H A Dphp_string.h144 PHPAPI int string_natural_compare_function_ex(zval *result, zval *op1, zval *op2, zend_bool case_insensitive);
145 PHPAPI int string_natural_compare_function(zval *result, zval *op1, zval *op2);
146 PHPAPI int string_natural_case_compare_function(zval *result, zval *op1, zval *op2);
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_opcode.c94 asprintf(&decode[2], "J%u or J%llu", op->op2.opline_num, op->extended_value);
106 asprintf(&decode[2], "J%ld", OP_JMP_ADDR(op, op->op2) - ops->opcodes);
114 decode[2] = phpdbg_decode_op(ops, &op->op2, op->op2_type, vars);

Completed in 97 milliseconds

12