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

12

/PHP_TRUNK/ext/intl/collator/
H A Dcollator_sort.c53 static int collator_regular_compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC)
60 zval* str2 = collator_convert_object_to_string( op2 TSRMLS_CC );
148 static int collator_numeric_compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC)
160 if( Z_TYPE_P(op2) == IS_STRING )
162 num2 = collator_convert_string_to_double( op2 );
163 op2 = num2;
166 rc = numeric_compare_function( result, op1, op2 TSRMLS_CC);
180 static int collator_icu_compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC)
188 str2 = collator_make_printable_zval( op2 );
H A Dcollator_sort.h23 typedef int (*collator_compare_func_t)( zval *result, zval *op1, zval *op2 TSRMLS_DC );
/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/opcache/Optimizer/
H A Dcompact_literals.c116 LITERAL_INFO(opline->op2.constant, LITERAL_FUNC, 1, 1, 2);
120 LITERAL_INFO(opline->op2.constant, LITERAL_FUNC, 1, 1, 3);
128 opline->op2.constant,
142 opline->op2.constant,
153 LITERAL_INFO(opline->op2.constant, LITERAL_CONST, 1, 1, 5);
155 LITERAL_INFO(opline->op2.constant, LITERAL_CONST, 1, 1, 3);
165 opline->op2.constant,
184 LITERAL_INFO(opline->op2.constant, LITERAL_CLASS, 1, 1, 2);
190 opline->op2,
201 LITERAL_INFO(opline->op2
[all...]
H A Dpass2.c23 /* break missing *intentionally* - the assign_op's may only optimize op2 */
47 /* break missing *intentionally - the assign_op's may only optimize op2 */
68 /* break missing *intentionally - the assign_op's may only optimize op2 */
102 SET_UNUSED(opline->op2);
123 COPY_NODE(opline->op1, opline->op2);
140 COPY_NODE(opline->op2, (opline + 1)->op1);
216 /* MAKE_NOP() already set op1 and op2 to IS_UNUSED */
H A Dzend_optimizer_internal.h44 # 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]; }
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)
49 # define MAKE_NOP(opline) { opline->opcode = ZEND_NOP; memset(&opline->result,0,sizeof(znode)); memset(&opline->op1,0,sizeof(znode)); memset(&opline->op2,0,sizeof(znode)); opline->result.op_type=opline->op1.op_type=opline->op2.op_type=IS_UNUSED; opline->handler = zend_opcode_handlers[ZEND_NOP]; }
52 # define SAME_VAR(op1, op2) (((op1.op_type == IS_VAR && op2
[all...]
H A Dblock_pass.c656 VAR_SOURCE(opline->op2) &&
657 VAR_SOURCE(opline->op2)->opcode == ZEND_QM_ASSIGN &&
658 ZEND_OP1_TYPE(VAR_SOURCE(opline->op2)) == IS_CONST) {
659 zend_op *src = VAR_SOURCE(opline->op2);
661 VAR_UNSET(opline->op2);
678 VAR_SOURCE(opline->op2) &&
679 VAR_SOURCE(opline->op2)->opcode == ZEND_PRINT) {
681 LITERAL_LONG(opline->op2, 1);
796 COPY_NODE(opline->op1, opline->op2);
797 SET_UNUSED(opline->op2);
[all...]
H A Doptimize_func_calls.c28 zval *function_name = &op_array->literals[opline->op2.constant + 1].constant;
56 opline->op1.constant = fcall->op2.constant + 1;
57 op_array->literals[fcall->op2.constant + 1].cache_slot = op_array->literals[fcall->op2.constant].cache_slot;
60 literal_dtor(&op_array->literals[fcall->op2.constant + 2].constant);
72 opline->op1.constant = fcall->op2.constant + 1;
73 op_array->literals[fcall->op2.constant + 1].cache_slot = op_array->literals[fcall->op2.constant].cache_slot;
95 if (ARG_MUST_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) {
105 if (ARG_SHOULD_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2
[all...]
H A Dzend_optimizer.c190 opline->op2.constant = zend_optimizer_add_literal(op_array, val TSRMLS_CC);
207 op_array->literals[opline->op2.constant].cache_slot = op_array->last_cache_slot++;
210 op_array->literals[opline->op2.constant+1].hash_value = zend_hash_func(Z_STRVAL(op_array->literals[opline->op2.constant+1].constant), Z_STRLEN(op_array->literals[opline->op2.constant+1].constant) + 1);
216 op_array->literals[opline->op2.constant+1].hash_value = zend_hash_func(Z_STRVAL(op_array->literals[opline->op2.constant+1].constant), Z_STRLEN(op_array->literals[opline->op2.constant+1].constant) + 1);
232 op_array->literals[opline->op2.constant].cache_slot = op_array->last_cache_slot;
247 op_array->literals[opline->op2
[all...]
/PHP_TRUNK/Zend/
H A Dzend_ini_parser.y48 static void zend_ini_do_op(char type, zval *result, zval *op1, zval *op2)
56 if (op2) {
57 i_op2 = atoi(Z_STRVAL_P(op2));
58 free(Z_STRVAL_P(op2));
105 static void zend_ini_add_string(zval *result, zval *op1, zval *op2)
107 int length = Z_STRLEN_P(op1) + Z_STRLEN_P(op2);
110 memcpy(Z_STRVAL_P(result)+Z_STRLEN_P(op1), Z_STRVAL_P(op2), Z_STRLEN_P(op2));
H A Dzend_object_handlers.h103 typedef int (*zend_object_compare_zvals_t)(zval *resul, zval *op1, zval *op2 TSRMLS_DC);
117 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_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 TSRMLS_CC)",
132 "VAR" => "_get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC)",
133 "CONST" => "opline->op2.zv",
135 "CV" => "_get_zval_ptr_cv_\\1(execute_data, opline->op2.var TSRMLS_CC)",
150 "ANY" => "get_zval_ptr_ptr(opline->op2_type, &opline->op2, execute_data, &free_op2, \\1)",
152 "VAR" => "_get_zval_ptr_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC)",
155 "CV" => "_get_zval_ptr_ptr_cv_\\1(execute_data, opline->op2.var TSRMLS_CC)",
158 $op2_get_zval_ptr_ptr_fast["VAR"] = "_get_zval_ptr_ptr_var_fast(opline->op2.var, execute_data, &free_op2 TSRMLS_CC)";
170 "ANY" => "get_obj_zval_ptr(opline->op2_type, &opline->op2, execute_dat
312 $op2 = "ANY"; variable
642 $op2 = "ANY"; variable
1100 $op2 = array_flip(explode("|",$m[4])); variable
1129 $op2 = array_flip(explode("|",$m[3])); variable
1146 $op2 = array_flip(explode("|",$m[3])); variable
[all...]
H A Dzend_ast.h52 ZEND_API zend_ast *zend_ast_create_ternary(uint kind, zend_ast *op0, zend_ast *op1, zend_ast *op2);
H A Dzend_operators.c810 ZEND_API int add_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) /* {{{ */
816 switch (TYPE_PAIR(Z_TYPE_P(op1), Z_TYPE_P(op2))) {
818 long lval = Z_LVAL_P(op1) + Z_LVAL_P(op2);
821 if ((Z_LVAL_P(op1) & LONG_SIGN_MASK) == (Z_LVAL_P(op2) & LONG_SIGN_MASK)
824 ZVAL_DOUBLE(result, (double) Z_LVAL_P(op1) + (double) Z_LVAL_P(op2));
832 ZVAL_DOUBLE(result, ((double)Z_LVAL_P(op1)) + Z_DVAL_P(op2));
836 ZVAL_DOUBLE(result, Z_DVAL_P(op1) + ((double)Z_LVAL_P(op2)));
840 ZVAL_DOUBLE(result, Z_DVAL_P(op1) + Z_DVAL_P(op2));
846 if ((result == op1) && (result == op2)) {
854 zend_hash_merge(Z_ARRVAL_P(result), Z_ARRVAL_P(op2), (voi
1397 add_char_to_string(zval *result, const zval *op1, const zval *op2) argument
1410 add_string_to_string(zval *result, const zval *op1, const zval *op2) argument
1483 string_compare_function_ex(zval *result, zval *op1, zval *op2, zend_bool case_insensitive TSRMLS_DC) argument
2034 zval *op2; local
2094 zval *op2; local
[all...]
H A Dzend_compile.c584 void zend_do_binary_op(zend_uchar op, znode *result, const znode *op1, const znode *op2 TSRMLS_DC) /* {{{ */
592 SET_NODE(opline->op2, op2);
606 SET_UNUSED(opline->op2);
610 #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; }
616 SET_UNUSED(data_op->op2);
620 void zend_do_binary_assign_op(zend_uchar op, znode *result, const znode *op1, const znode *op2 TSRMLS_DC) /* {{{ */
633 zend_do_op_data(opline, op2 TSRMLS_CC);
641 zend_do_op_data(opline, op2 TSRMLS_C
4554 zval *op1, *op2; local
4656 zval *op1, *op2; local
4696 zval *op1, *op2; local
[all...]
H A Dzend_opcode.c529 op_array->opcodes[op_num - 2].op2.opline_num = fast_call;
550 op_array->opcodes[fast_call].op2.opline_num = finally_op_num - 2;
581 SET_UNUSED(opline->op2);
587 opline->op2.opline_num = op_array->try_catch_array[i].catch_op;
593 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...]
H A Dzend_ast.c55 ZEND_API zend_ast* zend_ast_create_ternary(uint kind, zend_ast *op0, zend_ast *op1, zend_ast *op2) argument
62 (&ast->u.child)[2] = op2;
107 zval op1, op2; local
112 zend_ast_evaluate(&op2, (&ast->u.child)[1], scope TSRMLS_CC);
113 add_function(result, &op1, &op2 TSRMLS_CC);
115 zval_dtor(&op2);
119 zend_ast_evaluate(&op2, (&ast->u.child)[1], scope TSRMLS_CC);
120 sub_function(result, &op1, &op2 TSRMLS_CC);
122 zval_dtor(&op2);
126 zend_ast_evaluate(&op2, (
[all...]
H A Dzend_vm_def.h330 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))
365 zval **zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((OP2_TYPE == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
383 z = Z_OBJ_HT_P(object)->read_property(object, property, BP_VAR_R, ((OP2_TYPE == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
405 Z_OBJ_HT_P(object)->write_property(object, property, z, ((OP2_TYPE == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
438 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))
463 zend_fetch_dimension_address(&EX_T((opline+1)->op2.var), container, dim, OP2_TYPE, BP_VAR_RW TSRMLS_CC);
465 var_ptr = _get_zval_ptr_ptr_var((opline+1)->op2.var, execute_data, &free_op_data2 TSRMLS_CC);
624 zval **zptr = Z_OBJ_HT_P(object)->get_property_ptr_ptr(object, property, BP_VAR_RW, ((OP2_TYPE == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
639 zval *z = Z_OBJ_HT_P(object)->read_property(object, property, BP_VAR_R, ((OP2_TYPE == IS_CONST) ? opline->op2.literal : NULL) TSRMLS_CC);
655 Z_OBJ_HT_P(object)->write_property(object, property, z, ((OP2_TYPE == IS_CONST) ? opline->op2
[all...]
H A Dzend_vm_execute.h717 arg_num = opline->op2.num + EX(call)->num_additional_args + 1;
956 ZEND_VM_JMP(EX(op_array)->opcodes + opline->op2.opline_num);
1083 if (zend_hash_quick_find(EG(class_table), Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv)+1, Z_HASH_P(opline->op2.zv), (void**)&pce) == FAILURE ||
1134 if (CACHED_PTR(opline->op2.literal->cache_slot)) {
1135 trait = CACHED_PTR(opline->op2.literal->cache_slot);
1137 trait = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv),
1138 Z_STRLEN_P(opline->op2.zv),
1139 opline->op2
[all...]
/PHP_TRUNK/ext/standard/
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/sapi/phpdbg/
H A Dphpdbg_opcode.c96 &decode[2], "J%u or J%lu", op->op2.opline_num, op->extended_value);
112 &decode[2], "J%ld", op->op2.jmp_addr - ops->opcodes);
120 decode[2] = phpdbg_decode_op(ops, &op->op2, op->op2_type, vars TSRMLS_CC);
/PHP_TRUNK/ext/gmp/
H A Dgmp.c489 static void shift_operator_helper(gmp_binary_ui_op_t op, zval *return_value, zval *op1, zval *op2 TSRMLS_DC) {
491 if (Z_TYPE_P(op2) != IS_LONG) {
492 op2_copy = *op2;
495 op2 = &op2_copy;
498 if (Z_LVAL_P(op2) < 0) {
507 op(gmpnum_result, gmpnum_op, (unsigned long) Z_LVAL_P(op2));
514 result, op1, op2, op, (gmp_binary_ui_op_t) uop, \
526 static int gmp_do_operation(zend_uchar opcode, zval *result, zval *op1, zval *op2 TSRMLS_DC) /* {{{ */
536 shift_operator_helper(mpz_pow_ui, result, op1, op2 TSRMLS_CC);
543 shift_operator_helper(mpz_mul_2exp, result, op1, op2 TSRMLS_C
[all...]
/PHP_TRUNK/ext/opcache/
H A DZendAccelerator.h373 # define ZEND_OP2(opline) (opline)->op2
374 # define ZEND_OP2_CONST(opline) (*(opline)->op2.zv)
375 # define ZEND_OP2_LITERAL(opline) (op_array)->literals[(opline)->op2.constant].constant
391 # define ZEND_OP2_TYPE(opline) (opline)->op2.op_type
392 # define ZEND_OP2(opline) (opline)->op2.u
393 # define ZEND_OP2_CONST(opline) (opline)->op2.u.constant
394 # define ZEND_OP2_LITERAL(opline) (opline)->op2.u.constant

Completed in 79 milliseconds

12