Home
last modified time | relevance | path

Searched refs:literals (Results 1 – 25 of 26) sorted by relevance

12

/PHP-7.0/ext/opcache/Optimizer/
H A Dcompact_literals.c359 op_array->literals[j] = op_array->literals[i]; in zend_optimizer_compact_literals()
368 op_array->literals[j] = op_array->literals[i]; in zend_optimizer_compact_literals()
378 op_array->literals[j] = op_array->literals[i]; in zend_optimizer_compact_literals()
389 op_array->literals[j] = op_array->literals[i]; in zend_optimizer_compact_literals()
404 op_array->literals[j] = op_array->literals[i]; in zend_optimizer_compact_literals()
418 op_array->literals[j] = op_array->literals[i]; in zend_optimizer_compact_literals()
442 key = zend_string_init(Z_STRVAL(op_array->literals[i]), Z_STRLEN(op_array->literals[i]), 0); in zend_optimizer_compact_literals()
449 Z_TYPE(op_array->literals[i]) == Z_TYPE(op_array->literals[Z_LVAL_P(pos)]) && in zend_optimizer_compact_literals()
469 op_array->literals[j] = op_array->literals[i]; in zend_optimizer_compact_literals()
480 if (i != j) op_array->literals[j] = op_array->literals[i]; in zend_optimizer_compact_literals()
[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]; in optimize_func_calls()
88 …Z_CACHE_SLOT(op_array->literals[fcall->op2.constant + 1]) = Z_CACHE_SLOT(op_array->literals[fcall-… in optimize_func_calls()
95 …Z_CACHE_SLOT(op_array->literals[fcall->op2.constant + 1]) = Z_CACHE_SLOT(op_array->literals[fcall-… in optimize_func_calls()
96 literal_dtor(&op_array->literals[fcall->op2.constant]); in optimize_func_calls()
97 literal_dtor(&op_array->literals[fcall->op2.constant + 2]); in optimize_func_calls()
H A Dzend_optimizer.c107 op_array->literals = (zval*)erealloc(op_array->literals, op_array->last_literal * sizeof(zval)); in zend_optimizer_add_literal()
108 ZVAL_COPY_VALUE(&op_array->literals[i], zv); in zend_optimizer_add_literal()
109 Z_CACHE_SLOT(op_array->literals[i]) = -1; in zend_optimizer_add_literal()
136 Z_CACHE_SLOT(op_array->literals[opline->op1.constant]) = op_array->cache_size; in alloc_cache_slots_op1()
140 Z_CACHE_SLOT(op_array->literals[opline->op2.constant]) = op_array->cache_size; in alloc_cache_slots_op2()
H A Dpass1_5.c307 Z_STR(op_array->literals[opline->op1.constant + 1]))) == NULL || in zend_optimizer_pass1()
/PHP-7.0/ext/opcache/tests/
H A Dmethod_call_on_literal.phpt2 Literal compaction should take method calls on literals into account
H A Dcompact_literals.phpt2 Test with compact literals
/PHP-7.0/tests/lang/string/
H A Dunicode_escape_legacy.phpt6 // These are ignored to avoid breaking JSON string literals
/PHP-7.0/Zend/tests/
H A Ddeclare_006.phpt2 Use of non-literals in declare ticks values crashes compiler
H A Darray_literal_next_element_error.phpt2 Next free element may overflow in array literals
H A Dbinary.phpt2 testing binary literals
H A Dbinary-32bit.phpt2 testing binary literals
/PHP-7.0/Zend/
H A Dzend_compile.h372 zval *literals; member
443 zval *literals; /* cache op_array->literals */ member
564 ((op_array)->literals + (num))
582 (node).constant = (node).zv - (op_array)->literals; \
606 EX(literals)
609 EX(literals) = (op_array)->literals; \
615 EX(func)->op_array.literals
624 RT_CONSTANT_EX((op_array)->literals, node)
H A Dzend_opcode.c95 op_array->literals = NULL; in init_op_array()
343 zval *literal = op_array->literals; in destroy_op_array()
380 efree(op_array->literals); in destroy_op_array()
602 op_array->literals = (zval*)erealloc(op_array->literals, sizeof(zval) * op_array->last_literal); in pass_two()
H A Dzend_compile.c69 Z_CACHE_SLOT(op_array->literals[literal]) = op_array->cache_size; in zend_alloc_cache_slot()
77 Z_CACHE_SLOT(op_array->literals[literal]) = op_array->cache_size; in zend_alloc_polymorphic_cache_slot()
434 Z_CACHE_SLOT(op_array->literals[literal_position]) = -1; in zend_insert_literal()
449 …op_array->literals = (zval*)erealloc(op_array->literals, CG(context).literals_size * sizeof(zval)); in zend_add_literal()
4646 Z_CACHE_SLOT(op_array->literals[opline->op2.constant]) = -1; in zend_compile_params()
4658 Z_CACHE_SLOT(op_array->literals[opline->op2.constant]) = -1; in zend_compile_params()
/PHP-7.0/ext/opcache/
H A Dzend_persist.c501 if (op_array->literals) { in zend_persist_op_array_ex()
503 orig_literals = zend_shared_alloc_get_xlat_entry(op_array->literals); in zend_persist_op_array_ex()
505 op_array->literals = orig_literals; in zend_persist_op_array_ex()
507 zval *p = zend_accel_memdup(op_array->literals, sizeof(zval) * op_array->last_literal); in zend_persist_op_array_ex()
509 orig_literals = op_array->literals; in zend_persist_op_array_ex()
510 op_array->literals = p; in zend_persist_op_array_ex()
533 …opline->op1.zv = (zval*)((char*)opline->op1.zv + ((char*)op_array->literals - (char*)orig_literals… in zend_persist_op_array_ex()
536 …opline->op2.zv = (zval*)((char*)opline->op2.zv + ((char*)op_array->literals - (char*)orig_literals… in zend_persist_op_array_ex()
H A Dzend_file_cache.c374 SERIALIZE_PTR(op_array->literals); in zend_file_cache_serialize_op_array()
390 if (op_array->literals && !IS_SERIALIZED(op_array->literals)) { in zend_file_cache_serialize_op_array()
393 SERIALIZE_PTR(op_array->literals); in zend_file_cache_serialize_op_array()
394 p = op_array->literals; in zend_file_cache_serialize_op_array()
952 UNSERIALIZE_PTR(op_array->literals); in zend_file_cache_unserialize_op_array()
966 if (op_array->literals && !IS_UNSERIALIZED(op_array->literals)) { in zend_file_cache_unserialize_op_array()
969 UNSERIALIZE_PTR(op_array->literals); in zend_file_cache_unserialize_op_array()
970 p = op_array->literals; in zend_file_cache_unserialize_op_array()
H A Dzend_persist_calc.c187 if (op_array->literals) { in zend_persist_op_array_calc_ex()
188 zval *p = op_array->literals; in zend_persist_op_array_calc_ex()
190 ADD_DUP_SIZE(op_array->literals, sizeof(zval) * op_array->last_literal); in zend_persist_op_array_calc_ex()
H A DZendAccelerator.h359 # define ZEND_OP1_LITERAL(opline) (op_array)->literals[(opline)->op1.constant]
363 # define ZEND_OP2_LITERAL(opline) (op_array)->literals[(opline)->op2.constant]
/PHP-7.0/sapi/phpdbg/
H A Dphpdbg_info.c329 if (Z_TYPE(ops->literals[literal]) != IS_NULL) { in PHPDBG_INFO()
331 zend_print_zval(&ops->literals[literal], 0); in PHPDBG_INFO()
H A Dxml.md274 - <literalinfo num="" /> with num having an integer value, indicating the number of literals, op…
/PHP-7.0/
H A DUPGRADING247 * Invalid octal literals (containing digits larger than 7) now produce compile
H A DNEWS2402 . Invalid octal literals in source code now produce compile errors, fixes
/PHP-7.0/ext/pcre/pcrelib/
H A DNEWS62 literals. PCRE now does the same.
H A DChangeLog676 literals. PCRE now does the same.
1973 4. Inside a character class, PCRE always treated \R and \X as literals,
4776 treated as literals. This is slightly different from Perl in that $ and @ are
4777 also handled as literals inside the quotes. In Perl, they will cause variable
5158 aren't interpreted therein (e.g. [\C]) are literals in Perl. This is now also
5860 3. Treat "-" characters in classes that cannot be part of ranges as literals,
/PHP-7.0/ext/mbstring/oniguruma/
H A DHISTORY429 and ONIG_SYN_XXX number literals.

Completed in 130 milliseconds

12