Searched refs:opcodes (Results 1 - 25 of 31) sorted by relevance

12

/PHP_TRUNK/ext/opcache/Optimizer/
H A Doptimize_func_calls.c43 zend_op *opline = op_array->opcodes;
H A Doptimize_temp_vars_5.c61 end = op_array->opcodes;
62 opline = &op_array->opcodes[op_array->last - 1];
75 end = op_array->opcodes;
76 opline = &op_array->opcodes[op_array->last - 1];
H A Dnop_removal.c44 end = op_array->opcodes + op_array->last;
45 for (opline = op_array->opcodes; opline < end; opline++) {
58 zend_op *target = op_array->opcodes + ZEND_OP1(opline).opline_num - 1;
74 op_array->opcodes[new_count] = *opline;
82 end = op_array->opcodes + op_array->last;
85 for (opline = op_array->opcodes; opline<end; opline++) {
143 opline_num = &ZEND_RESULT(&op_array->opcodes[*opline_num]).opline_num;
H A Dpass2.c39 zend_op *end = op_array->opcodes + op_array->last;
41 opline = op_array->opcodes;
H A Dcompact_literals.c135 opline = op_array->opcodes;
496 /* Update opcodes to use new literals table */
497 opline = op_array->opcodes;
H A Dpass1_5.c43 zend_op *opline = op_array->opcodes;
233 ZEND_OP1(opline + 1).opline_num = last_op - op_array->opcodes; /* that's OK even for ZE2, since opline_num's are resolved in pass 2 later */
652 if (opline != op_array->opcodes &&
H A Dzend_optimizer.c79 zend_op *opline = op_array->opcodes;
301 zend_op *end = op_array->opcodes + op_array->last;
347 if (op_array->brk_cont_array[brk].start <= (opline - op_array->opcodes) &&
348 op_array->brk_cont_array[brk].brk > (opline - op_array->opcodes)) {
362 n = op_array->opcodes + op_array->brk_cont_array[brk].brk + 1;
486 opline = op_array->opcodes;
531 opline = op_array->opcodes;
579 opline = op_array->opcodes;
H A Dpass3.c36 /* compares opcodes with allowing oc1 be _EX of oc2 */
42 if (jmp_hitlist[i] == ZEND_OP1(&op_array->opcodes[target]).opline_num) { \
46 jmp_hitlist[jmp_hitlist_count++] = ZEND_OP1(&op_array->opcodes[target]).opline_num;
50 if (jmp_hitlist[i] == ZEND_OP2(&op_array->opcodes[target]).opline_num) { \
54 jmp_hitlist[jmp_hitlist_count++] = ZEND_OP2(&op_array->opcodes[target]).opline_num;
59 zend_op *end = op_array->opcodes + op_array->last;
67 opline = op_array->opcodes;
177 && op_array->opcodes[ZEND_OP1(opline).opline_num].opcode == ZEND_JMP) {
180 ZEND_OP1(opline).opline_num = ZEND_OP1(&op_array->opcodes[target]).opline_num;
192 if (op_array->opcodes[targe
[all...]
H A Dblock_pass.c70 # define BLOCK_REF(b) b?op_array->opcodes-b->start_opline:-1
72 static inline void print_block(zend_code_block *block, zend_op *opcodes, char *txt) argument
74 fprintf(stderr, "%sBlock: %d-%d (%d)", txt, block->start_opline - opcodes, block->start_opline - opcodes + block->len - 1, block->len);
79 fprintf(stderr, " 1: %d", block->op1_to->start_opline - opcodes);
82 fprintf(stderr, " 2: %d", block->op2_to->start_opline - opcodes);
85 fprintf(stderr, " e: %d", block->ext_to->start_opline - opcodes);
88 fprintf(stderr, " f: %d", block->follow_to->start_opline - opcodes);
95 fprintf(stderr, " %d", bs->from->start_opline - opcodes);
107 #define START_BLOCK_OP(opno) blocks[opno].start_opline = &op_array->opcodes[opn
[all...]
/PHP_TRUNK/Zend/
H A Dzend_vm_gen.php423 $opcodes = array(); // opcode handlers by code variable
751 global $opcodes, $op_types, $prefix, $typecode;
758 foreach($opcodes as $num => $dsc) {
851 foreach($opcodes as $num => $dsc) {
914 // Generates handler for undefined opcodes (CALL threading model)
919 // for undefined opcodes, do we emit code for it only once
932 global $list, $opcodes, $helpers, $op_types_ex;
947 if (isset($opcodes[$num]["op1"][$op1]) &&
948 isset($opcodes[$num]["op2"][$op2])) {
950 gen_handler($f, 1, $kind, $opcodes[
[all...]
H A Dzend_compile.h349 zend_op *opcodes; member in struct:_zend_op_array
517 ((char*)&(op_array)->opcodes[opline_num] - (char*)(opline))
523 (ZEND_OFFSET_TO_OPLINE(base, offset) - op_array->opcodes)
533 (node).jmp_addr = (op_array)->opcodes + (node).opline_num; \
538 (node).opline_num = (node).jmp_addr - (op_array)->opcodes; \
953 /* Pseudo-opcodes that are used only temporarily during compilation */
H A Dzend_opcode.c48 op_array->opcodes = erealloc(op_array->opcodes, size * sizeof(zend_op));
61 op_array->opcodes = NULL;
378 efree(op_array->opcodes);
436 next_op = &(op_array->opcodes[next_op_num]);
457 zend_op *opline = op_array->opcodes, *end=opline+op_array->last;
496 CG(zend_lineno) = op_array->opcodes[op_num].lineno;
504 CG(zend_lineno) = op_array->opcodes[op_num].lineno;
525 ZEND_ASSERT(op_array->opcodes[op_num - 2].opcode == ZEND_FAST_CALL);
526 op_array->opcodes[op_nu
[all...]
H A Dzend_generators.c43 if (execute_data->opline != execute_data->func->op_array.opcodes) {
45 uint32_t op_num = execute_data->opline - execute_data->func->op_array.opcodes - 1;
135 op_num = ex->opline - ex->func->op_array.opcodes - 1;
156 zval *fast_call = ZEND_CALL_VAR(ex, ex->func->op_array.opcodes[finally_op_end].op1.var);
162 ex->opline = &ex->func->op_array.opcodes[finally_op_num];
H A Dzend_compile.c603 zend_op *opline = &CG(active_op_array)->opcodes[CG(active_op_array)->last-1];
624 while (opline >= CG(active_op_array)->opcodes) {
639 opline = &CG(active_op_array)->opcodes[CG(active_op_array)->last-1];
1022 old_function->op_array.opcodes[0].lineno);
1119 zend_op *opline = &CG(active_op_array)->opcodes[CG(active_op_array)->last-1];
1122 while (opline->opcode == ZEND_TICKS && opline > CG(active_op_array)->opcodes) {
1153 opline_num = &CG(active_op_array)->opcodes[*opline_num].result.opline_num;
1155 *opline_num = opline - CG(active_op_array)->opcodes;
1200 zval *parent_name = RT_CONSTANT(op_array, op_array->opcodes[opline_num-1].op2);
1202 do_bind_inherited_class(op_array, &op_array->opcodes[opline_nu
[all...]
H A Dzend_vm_def.h772 /* assign_obj has two opcodes! */
2162 /* assign_obj has two opcodes! */
2270 /* assign_dim has two opcodes! */
4174 ZEND_VM_SET_OPCODE(&EX(func)->op_array.opcodes[opline->extended_value]);
4198 ZEND_VM_SET_OPCODE(&EX(func)->op_array.opcodes[opline->extended_value]);
4879 zend_op *brk_opline = EX(func)->op_array.opcodes + el->brk;
7183 uint32_t op_num = EG(opline_before_exception) - EX(func)->op_array.opcodes;
7212 zval *fast_call = EX_VAR(EX(func)->op_array.opcodes[finally_op_end].op1.var);
7220 ZEND_VM_SET_OPCODE(&EX(func)->op_array.opcodes[finally_op_num]);
7225 zval *fast_call = EX_VAR(EX(func)->op_array.opcodes[finally_op_en
[all...]
H A Dzend_execute.c1950 zend_op *brk_opline = &op_array->opcodes[jmp_to->brk];
2080 EX(opline) = op_array->opcodes;
2092 /* Skip useless ZEND_RECV and ZEND_RECV_INIT opcodes */
2116 /* Skip useless ZEND_RECV and ZEND_RECV_INIT opcodes */
2152 EX(opline) = op_array->opcodes;
2179 EX(opline) = op_array->opcodes;
2196 /* Skip useless ZEND_RECV and ZEND_RECV_INIT opcodes */
2220 /* Skip useless ZEND_RECV and ZEND_RECV_INIT opcodes */
2390 zend_op *opline = EX(func)->op_array.opcodes + op_num;
2512 zend_op *brk_opline = &EX(func)->op_array.opcodes[brk_con
[all...]
/PHP_TRUNK/ext/opcache/
H A Dzend_persist.c457 if (zend_shared_alloc_get_xlat_entry(op_array->opcodes)) {
480 persist_ptr = zend_shared_alloc_get_xlat_entry(op_array->opcodes);
482 op_array->opcodes = persist_ptr;
484 zend_op *new_opcodes = zend_accel_memdup(op_array->opcodes, sizeof(zend_op) * op_array->last);
508 ZEND_OP1(opline).jmp_addr = &new_opcodes[ZEND_OP1(opline).jmp_addr - op_array->opcodes];
523 ZEND_OP2(opline).jmp_addr = &new_opcodes[ZEND_OP2(opline).jmp_addr - op_array->opcodes];
535 efree(op_array->opcodes);
536 op_array->opcodes = new_opcodes;
H A Dzend_persist_calc.c169 if (zend_shared_alloc_get_xlat_entry(op_array->opcodes)) {
190 ADD_DUP_SIZE(op_array->opcodes, sizeof(zend_op) * op_array->last);
H A Dzend_accelerator_util_funcs.c555 CG(zend_lineno) = function1->op_array.opcodes[0].lineno;
561 (int)function2->op_array.opcodes[0].lineno);
599 CG(zend_lineno) = function1->op_array.opcodes[0].lineno;
605 (int)function2->op_array.opcodes[0].lineno);
H A Dzend_file_cache.c369 if (!IS_SERIALIZED(op_array->opcodes)) {
373 SERIALIZE_PTR(op_array->opcodes);
374 opline = op_array->opcodes;
419 SERIALIZE_PTR(op_array->opcodes);
898 if (!IS_UNSERIALIZED(op_array->opcodes)) {
901 UNSERIALIZE_PTR(op_array->opcodes);
902 opline = op_array->opcodes;
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_bp.c459 opline_break.opline = brake->opline = (zend_ulong)(op_array->opcodes + brake->opline_num);
962 return param->type == STR_PARAM || execute_data->opline - ops->opcodes == param->num;
995 return param->type == METHOD_PARAM || (execute_data->opline - ops->opcodes) == param->num;
1085 if (execute_data->opline == execute_data->func->op_array.opcodes) {
H A Dphpdbg_utils.c729 op_num = op - op_array->opcodes;
740 cur = &op_array->opcodes[catch];
H A Dphpdbg_print.c60 zend_op *opline = &(op_array->opcodes[0]);
H A Dphpdbg_prompt.c410 phpdbg_notice("exec", "type=\"unsetops\"", "Destroying compiled opcodes");
489 while (++opline < op_array->opcodes + op_array->last) {
534 while (++opline < op_array->opcodes + op_array->last) {
620 phpdbg_writeln("exception", "opline=\"%p\" file=\"%s\" line=\"%u\"", "Stack entered at %p in %s on line %u", PHPDBG_G(ops)->opcodes, filename, lineno); */
1600 phpdbg_notice("hardinterrupt", "opline=\"%p\" num=\"%lu\" file=\"%s\" line=\"%u\"", "Current opline: %p (op #%lu) in %s:%u", data->opline, (data->opline - data->func->op_array.opcodes) / sizeof(data->opline), data->func->op_array.filename, data->opline->lineno);
H A Dphpdbg_opcode.c61 asprintf(&decode[1], "J%ld", OP_JMP_ADDR(op, op->op1) - ops->opcodes);
80 asprintf(&decode[2], "J%u or J%" PRIu32, OP_JMP_ADDR(op, op->op2) - ops->opcodes, ZEND_OFFSET_TO_OPLINE(op, op->extended_value) - ops->opcodes);
89 asprintf(&decode[2], "J%ld", OP_JMP_ADDR(op, op->op2) - ops->opcodes);

Completed in 128 milliseconds

12