Lines Matching refs:val
40 zval val; in zend_optimizer_collect_constant() local
46 val = *value; in zend_optimizer_collect_constant()
47 zval_copy_ctor(&val); in zend_optimizer_collect_constant()
48 zend_hash_add(*constants, Z_STRVAL_P(name), Z_STRLEN_P(name)+1, (void**)&val, sizeof(zval), NULL); in zend_optimizer_collect_constant()
53 zval *val; in zend_optimizer_get_collected_constant() local
55 if (zend_hash_find(constants, Z_STRVAL_P(name), Z_STRLEN_P(name)+1, (void**)&val) == SUCCESS) { in zend_optimizer_get_collected_constant()
56 *value = *val; in zend_optimizer_get_collected_constant()
106 # define LITERAL_LONG(op, val) do { \ argument
108 ZVAL_LONG(&_c, val); \
112 # define LITERAL_BOOL(op, val) do { \ argument
114 ZVAL_BOOL(&_c, val); \
130 # define LITERAL_LONG(op, val) ZVAL_LONG(&op.u.constant, val) argument
132 # define LITERAL_BOOL(op, val) ZVAL_BOOL(&op.u.constant, val) argument
144 zval *val TSRMLS_DC) in update_op1_const()
148 zval_dtor(val); in update_op1_const()
152 if (Z_TYPE_P(val) == IS_STRING) { in update_op1_const()
157 opline->op1.constant = zend_optimizer_add_literal(op_array, val TSRMLS_CC); in update_op1_const()
160 Z_STRVAL_P(val) = zend_str_tolower_dup(Z_STRVAL_P(val), Z_STRLEN_P(val)); in update_op1_const()
161 zend_optimizer_add_literal(op_array, val TSRMLS_CC); in update_op1_const()
165 zend_str_tolower(Z_STRVAL_P(val), Z_STRLEN_P(val)); in update_op1_const()
166 opline->op1.constant = zend_optimizer_add_literal(op_array, val TSRMLS_CC); in update_op1_const()
171 opline->op1.constant = zend_optimizer_add_literal(op_array, val TSRMLS_CC); in update_op1_const()
176 opline->op1.constant = zend_optimizer_add_literal(op_array, val TSRMLS_CC); in update_op1_const()
179 ZEND_OP1_LITERAL(opline) = *val; in update_op1_const()
186 zval *val TSRMLS_DC) in update_op2_const()
190 opline->op2.constant = zend_optimizer_add_literal(op_array, val TSRMLS_CC); in update_op2_const()
191 if (Z_TYPE_P(val) == IS_STRING) { in update_op2_const()
208 Z_STRVAL_P(val) = zend_str_tolower_dup(Z_STRVAL_P(val), Z_STRLEN_P(val)); in update_op2_const()
209 zend_optimizer_add_literal(op_array, val TSRMLS_CC); in update_op2_const()
214 Z_STRVAL_P(val) = zend_str_tolower_dup(Z_STRVAL_P(val), Z_STRLEN_P(val)); in update_op2_const()
215 zend_optimizer_add_literal(op_array, val TSRMLS_CC); in update_op2_const()
286 ZEND_HANDLE_NUMERIC_EX(Z_STRVAL_P(val), Z_STRLEN_P(val)+1, index, numeric = 1); in update_op2_const()
288 zval_dtor(val); in update_op2_const()
289 ZVAL_LONG(val, index); in update_op2_const()
290 op_array->literals[opline->op2.constant].constant = *val; in update_op2_const()
300 ZEND_OP2_LITERAL(opline) = *val; in update_op2_const()
307 zval *val TSRMLS_DC) in replace_var_by_const()
352 old_val = *val; in replace_var_by_const()
353 zval_copy_ctor(val); in replace_var_by_const()
354 update_op1_const(op_array, m, val TSRMLS_CC); in replace_var_by_const()
355 *val = old_val; in replace_var_by_const()
364 zval_dtor(val); in replace_var_by_const()
369 zval_dtor(val); in replace_var_by_const()
374 update_op1_const(op_array, opline, val TSRMLS_CC); in replace_var_by_const()
386 update_op2_const(op_array, opline, val TSRMLS_CC); in replace_var_by_const()
398 zval *val in replace_tmp_by_const()
427 zval_dtor(val); in replace_tmp_by_const()
438 old_val = *val; in replace_tmp_by_const()
439 zval_copy_ctor(val); in replace_tmp_by_const()
440 update_op1_const(op_array, m, val TSRMLS_CC); in replace_tmp_by_const()
441 *val = old_val; in replace_tmp_by_const()
450 zval_dtor(val); in replace_tmp_by_const()
453 update_op1_const(op_array, opline, val TSRMLS_CC); in replace_tmp_by_const()
461 update_op2_const(op_array, opline, val TSRMLS_CC); in replace_tmp_by_const()