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/ext/opcache/
H A DZendAccelerator.h323 # define ZEND_OP2(opline) (opline)->op2
324 # define ZEND_OP2_CONST(opline) (*(opline)->op2.zv)
325 # define ZEND_OP2_LITERAL(opline) (op_array)->literals[(opline)->op2.constant]
/PHP_TRUNK/ext/opcache/Optimizer/
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 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 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 Dpass3.c111 COPY_NODE(opline->op1, opline->op2);
112 COPY_NODE(opline->op2, tmp);
268 SET_UNUSED(opline->op2);
H A Dzend_optimizer.c86 opline->op2.var += sizeof(zval);
154 opline->op2.constant = zend_optimizer_add_literal(op_array, val TSRMLS_CC);
156 Z_CACHE_SLOT(op_array->literals[opline->op2.constant]) = op_array->last_cache_slot++;
159 opline->op2.constant = zend_optimizer_add_literal(op_array, val TSRMLS_CC);
176 Z_CACHE_SLOT(op_array->literals[opline->op2.constant]) = op_array->last_cache_slot++;
179 zend_string_hash_val(Z_STR(op_array->literals[opline->op2.constant+1]));
185 zend_string_hash_val(Z_STR(op_array->literals[opline->op2.constant+1]));
201 Z_CACHE_SLOT(op_array->literals[opline->op2.constant]) = op_array->last_cache_slot;
216 Z_CACHE_SLOT(op_array->literals[opline->op2.constant]) = op_array->last_cache_slot;
255 op_array->literals[opline->op2
[all...]
H A Dblock_pass.c634 VAR_SOURCE(opline->op2) &&
635 VAR_SOURCE(opline->op2)->opcode == ZEND_QM_ASSIGN &&
636 ZEND_OP1_TYPE(VAR_SOURCE(opline->op2)) == IS_CONST) {
637 zend_op *src = VAR_SOURCE(opline->op2);
639 VAR_UNSET(opline->op2);
656 VAR_SOURCE(opline->op2) &&
657 VAR_SOURCE(opline->op2)->opcode == ZEND_PRINT) {
659 LITERAL_LONG(opline->op2, 1);
783 COPY_NODE(opline->op1, opline->op2);
784 SET_UNUSED(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)
57 if (op2) {
58 i_op2 = atoi(Z_STRVAL_P(op2));
59 zend_string_free(Z_STR_P(op2));
100 static void zend_ini_add_string(zval *result, zval *op1, zval *op2)
103 int length = op1_len + Z_STRLEN_P(op2);
106 memcpy(Z_STRVAL_P(result)+op1_len, Z_STRVAL_P(op2), Z_STRLEN_P(op2));
H A Dzend_object_handlers.h101 typedef int (*zend_object_compare_zvals_t)(zval *resul, zval *op1, zval *op2 TSRMLS_DC);
115 typedef int (*zend_object_do_operation_t)(zend_uchar opcode, zval *result, zval *op1, zval *op2 TSRMLS_DC);
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_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)",
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 TSRMLS_CC)",
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_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
1502 add_char_to_string(zval *result, const zval *op1, const zval *op2) argument
1515 add_string_to_string(zval *result, const zval *op1, const zval *op2) argument
1595 string_compare_function_ex(zval *result, zval *op1, zval *op2, zend_bool case_insensitive TSRMLS_DC) argument
2175 zval op2; local
2250 zval op2; local
[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;
542 SET_UNUSED(opline->op2);
548 opline->op2.opline_num = op_array->try_catch_array[i].catch_op;
554 SET_UNUSED(opline->op2);
573 SET_UNUSED(opline->op2);
586 SET_UNUSED(opline->op2);
614 op_array->opcodes[op_num].op2.opline_num = finally_op_num;
618 op_array->opcodes[op_num].op2.opline_num = catch_op_num;
641 nest_levels = Z_LVAL(op_array->literals[opline->op2
[all...]
H A Dzend_compile.c452 memset(&opline->op2, 0, sizeof(opline->op2)); \
494 SET_UNUSED(opline->op2);
512 SET_UNUSED(opline->op2);
755 label = opline->op2.zv;
757 label = &CONSTANT_EX(op_array, opline->op2.constant);
795 SET_UNUSED(opline->op2);
833 SET_UNUSED(opline->op2);
884 zval *op1, *op2; local
888 op2
924 zval *op1, *op2; local
961 zval *op1, *op2; local
[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))
424 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))
443 zend_fetch_dimension_address_RW(EX_VAR((opline+1)->op2.var), container, dim, OP2_TYPE TSRMLS_CC);
445 var_ptr = _get_zval_ptr_ptr_var((opline+1)->op2.var, execute_data, &free_op_data2 TSRMLS_CC);
489 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))
1076 if (CACHED_PTR(Z_CACHE_SLOT_P(opline->op2.zv))) {
1077 ce = CACHED_PTR(Z_CACHE_SLOT_P(opline->op2.zv));
1079 ce = zend_fetch_class_by_name(Z_STR_P(opline->op2.zv), opline->op2.zv + 1, 0 TSRMLS_CC);
1088 CACHE_PTR(Z_CACHE_SLOT_P(opline->op2
[all...]
H A Dzend_vm_execute.h1072 ZEND_VM_JMP(opline->op2.jmp_addr);
1103 EX(old_error_reporting).u2.silence_num = opline->op2.num;
1190 if ((zce = zend_hash_find(EG(class_table), Z_STR_P(opline->op2.zv))) == NULL ||
1241 if (CACHED_PTR(Z_CACHE_SLOT_P(opline->op2.zv))) {
1242 trait = CACHED_PTR(Z_CACHE_SLOT_P(opline->op2.zv));
1244 trait = zend_fetch_class_by_name(Z_STR_P(opline->op2.zv),
1245 opline->op2.zv + 1,
1254 CACHE_PTR(Z_CACHE_SLOT_P(opline->op2.zv), trait);
1436 ZEND_VM_SET_OPCODE(&EX(func)->op_array.opcodes[opline->op2.opline_num]);
1450 EX(fast_ret) = &EX(func)->op_array.opcodes[EX(fast_ret)->op2
[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/sapi/phpdbg/
H A Dphpdbg_opcode.c96 &decode[2], "J%u or J%lu", op->op2.opline_num, op->extended_value);
109 &decode[2], "J%ld", op->op2.jmp_addr - ops->opcodes);
117 decode[2] = phpdbg_decode_op(ops, &op->op2, op->op2_type, vars TSRMLS_CC);

Completed in 63 milliseconds

12