Searched refs:op2 (Results 1 - 25 of 36) 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_ast.c213 zval op1, op2; local
220 zend_ast_evaluate(&op2, ast->child[1], scope TSRMLS_CC);
221 op(result, &op1, &op2 TSRMLS_CC);
223 zval_dtor(&op2);
229 /* op1 > op2 is the same as op2 < op1 */
233 zend_ast_evaluate(&op2, ast->child[1], scope TSRMLS_CC);
234 op(result, &op2, &op1 TSRMLS_CC);
236 zval_dtor(&op2);
267 zend_ast_evaluate(&op2, as
[all...]
H A Dzend_object_handlers.h106 typedef int (*zend_object_compare_zvals_t)(zval *resul, zval *op1, zval *op2 TSRMLS_DC);
120 typedef int (*zend_object_do_operation_t)(zend_uchar opcode, zval *result, zval *op1, zval *op2 TSRMLS_DC);
H A Dzend_operators.h47 ZEND_API int add_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
48 ZEND_API int sub_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
49 ZEND_API int mul_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
50 ZEND_API int pow_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
51 ZEND_API int div_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
52 ZEND_API int mod_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
53 ZEND_API int boolean_xor_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
56 ZEND_API int bitwise_or_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
57 ZEND_API int bitwise_and_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
58 ZEND_API int bitwise_xor_function(zval *result, zval *op1, zval *op2 TSRMLS_D
[all...]
H A Dzend_operators.c877 ZEND_API int add_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) /* {{{ */
883 switch (TYPE_PAIR(Z_TYPE_P(op1), Z_TYPE_P(op2))) {
885 zend_long lval = Z_LVAL_P(op1) + Z_LVAL_P(op2);
888 if ((Z_LVAL_P(op1) & LONG_SIGN_MASK) == (Z_LVAL_P(op2) & LONG_SIGN_MASK)
891 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2));
899 ZVAL_DOUBLE(result, ((double)Z_LVAL_P(op1)) + Z_DVAL_P(op2));
903 ZVAL_DOUBLE(result, Z_DVAL_P(op1) + ((double)Z_LVAL_P(op2)));
907 ZVAL_DOUBLE(result, Z_DVAL_P(op1) + Z_DVAL_P(op2));
911 if ((result == op1) && (result == op2)) {
918 zend_hash_merge(Z_ARRVAL_P(result), Z_ARRVAL_P(op2), zval_add_re
1500 add_char_to_string(zval *result, const zval *op1, const zval *op2) argument
1513 add_string_to_string(zval *result, const zval *op1, const zval *op2) argument
1592 string_compare_function_ex(zval *result, zval *op1, zval *op2, zend_bool case_insensitive TSRMLS_DC) argument
2172 zval op2; local
2247 zval op2; local
[all...]
H A Dzend_ini_parser.y53 static void zend_ini_do_op(char type, zval *result, zval *op1, zval *op2)
62 if (op2) {
63 i_op2 = atoi(Z_STRVAL_P(op2));
64 zend_string_free(Z_STR_P(op2));
105 static void zend_ini_add_string(zval *result, zval *op1, zval *op2)
108 int length = op1_len + (int)Z_STRLEN_P(op2);
111 memcpy(Z_STRVAL_P(result)+op1_len, Z_STRVAL_P(op2), Z_STRLEN_P(op2));
H A Dzend_vm_gen.php130 "ANY" => "get_zval_ptr(opline->op2_type, &opline->op2, execute_data, &free_op2, \\1)",
131 "TMP" => "_get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2)",
132 "VAR" => "_get_zval_ptr_var(opline->op2.var, execute_data, &free_op2)",
133 "CONST" => "opline->op2.zv",
135 "CV" => "_get_zval_ptr_cv_\\1(execute_data, opline->op2.var TSRMLS_CC)",
148 "ANY" => "get_zval_ptr_ptr(opline->op2_type, &opline->op2, execute_data, &free_op2, \\1)",
150 "VAR" => "_get_zval_ptr_ptr_var(opline->op2.var, execute_data, &free_op2)",
153 "CV" => "_get_zval_ptr_cv_\\1(execute_data, opline->op2.var TSRMLS_CC)",
166 "ANY" => "get_zval_ptr_deref(opline->op2_type, &opline->op2, execute_data, &free_op2, \\1)",
167 "TMP" => "_get_zval_ptr_tmp(opline->op2
336 $op2 = "ANY"; variable
662 $op2 = "ANY"; variable
1109 $op2 = array_flip(explode("|",$m[4])); variable
1138 $op2 = array_flip(explode("|",$m[3])); variable
1155 $op2 = array_flip(explode("|",$m[3])); variable
[all...]
H A Dzend_opcode.c490 op_array->opcodes[op_num - 2].op2.opline_num = fast_call;
511 op_array->opcodes[fast_call].op2.opline_num = finally_op_num - 2;
549 SET_UNUSED(opline->op2);
555 opline->op2.opline_num = op_array->try_catch_array[i].catch_op;
563 SET_UNUSED(opline->op2);
584 SET_UNUSED(opline->op2);
597 SET_UNUSED(opline->op2);
625 op_array->opcodes[op_num].op2.opline_num = finally_op_num;
629 op_array->opcodes[op_num].op2.opline_num = catch_op_num;
652 nest_levels = Z_LVAL(op_array->literals[opline->op2
[all...]
H A Dzend_vm_def.h329 ZEND_VM_HELPER_EX(zend_binary_assign_op_obj_helper, VAR|UNUSED|CV, CONST|TMP|VAR|UNUSED|CV, int (*binary_op)(zval *result, zval *op1, zval *op2 TSRMLS_DC))
423 ZEND_VM_HELPER_EX(zend_binary_assign_op_dim_helper, VAR|UNUSED|CV, CONST|TMP|VAR|UNUSED|CV, int (*binary_op)(zval *result, zval *op1, zval *op2 TSRMLS_DC))
479 ZEND_VM_HELPER_EX(zend_binary_assign_op_helper, VAR|UNUSED|CV, CONST|TMP|VAR|UNUSED|CV, int (*binary_op)(zval *result, zval *op1, zval *op2 TSRMLS_DC))
1049 if (CACHED_PTR(Z_CACHE_SLOT_P(opline->op2.zv))) {
1050 ce = CACHED_PTR(Z_CACHE_SLOT_P(opline->op2.zv));
1052 ce = zend_fetch_class_by_name(Z_STR_P(opline->op2.zv), opline->op2.zv + 1, 0 TSRMLS_CC);
1061 CACHE_PTR(Z_CACHE_SLOT_P(opline->op2.zv), ce);
1064 ce = Z_CE_P(EX_VAR(opline->op2.var));
1665 /* zend_assign_to_variable() always takes care of op2, neve
[all...]
H A Dzend_vm_execute.h1117 if ((zce = zend_hash_find(EG(class_table), Z_STR_P(opline->op2.zv))) == NULL ||
1168 if (CACHED_PTR(Z_CACHE_SLOT_P(opline->op2.zv))) {
1169 trait = CACHED_PTR(Z_CACHE_SLOT_P(opline->op2.zv));
1171 trait = zend_fetch_class_by_name(Z_STR_P(opline->op2.zv),
1172 opline->op2.zv + 1,
1181 CACHE_PTR(Z_CACHE_SLOT_P(opline->op2.zv), trait);
1376 ZEND_VM_SET_OPCODE(&EX(func)->op_array.opcodes[opline->op2.opline_num]);
1396 fast_call->u2.lineno = fast_ret->op2.opline_num;
1404 ZEND_VM_SET_OPCODE(&EX(func)->op_array.opcodes[opline->op2.opline_num]);
1410 ZEND_VM_SET_OPCODE(&EX(func)->op_array.opcodes[opline->op2
[all...]
H A Dzend_compile.c453 memset(&opline->op2, 0, sizeof(opline->op2)); \
495 SET_UNUSED(opline->op2);
513 SET_UNUSED(opline->op2);
526 SET_UNUSED(opline->op2);
758 label = opline->op2.zv;
760 label = &CONSTANT_EX(op_array, opline->op2.constant);
798 SET_UNUSED(opline->op2);
836 SET_UNUSED(opline->op2);
887 zval *op1, *op2; local
927 zval *op1, *op2; local
964 zval *op1, *op2; local
[all...]
/PHP_TRUNK/ext/intl/collator/
H A Dcollator_sort.h23 typedef int (*collator_compare_func_t)( zval *result, zval *op1, zval *op2 TSRMLS_DC );
H A Dcollator_sort.c53 static int collator_regular_compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC)
63 zval* str2_p = collator_convert_object_to_string( op2, &str2 TSRMLS_CC );
145 static int collator_numeric_compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC)
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 TSRMLS_CC);
178 static int collator_icu_compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC)
187 str2_p = collator_make_printable_zval( op2, &str2 );
/PHP_TRUNK/ext/standard/
H A Dphp_array.h129 int (*compare_func)(zval *result, zval *op1, zval *op2 TSRMLS_DC);
H A Dphp_string.h146 PHPAPI int string_natural_compare_function_ex(zval *result, zval *op1, zval *op2, zend_bool case_insensitive TSRMLS_DC);
147 PHPAPI int string_natural_compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
148 PHPAPI int string_natural_case_compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
/PHP_TRUNK/ext/opcache/Optimizer/
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 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 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 Dpass1_5.c71 int (*binary_op)(zval *result, zval *op1, zval *op2 TSRMLS_DC) = get_binary_op(opline->opcode);
358 if (send1_opline->op2.num == 2) {
403 opline->op2.constant = send2_opline->op1.constant;
650 } else if (op->op2_type == IS_VAR && op->op2.var == var) {
666 } else if (use->op2_type == IS_VAR && use->op2.var == var) {
668 use->op2.var = zend_optimizer_lookup_cv(op_array,
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];
83 Z_CACHE_SLOT(op_array->literals[fcall->op2.constant + 1]) = Z_CACHE_SLOT(op_array->literals[fcall->op2.constant]);
85 fcall->op2.constant = fcall->op2.constant + 1;
88 Z_CACHE_SLOT(op_array->literals[fcall->op2.constant + 1]) = Z_CACHE_SLOT(op_array->literals[fcall->op2.constant]);
89 literal_dtor(&op_array->literals[fcall->op2.constant]);
90 literal_dtor(&op_array->literals[fcall->op2
[all...]
H A Dzend_optimizer.c86 opline->op2.var += sizeof(zval);
155 opline->op2.constant = zend_optimizer_add_literal(op_array, val TSRMLS_CC);
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 TSRMLS_CC);
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 Dblock_pass.c636 VAR_SOURCE(opline->op2) &&
637 VAR_SOURCE(opline->op2)->opcode == ZEND_QM_ASSIGN &&
638 ZEND_OP1_TYPE(VAR_SOURCE(opline->op2)) == IS_CONST) {
639 zend_op *src = VAR_SOURCE(opline->op2);
641 VAR_UNSET(opline->op2);
658 VAR_SOURCE(opline->op2) &&
659 VAR_SOURCE(opline->op2)->opcode == ZEND_PRINT) {
661 LITERAL_LONG(opline->op2, 1);
785 COPY_NODE(opline->op1, opline->op2);
786 SET_UNUSED(opline->op2);
[all...]
/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->op2.jmp_addr - ops->opcodes);
114 decode[2] = phpdbg_decode_op(ops, &op->op2, op->op2_type, vars TSRMLS_CC);
/PHP_TRUNK/ext/opcache/
H A DZendAccelerator.h326 # define ZEND_OP2(opline) (opline)->op2
327 # define ZEND_OP2_CONST(opline) (*(opline)->op2.zv)
328 # define ZEND_OP2_LITERAL(opline) (op_array)->literals[(opline)->op2.constant]

Completed in 59 milliseconds

12