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_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_vm_gen.php153 "ANY" => "get_zval_ptr(opline->op2_type, opline->op2, execute_data, &free_op2, \\1)",
154 "TMP" => "_get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2)",
155 "VAR" => "_get_zval_ptr_var(opline->op2.var, execute_data, &free_op2)",
156 "CONST" => "EX_CONSTANT(opline->op2)",
158 "CV" => "_get_zval_ptr_cv_\\1(execute_data, opline->op2.var)",
159 "TMPVAR" => "_get_zval_ptr_var(opline->op2.var, execute_data, &free_op2)",
173 "ANY" => "get_zval_ptr_ptr(opline->op2_type, opline->op2, execute_data, &free_op2, \\1)",
175 "VAR" => "_get_zval_ptr_ptr_var(opline->op2.var, execute_data, &free_op2)",
178 "CV" => "_get_zval_ptr_cv_\\1(execute_data, opline->op2.var)",
193 "ANY" => "get_zval_ptr_deref(opline->op2_type, opline->op2, execute_dat
438 $op2 = "ANY"; variable
782 $op2 = "TMPVAR"; variable
785 $op2 = "ANY"; variable
1276 $op2 = array_flip(explode("|",$m[4])); variable
1305 $op2 = array_flip(explode("|",$m[3])); variable
1322 $op2 = array_flip(explode("|",$m[3])); variable
[all...]
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_opcode.c517 op_array->opcodes[op_num - 2].op2.opline_num = fast_call;
538 op_array->opcodes[fast_call].op2.opline_num = finally_op_num - 2;
576 SET_UNUSED(opline->op2);
582 opline->op2.opline_num = op_array->try_catch_array[i].catch_op;
590 SET_UNUSED(opline->op2);
611 SET_UNUSED(opline->op2);
624 SET_UNUSED(opline->op2);
652 op_array->opcodes[op_num].op2.opline_num = finally_op_num;
656 op_array->opcodes[op_num].op2.opline_num = catch_op_num;
679 nest_levels = Z_LVAL(op_array->literals[opline->op2
[all...]
H A Dzend_operators.h47 ZEND_API int ZEND_FASTCALL add_function(zval *result, zval *op1, zval *op2);
48 ZEND_API int ZEND_FASTCALL sub_function(zval *result, zval *op1, zval *op2);
49 ZEND_API int ZEND_FASTCALL mul_function(zval *result, zval *op1, zval *op2);
50 ZEND_API int ZEND_FASTCALL pow_function(zval *result, zval *op1, zval *op2);
51 ZEND_API int ZEND_FASTCALL div_function(zval *result, zval *op1, zval *op2);
52 ZEND_API int ZEND_FASTCALL mod_function(zval *result, zval *op1, zval *op2);
53 ZEND_API int ZEND_FASTCALL boolean_xor_function(zval *result, zval *op1, zval *op2);
56 ZEND_API int ZEND_FASTCALL bitwise_or_function(zval *result, zval *op1, zval *op2);
57 ZEND_API int ZEND_FASTCALL bitwise_and_function(zval *result, zval *op1, zval *op2);
58 ZEND_API int ZEND_FASTCALL bitwise_xor_function(zval *result, zval *op1, zval *op2);
564 fast_long_add_function(zval *result, zval *op1, zval *op2) argument
658 fast_add_function(zval *result, zval *op1, zval *op2) argument
680 fast_long_sub_function(zval *result, zval *op1, zval *op2) argument
776 fast_div_function(zval *result, zval *op1, zval *op2) argument
827 fast_equal_check_function(zval *op1, zval *op2) argument
861 fast_equal_check_long(zval *op1, zval *op2) argument
871 fast_equal_check_string(zval *op1, zval *op2) argument
891 fast_is_identical_function(zval *result, zval *op1, zval *op2) argument
900 fast_is_not_identical_function(zval *result, zval *op1, zval *op2) argument
[all...]
H A Dzend_compile.c557 SET_UNUSED(opline->op2);
575 SET_UNUSED(opline->op2);
588 SET_UNUSED(opline->op2);
836 label = RT_CONSTANT(op_array, opline->op2);
838 label = CT_CONSTANT_EX(op_array, opline->op2.constant);
876 SET_UNUSED(opline->op2);
914 SET_UNUSED(opline->op2);
966 zval *op1, *op2; local
970 op2 = CT_CONSTANT_EX(op_array, opline->op2
1007 zval *op1, *op2; local
1044 zval *op1, *op2; local
1800 zend_emit_op(znode *result, zend_uchar opcode, znode *op1, znode *op2) argument
1824 zend_emit_op_tmp(znode *result, zend_uchar opcode, znode *op1, znode *op2) argument
1908 zend_delayed_emit_op(znode *result, zend_uchar opcode, znode *op1, znode *op2) argument
5427 zend_ct_eval_binary_op(zval *result, uint32_t opcode, zval *op1, zval *op2) argument
5445 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); \
815 ZEND_API int ZEND_FASTCALL 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
1500 concat_function(zval *result, zval *op1, zval *op2) argument
1578 string_compare_function_ex(zval *result, zval *op1, zval *op2, zend_bool case_insensitive) argument
1595 string_compare_function(zval *result, zval *op1, zval *op2) argument
1617 string_case_compare_function(zval *result, zval *op1, zval *op2) argument
1640 string_locale_compare_function(zval *result, zval *op1, zval *op2) argument
1654 numeric_compare_function(zval *result, zval *op1, zval *op2) argument
1679 compare_function(zval *result, zval *op1, zval *op2) argument
1879 is_identical_function(zval *result, zval *op1, zval *op2) argument
1927 is_not_identical_function(zval *result, zval *op1, zval *op2) argument
1937 is_equal_function(zval *result, zval *op1, zval *op2) argument
1947 is_not_equal_function(zval *result, zval *op1, zval *op2) argument
1957 is_smaller_function(zval *result, zval *op1, zval *op2) argument
1967 is_smaller_or_equal_function(zval *result, zval *op1, zval *op2) argument
2185 zval op2; local
2253 zval op2; local
[all...]
H A Dzend_vm_def.h32 zval *op1, *op2, *result; variable
35 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
37 if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) {
39 fast_long_add_function(result, op1, op2);
41 } else if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) {
43 ZVAL_DOUBLE(result, ((double)Z_LVAL_P(op1)) + Z_DVAL_P(op2));
47 if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) {
49 ZVAL_DOUBLE(result, Z_DVAL_P(op1) + Z_DVAL_P(op2));
51 } else if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) {
53 ZVAL_DOUBLE(result, Z_DVAL_P(op1) + ((double)Z_LVAL_P(op2)));
76 zval *op1, *op2, *result; variable
120 zval *op1, *op2, *result; variable
182 zval *op1, *op2, *result; variable
298 zval *op1, *op2, *result; variable
366 zval *op1, *op2, *result; variable
434 zval *op1, *op2, *result; variable
476 zval *op1, *op2, *result; variable
2586 zval *op1, *op2; variable
4601 zval *op1, *op2, *result; variable
[all...]
H A Dzend_vm_execute.h1364 if ((zce = zend_hash_find(EG(class_table), Z_STR_P(EX_CONSTANT(opline->op2)))) == NULL ||
1415 if (CACHED_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op2)))) {
1416 trait = CACHED_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op2)));
1418 trait = zend_fetch_class_by_name(Z_STR_P(EX_CONSTANT(opline->op2)),
1419 EX_CONSTANT(opline->op2) + 1,
1428 CACHE_PTR(Z_CACHE_SLOT_P(EX_CONSTANT(opline->op2)), trait);
1519 ZEND_CALL_NUM_ARGS(call) = opline->op2.num;
1722 ZEND_VM_SET_OPCODE(&EX(func)->op_array.opcodes[opline->op2.opline_num]);
1742 fast_call->u2.lineno = fast_ret->op2.opline_num;
1750 ZEND_VM_SET_OPCODE(&EX(func)->op_array.opcodes[opline->op2
3915 zval *op1, *op2, *result; local
3959 zval *op1, *op2, *result; local
4003 zval *op1, *op2, *result; local
4065 zval *op1, *op2, *result; local
4181 zval *op1, *op2, *result; local
4249 zval *op1, *op2, *result; local
4317 zval *op1, *op2, *result; local
4359 zval *op1, *op2, *result; local
4937 zval *op1, *op2; local
5165 zval *op1, *op2, *result; local
7544 zval *op1, *op2, *result; local
7588 zval *op1, *op2, *result; local
7632 zval *op1, *op2, *result; local
7694 zval *op1, *op2, *result; local
7810 zval *op1, *op2, *result; local
7878 zval *op1, *op2, *result; local
7946 zval *op1, *op2, *result; local
7988 zval *op1, *op2, *result; local
8349 zval *op1, *op2; local
8628 zval *op1, *op2, *result; local
9122 zval *op1, *op2, *result; local
9166 zval *op1, *op2, *result; local
9210 zval *op1, *op2, *result; local
9272 zval *op1, *op2, *result; local
9357 zval *op1, *op2, *result; local
9425 zval *op1, *op2, *result; local
9493 zval *op1, *op2, *result; local
9535 zval *op1, *op2, *result; local
9898 zval *op1, *op2; local
10127 zval *op1, *op2, *result; local
27582 zval *op1, *op2, *result; local
27626 zval *op1, *op2, *result; local
27670 zval *op1, *op2, *result; local
27732 zval *op1, *op2, *result; local
27848 zval *op1, *op2, *result; local
27916 zval *op1, *op2, *result; local
27984 zval *op1, *op2, *result; local
28026 zval *op1, *op2, *result; local
29519 zval *op1, *op2; local
29647 zval *op1, *op2, *result; local
32575 zval *op1, *op2, *result; local
32619 zval *op1, *op2, *result; local
32663 zval *op1, *op2, *result; local
32725 zval *op1, *op2, *result; local
32841 zval *op1, *op2, *result; local
32909 zval *op1, *op2, *result; local
32977 zval *op1, *op2, *result; local
33019 zval *op1, *op2, *result; local
34357 zval *op1, *op2; local
34485 zval *op1, *op2, *result; local
35109 zval *op1, *op2, *result; local
35153 zval *op1, *op2, *result; local
35197 zval *op1, *op2, *result; local
35259 zval *op1, *op2, *result; local
35344 zval *op1, *op2, *result; local
35412 zval *op1, *op2, *result; local
35480 zval *op1, *op2, *result; local
35522 zval *op1, *op2, *result; local
36772 zval *op1, *op2; local
36901 zval *op1, *op2, *result; local
37944 zval *op1, *op2, *result; local
37988 zval *op1, *op2, *result; local
38032 zval *op1, *op2, *result; local
38094 zval *op1, *op2, *result; local
38179 zval *op1, *op2, *result; local
38247 zval *op1, *op2, *result; local
38315 zval *op1, *op2, *result; local
38357 zval *op1, *op2, *result; local
38788 zval *op1, *op2; local
38917 zval *op1, *op2, *result; local
40147 zval *op1, *op2, *result; local
40191 zval *op1, *op2, *result; local
40235 zval *op1, *op2, *result; local
40297 zval *op1, *op2, *result; local
40382 zval *op1, *op2, *result; local
40450 zval *op1, *op2, *result; local
40518 zval *op1, *op2, *result; local
40560 zval *op1, *op2, *result; local
40773 zval *op1, *op2; local
40902 zval *op1, *op2, *result; local
41136 zval *op1, *op2, *result; local
41180 zval *op1, *op2, *result; local
41224 zval *op1, *op2, *result; local
41286 zval *op1, *op2, *result; local
41371 zval *op1, *op2, *result; local
41439 zval *op1, *op2, *result; local
41507 zval *op1, *op2, *result; local
41549 zval *op1, *op2, *result; local
41763 zval *op1, *op2; local
41893 zval *op1, *op2, *result; 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/ext/opcache/Optimizer/
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 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...]
H A Dblock_pass.c646 VAR_SOURCE(opline->op2) &&
647 VAR_SOURCE(opline->op2)->opcode == ZEND_QM_ASSIGN &&
648 ZEND_OP1_TYPE(VAR_SOURCE(opline->op2)) == IS_CONST) {
649 zend_op *src = VAR_SOURCE(opline->op2);
651 VAR_UNSET(opline->op2);
767 COPY_NODE(opline->op1, opline->op2);
768 SET_UNUSED(opline->op2);
780 SET_UNUSED(opline->op2);
997 SET_UNUSED(opline->op2);
1040 VAR_SOURCE(opline->op2)
[all...]
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 */
99 /* break missing *intentionally - the assign_op's may only optimize op2 */
129 SET_UNUSED(opline->op2);
146 COPY_NODE(opline->op1, opline->op2);
163 COPY_NODE(opline->op2, (opline + 1)->op1);
234 /* MAKE_NOP() already set op1 and op2 to IS_UNUSED */
H A Dzend_optimizer.c86 opline->op2.var += sizeof(zval);
167 opline->op2.constant = zend_optimizer_add_literal(op_array, val);
169 Z_CACHE_SLOT(op_array->literals[opline->op2.constant]) = op_array->cache_size;
179 opline->op2.constant = zend_optimizer_add_literal(op_array, val);
197 Z_CACHE_SLOT(op_array->literals[opline->op2.constant]) = op_array->cache_size;
201 zend_string_hash_val(Z_STR(op_array->literals[opline->op2.constant+1]));
205 Z_CACHE_SLOT(op_array->literals[opline->op2.constant]) = op_array->cache_size;
209 zend_string_hash_val(Z_STR(op_array->literals[opline->op2.constant+1]));
215 zend_string_hash_val(Z_STR(op_array->literals[opline->op2.constant+1]));
231 Z_CACHE_SLOT(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)
H A Dpass1_5.c366 if (send1_opline->op2.num == 2) {
411 opline->op2.constant = send2_opline->op1.constant;
674 } else if (op->op2_type == IS_VAR && op->op2.var == var) {
690 } else if (use->op2_type == IS_VAR && use->op2.var == var) {
692 use->op2.var = zend_optimizer_lookup_cv(op_array,
/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]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_opcode.c94 asprintf(&decode[2], "J%u or J%" PRIu32, 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 78 milliseconds

12