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/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_ast.c213 zval op1, op2; local
220 zend_ast_evaluate(&op2, ast->child[1], scope);
221 op(result, &op1, &op2);
223 zval_dtor(&op2);
229 /* op1 > op2 is the same as op2 < op1 */
233 zend_ast_evaluate(&op2, ast->child[1], scope);
234 op(result, &op2, &op1);
236 zval_dtor(&op2);
267 zend_ast_evaluate(&op2, as
[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); \
815 ZEND_API int add_function(zval *result, zval *op1, zval *op2) /* {{{ */ argument
879 sub_function(zval *result, zval *op1, zval *op2) argument
932 mul_function(zval *result, zval *op1, zval *op2) argument
979 pow_function(zval *result, zval *op1, zval *op2) argument
1067 div_function(zval *result, zval *op1, zval *op2) argument
1138 mod_function(zval *result, zval *op1, zval *op2) argument
1165 boolean_xor_function(zval *result, zval *op1, zval *op2) argument
1272 bitwise_or_function(zval *result, zval *op1, zval *op2) argument
1330 bitwise_and_function(zval *result, zval *op1, zval *op2) argument
1388 bitwise_xor_function(zval *result, zval *op1, zval *op2) argument
1446 shift_left_function(zval *result, zval *op1, zval *op2) argument
1473 shift_right_function(zval *result, zval *op1, zval *op2) argument
1501 add_char_to_string(zval *result, const zval *op1, const zval *op2) argument
1514 add_string_to_string(zval *result, const zval *op1, const zval *op2) argument
1527 concat_function(zval *result, zval *op1, zval *op2) argument
1605 string_compare_function_ex(zval *result, zval *op1, zval *op2, zend_bool case_insensitive) argument
1622 string_compare_function(zval *result, zval *op1, zval *op2) argument
1644 string_case_compare_function(zval *result, zval *op1, zval *op2) argument
1667 string_locale_compare_function(zval *result, zval *op1, zval *op2) argument
1681 numeric_compare_function(zval *result, zval *op1, zval *op2) argument
1706 compare_function(zval *result, zval *op1, zval *op2) argument
1906 is_identical_function(zval *result, zval *op1, zval *op2) argument
1954 is_not_identical_function(zval *result, zval *op1, zval *op2) argument
1964 is_equal_function(zval *result, zval *op1, zval *op2) argument
1974 is_not_equal_function(zval *result, zval *op1, zval *op2) argument
1984 is_smaller_function(zval *result, zval *op1, zval *op2) argument
1994 is_smaller_or_equal_function(zval *result, zval *op1, zval *op2) argument
2218 zval op2; local
2291 zval op2; local
[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_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);
576 fast_add_function(zval *result, zval *op1, zval *op2) argument
687 fast_sub_function(zval *result, zval *op1, zval *op2) argument
800 fast_mul_function(zval *result, zval *op1, zval *op2) argument
825 fast_div_function(zval *result, zval *op1, zval *op2) argument
876 fast_mod_function(zval *result, zval *op1, zval *op2) argument
896 fast_equal_check_function(zval *op1, zval *op2) argument
930 fast_equal_check_long(zval *op1, zval *op2) argument
940 fast_equal_check_string(zval *op1, zval *op2) argument
960 fast_equal_function(zval *result, zval *op1, zval *op2) argument
1001 fast_not_equal_function(zval *result, zval *op1, zval *op2) argument
1042 fast_is_smaller_function(zval *result, zval *op1, zval *op2) argument
1065 fast_is_smaller_or_equal_function(zval *result, zval *op1, zval *op2) argument
1088 fast_is_identical_function(zval *result, zval *op1, zval *op2) argument
1097 fast_is_not_identical_function(zval *result, zval *op1, zval *op2) argument
[all...]
H A Dzend_vm_def.h352 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
431 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
493 ZEND_VM_HELPER_EX(zend_binary_assign_op_helper, VAR|CV, CONST|TMPVAR|CV, int (*binary_op)(zval *result, zval *op1, zval *op2)) argument
1145 } else if (CACHED_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op2)))) {
1146 ce = CACHED_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op2)));
1148 ce = zend_fetch_class_by_name(Z_STR_P(EX_CONSTANT(opline->op2)), EX_CONSTANT(opline->op2) + 1, 0);
1157 CACHE_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op2)), ce);
1160 ce = Z_CE_P(EX_VAR(opline->op2.var));
1662 zval *value = zend_fetch_dimension_address_inner(Z_ARRVAL_P(container), EX_CONSTANT(opline->op2), OP2_TYP
[all...]
H A Dzend_vm_execute.h1308 if ((zce = zend_hash_find(EG(class_table), Z_STR_P(EX_CONSTANT(opline->op2)))) == NULL ||
1359 if (CACHED_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op2)))) {
1360 trait = CACHED_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op2)));
1362 trait = zend_fetch_class_by_name(Z_STR_P(EX_CONSTANT(opline->op2)),
1363 EX_CONSTANT(opline->op2) + 1,
1372 CACHE_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op2)), trait);
1462 ZEND_CALL_NUM_ARGS(call) = opline->op2.num;
1653 ZEND_VM_SET_OPCODE(&EX(func)->op_array.opcodes[opline->op2.opline_num]);
1673 fast_call->u2.lineno = fast_ret->op2.opline_num;
1681 ZEND_VM_SET_OPCODE(&EX(func)->op_array.opcodes[opline->op2
12949 zend_binary_assign_op_obj_helper_SPEC_VAR_CONST(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
13028 zend_binary_assign_op_dim_helper_SPEC_VAR_CONST(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
13089 zend_binary_assign_op_helper_SPEC_VAR_CONST(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
14987 zend_binary_assign_op_dim_helper_SPEC_VAR_UNUSED(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
15887 zend_binary_assign_op_obj_helper_SPEC_VAR_CV(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
15966 zend_binary_assign_op_dim_helper_SPEC_VAR_CV(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
16027 zend_binary_assign_op_helper_SPEC_VAR_CV(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
17435 zend_binary_assign_op_obj_helper_SPEC_VAR_TMPVAR(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
17514 zend_binary_assign_op_dim_helper_SPEC_VAR_TMPVAR(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
17576 zend_binary_assign_op_helper_SPEC_VAR_TMPVAR(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
18868 zend_binary_assign_op_obj_helper_SPEC_UNUSED_CONST(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
18947 zend_binary_assign_op_dim_helper_SPEC_UNUSED_CONST(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
20624 zend_binary_assign_op_dim_helper_SPEC_UNUSED_UNUSED(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
21086 zend_binary_assign_op_obj_helper_SPEC_UNUSED_CV(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
21165 zend_binary_assign_op_dim_helper_SPEC_UNUSED_CV(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
22484 zend_binary_assign_op_obj_helper_SPEC_UNUSED_TMPVAR(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
22563 zend_binary_assign_op_dim_helper_SPEC_UNUSED_TMPVAR(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
25555 zend_binary_assign_op_obj_helper_SPEC_CV_CONST(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
25634 zend_binary_assign_op_dim_helper_SPEC_CV_CONST(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
25695 zend_binary_assign_op_helper_SPEC_CV_CONST(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
28644 zend_binary_assign_op_dim_helper_SPEC_CV_UNUSED(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
30007 zend_binary_assign_op_obj_helper_SPEC_CV_CV(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
30086 zend_binary_assign_op_dim_helper_SPEC_CV_CV(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
30147 zend_binary_assign_op_helper_SPEC_CV_CV(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
32096 zend_binary_assign_op_obj_helper_SPEC_CV_TMPVAR(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
32175 zend_binary_assign_op_dim_helper_SPEC_CV_TMPVAR(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
32237 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_compile.c467 SET_UNUSED(opline->op2);
485 SET_UNUSED(opline->op2);
498 SET_UNUSED(opline->op2);
746 label = RT_CONSTANT(op_array, opline->op2);
748 label = CT_CONSTANT_EX(op_array, opline->op2.constant);
786 SET_UNUSED(opline->op2);
824 SET_UNUSED(opline->op2);
876 zval *op1, *op2; local
880 op2 = CT_CONSTANT_EX(op_array, opline->op2
917 zval *op1, *op2; local
954 zval *op1, *op2; local
1706 zend_emit_op(znode *result, zend_uchar opcode, znode *op1, znode *op2) argument
1730 zend_emit_op_tmp(znode *result, zend_uchar opcode, znode *op1, znode *op2) argument
1814 zend_delayed_emit_op(znode *result, zend_uchar opcode, znode *op1, znode *op2) argument
5268 zend_ct_eval_binary_op(zval *result, uint32_t opcode, zval *op1, zval *op2) argument
5286 zend_ct_eval_greater(zval *result, zend_ast_kind kind, zval *op1, zval *op2) argument
[all...]
H A Dzend_opcode.c518 op_array->opcodes[op_num - 2].op2.opline_num = fast_call;
539 op_array->opcodes[fast_call].op2.opline_num = finally_op_num - 2;
577 SET_UNUSED(opline->op2);
583 opline->op2.opline_num = op_array->try_catch_array[i].catch_op;
591 SET_UNUSED(opline->op2);
612 SET_UNUSED(opline->op2);
625 SET_UNUSED(opline->op2);
653 op_array->opcodes[op_num].op2.opline_num = finally_op_num;
657 op_array->opcodes[op_num].op2.opline_num = catch_op_num;
680 nest_levels = Z_LVAL(op_array->literals[opline->op2
[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);
/PHP_TRUNK/ext/opcache/Optimizer/
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)
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);
233 /* 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 Dcompact_literals.c139 LITERAL_INFO(opline->op2.constant, LITERAL_FUNC, 1, 1, 1);
142 LITERAL_INFO(opline->op2.constant, LITERAL_FUNC, 1, 1, 2);
145 LITERAL_INFO(opline->op2.constant, LITERAL_FUNC, 1, 1, 3);
153 opline->op2.constant,
167 opline->op2.constant,
181 LITERAL_INFO(opline->op2.constant, LITERAL_CONST, 1, 1, 5);
183 LITERAL_INFO(opline->op2.constant, LITERAL_CONST, 1, 1, 3);
193 opline->op2.constant,
212 LITERAL_INFO(opline->op2.constant, LITERAL_CLASS, 1, 1, 2);
218 opline->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;
652 } else if (op->op2_type == IS_VAR && op->op2.var == var) {
668 } else if (use->op2_type == IS_VAR && use->op2.var == var) {
670 use->op2.var = zend_optimizer_lookup_cv(op_array,
H A Dzend_optimizer.c86 opline->op2.var += sizeof(zval);
156 opline->op2.constant = zend_optimizer_add_literal(op_array, val);
158 Z_CACHE_SLOT(op_array->literals[opline->op2.constant]) = op_array->cache_size;
162 opline->op2.constant = zend_optimizer_add_literal(op_array, val);
180 Z_CACHE_SLOT(op_array->literals[opline->op2.constant]) = op_array->cache_size;
184 zend_string_hash_val(Z_STR(op_array->literals[opline->op2.constant+1]));
188 Z_CACHE_SLOT(op_array->literals[opline->op2.constant]) = op_array->cache_size;
192 zend_string_hash_val(Z_STR(op_array->literals[opline->op2.constant+1]));
198 zend_string_hash_val(Z_STR(op_array->literals[opline->op2.constant+1]));
214 Z_CACHE_SLOT(op_array->literals[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];
88 Z_CACHE_SLOT(op_array->literals[fcall->op2.constant + 1]) = Z_CACHE_SLOT(op_array->literals[fcall->op2.constant]);
90 fcall->op2.constant = fcall->op2.constant + 1;
95 Z_CACHE_SLOT(op_array->literals[fcall->op2.constant + 1]) = Z_CACHE_SLOT(op_array->literals[fcall->op2.constant]);
96 literal_dtor(&op_array->literals[fcall->op2.constant]);
97 literal_dtor(&op_array->literals[fcall->op2
[all...]
/PHP_TRUNK/ext/opcache/
H A DZendAccelerator.h331 # define ZEND_OP2(opline) (opline)->op2
332 # define ZEND_OP2_CONST(opline) (*(opline)->op2.zv)
333 # define ZEND_OP2_LITERAL(opline) (op_array)->literals[(opline)->op2.constant]

Completed in 100 milliseconds

12