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/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.h106 typedef int (*zend_object_compare_zvals_t)(zval *resul, zval *op1, zval *op2);
120 typedef int (*zend_object_do_operation_t)(zend_uchar opcode, zval *result, zval *op1, zval *op2);
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.c207 zval op1, op2; local
214 zend_ast_evaluate(&op2, ast->child[1], scope);
215 op(result, &op1, &op2);
217 zval_dtor(&op2);
223 /* op1 > op2 is the same as op2 < op1 */
227 zend_ast_evaluate(&op2, ast->child[1], scope);
228 op(result, &op2, &op1);
230 zval_dtor(&op2);
261 zend_ast_evaluate(&op2, as
[all...]
H A Dzend_opcode.c494 op_array->opcodes[op_num - 2].op2.opline_num = fast_call;
515 op_array->opcodes[fast_call].op2.opline_num = finally_op_num - 2;
553 SET_UNUSED(opline->op2);
559 opline->op2.opline_num = op_array->try_catch_array[i].catch_op;
567 SET_UNUSED(opline->op2);
588 SET_UNUSED(opline->op2);
601 SET_UNUSED(opline->op2);
629 op_array->opcodes[op_num].op2.opline_num = finally_op_num;
633 op_array->opcodes[op_num].op2.opline_num = catch_op_num;
656 nest_levels = Z_LVAL(op_array->literals[opline->op2
[all...]
H A Dzend_compile.c443 memset(&opline->op2, 0, sizeof(opline->op2)); \
485 SET_UNUSED(opline->op2);
503 SET_UNUSED(opline->op2);
516 SET_UNUSED(opline->op2);
748 label = RT_CONSTANT(op_array, opline->op2);
750 label = CT_CONSTANT_EX(op_array, opline->op2.constant);
788 SET_UNUSED(opline->op2);
826 SET_UNUSED(opline->op2);
877 zval *op1, *op2; local
917 zval *op1, *op2; local
954 zval *op1, *op2; local
1672 zend_emit_op(znode *result, zend_uchar opcode, znode *op1, znode *op2) argument
1696 zend_emit_op_tmp(znode *result, zend_uchar opcode, znode *op1, znode *op2) argument
1780 zend_delayed_emit_op(znode *result, zend_uchar opcode, znode *op1, znode *op2) argument
5006 zend_ct_eval_binary_op(zval *result, uint32_t opcode, zval *op1, zval *op2) argument
5024 zend_ct_eval_greater(zval *result, zend_ast_kind kind, zval *op1, zval *op2) 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); \
818 ZEND_API int add_function(zval *result, zval *op1, zval *op2) /* {{{ */ argument
882 sub_function(zval *result, zval *op1, zval *op2) argument
935 mul_function(zval *result, zval *op1, zval *op2) argument
982 pow_function(zval *result, zval *op1, zval *op2) argument
1070 div_function(zval *result, zval *op1, zval *op2) argument
1141 mod_function(zval *result, zval *op1, zval *op2) argument
1167 boolean_xor_function(zval *result, zval *op1, zval *op2) argument
1274 bitwise_or_function(zval *result, zval *op1, zval *op2) argument
1332 bitwise_and_function(zval *result, zval *op1, zval *op2) argument
1390 bitwise_xor_function(zval *result, zval *op1, zval *op2) argument
1448 shift_left_function(zval *result, zval *op1, zval *op2) argument
1474 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
2180 zval op2; local
2253 zval op2; local
[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);
562 fast_add_function(zval *result, zval *op1, zval *op2) argument
673 fast_sub_function(zval *result, zval *op1, zval *op2) argument
786 fast_mul_function(zval *result, zval *op1, zval *op2) argument
811 fast_div_function(zval *result, zval *op1, zval *op2) argument
862 fast_mod_function(zval *result, zval *op1, zval *op2) argument
882 fast_equal_check_function(zval *op1, zval *op2) argument
916 fast_equal_function(zval *result, zval *op1, zval *op2) argument
957 fast_not_equal_function(zval *result, zval *op1, zval *op2) argument
998 fast_is_smaller_function(zval *result, zval *op1, zval *op2) argument
1021 fast_is_smaller_or_equal_function(zval *result, zval *op1, zval *op2) argument
1044 fast_is_identical_function(zval *result, zval *op1, zval *op2) argument
1053 fast_is_not_identical_function(zval *result, zval *op1, zval *op2) argument
[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
1115 if (CACHED_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op2)))) {
1116 ce = CACHED_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op2)));
1118 ce = zend_fetch_class_by_name(Z_STR_P(EX_CONSTANT(opline->op2)), EX_CONSTANT(opline->op2) + 1, 0);
1127 CACHE_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op2)), ce);
1130 ce = Z_CE_P(EX_VAR(opline->op2.var));
1759 /* zend_assign_to_variable() always takes care of op2, neve
[all...]
H A Dzend_vm_execute.h1126 if ((zce = zend_hash_find(EG(class_table), Z_STR_P(EX_CONSTANT(opline->op2)))) == NULL ||
1177 if (CACHED_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op2)))) {
1178 trait = CACHED_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op2)));
1180 trait = zend_fetch_class_by_name(Z_STR_P(EX_CONSTANT(opline->op2)),
1181 EX_CONSTANT(opline->op2) + 1,
1190 CACHE_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op2)), trait);
1276 ZEND_CALL_NUM_ARGS(call) = opline->op2.num;
1455 ZEND_VM_SET_OPCODE(&EX(func)->op_array.opcodes[opline->op2.opline_num]);
1475 fast_call->u2.lineno = fast_ret->op2.opline_num;
1483 ZEND_VM_SET_OPCODE(&EX(func)->op_array.opcodes[opline->op2
12185 zend_binary_assign_op_obj_helper_SPEC_VAR_CONST(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
12263 zend_binary_assign_op_dim_helper_SPEC_VAR_CONST(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
12324 zend_binary_assign_op_helper_SPEC_VAR_CONST(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
14202 zend_binary_assign_op_dim_helper_SPEC_VAR_UNUSED(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
15056 zend_binary_assign_op_obj_helper_SPEC_VAR_CV(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
15134 zend_binary_assign_op_dim_helper_SPEC_VAR_CV(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
15195 zend_binary_assign_op_helper_SPEC_VAR_CV(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
16583 zend_binary_assign_op_obj_helper_SPEC_VAR_TMPVAR(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
16661 zend_binary_assign_op_dim_helper_SPEC_VAR_TMPVAR(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
16723 zend_binary_assign_op_helper_SPEC_VAR_TMPVAR(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
17985 zend_binary_assign_op_obj_helper_SPEC_UNUSED_CONST(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
18063 zend_binary_assign_op_dim_helper_SPEC_UNUSED_CONST(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
19724 zend_binary_assign_op_dim_helper_SPEC_UNUSED_UNUSED(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
20167 zend_binary_assign_op_obj_helper_SPEC_UNUSED_CV(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
20245 zend_binary_assign_op_dim_helper_SPEC_UNUSED_CV(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
21548 zend_binary_assign_op_obj_helper_SPEC_UNUSED_TMPVAR(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
21626 zend_binary_assign_op_dim_helper_SPEC_UNUSED_TMPVAR(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
24508 zend_binary_assign_op_obj_helper_SPEC_CV_CONST(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
24586 zend_binary_assign_op_dim_helper_SPEC_CV_CONST(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
24647 zend_binary_assign_op_helper_SPEC_CV_CONST(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
27460 zend_binary_assign_op_dim_helper_SPEC_CV_UNUSED(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
28709 zend_binary_assign_op_obj_helper_SPEC_CV_CV(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
28787 zend_binary_assign_op_dim_helper_SPEC_CV_CV(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
28848 zend_binary_assign_op_helper_SPEC_CV_CV(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
30748 zend_binary_assign_op_obj_helper_SPEC_CV_TMPVAR(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
30826 zend_binary_assign_op_dim_helper_SPEC_CV_TMPVAR(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
30888 zend_binary_assign_op_helper_SPEC_CV_TMPVAR(int (*binary_op)(zval *result, zval *op1, zval *op2), ZEND_OPCODE_HANDLER_ARGS) argument
[all...]
/PHP_TRUNK/ext/intl/collator/
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 );
H A Dcollator_sort.h23 typedef int (*collator_compare_func_t)( zval *result, zval *op1, zval *op2 );
/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 Dpass3.c111 COPY_NODE(opline->op1, opline->op2);
112 COPY_NODE(opline->op2, tmp);
268 SET_UNUSED(opline->op2);
H A Dzend_optimizer_internal.h35 #define MAKE_NOP(opline) { (opline)->opcode = ZEND_NOP; memset(&(opline)->result, 0, sizeof((opline)->result)); memset(&(opline)->op1, 0, sizeof((opline)->op1)); memset(&(opline)->op2, 0, sizeof((opline)->op2));(opline)->result_type=(opline)->op1_type=(opline)->op2_type=IS_UNUSED; (opline)->handler = zend_opcode_handlers[ZEND_NOP]; }
38 #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);
231 /* MAKE_NOP() already set op1 and op2 to IS_UNUSED */
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 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...]
/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/ext/standard/
H A Dphp_array.h130 int (*compare_func)(zval *result, zval *op1, zval *op2);
H A Dphp_string.h148 PHPAPI int string_natural_compare_function_ex(zval *result, zval *op1, zval *op2, zend_bool case_insensitive);
149 PHPAPI int string_natural_compare_function(zval *result, zval *op1, zval *op2);
150 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 68 milliseconds

12