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

12

/PHP_TRUNK/ext/opcache/Optimizer/
H A Dnop_removal.c15 end = op_array->opcodes + op_array->last;
16 for (opline = op_array->opcodes; opline < end; opline++) {
31 zend_op *target = op_array->opcodes + ZEND_OP1(opline).opline_num - 1;
47 op_array->opcodes[new_count] = *opline;
55 end = op_array->opcodes + op_array->last;
58 for (opline = op_array->opcodes; opline<end; opline++) {
120 opline_num = &ZEND_RESULT(&op_array->opcodes[*opline_num]).opline_num;
H A Doptimize_temp_vars_5.c91 end = op_array->opcodes;
92 opline = &op_array->opcodes[op_array->last - 1];
113 end = op_array->opcodes;
114 opline = &op_array->opcodes[op_array->last - 1];
H A Dcompact_literals.c107 opline = op_array->opcodes;
448 /* Update opcodes to use new literals table */
449 opline = op_array->opcodes;
H A Dpass2.c9 zend_op *end = op_array->opcodes + op_array->last;
11 opline = op_array->opcodes;
190 (op_array->opcodes[jmp_to->brk].opcode == ZEND_FREE ||
191 op_array->opcodes[jmp_to->brk].opcode == ZEND_SWITCH_FREE)) {
H A Dblock_pass.c41 # define BLOCK_REF(b) b?op_array->opcodes-b->start_opline:-1
43 static inline void print_block(zend_code_block *block, zend_op *opcodes, char *txt) argument
45 fprintf(stderr, "%sBlock: %d-%d (%d)", txt, block->start_opline - opcodes, block->start_opline - opcodes + block->len - 1, block->len);
50 fprintf(stderr, " 1: %d", block->op1_to->start_opline - opcodes);
53 fprintf(stderr, " 2: %d", block->op2_to->start_opline - opcodes);
56 fprintf(stderr, " e: %d", block->ext_to->start_opline - opcodes);
59 fprintf(stderr, " f: %d", block->follow_to->start_opline - opcodes);
66 fprintf(stderr, " %d", bs->from->start_opline - opcodes);
78 #define START_BLOCK_OP(opno) blocks[opno].start_opline = &op_array->opcodes[opn
[all...]
H A Doptimize_func_calls.c12 zend_op *opline = op_array->opcodes;
H A Dpass1_5.c17 zend_op *opline = op_array->opcodes;
212 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 */
518 if (opline != op_array->opcodes &&
H A Dpass3.c7 /* compares opcodes with allowing oc1 be _EX of oc2 */
13 if (jmp_hitlist[i] == ZEND_OP1(&op_array->opcodes[target]).opline_num) { \
17 jmp_hitlist[jmp_hitlist_count++] = ZEND_OP1(&op_array->opcodes[target]).opline_num;
21 if (jmp_hitlist[i] == ZEND_OP2(&op_array->opcodes[target]).opline_num) { \
25 jmp_hitlist[jmp_hitlist_count++] = ZEND_OP2(&op_array->opcodes[target]).opline_num;
29 zend_op *end = op_array->opcodes + op_array->last;
37 opline = op_array->opcodes;
157 && op_array->opcodes[ZEND_OP1(opline).opline_num].opcode == ZEND_JMP) {
160 ZEND_OP1(opline).opline_num = ZEND_OP1(&op_array->opcodes[target]).opline_num;
178 if (op_array->opcodes[targe
[all...]
H A Dzend_optimizer.c308 zend_op *end = op_array->opcodes + op_array->last;
364 zend_op *end = op_array->opcodes + op_array->last;
486 opline = op_array->opcodes;
505 ZEND_OP1(opline).opline_num = ZEND_OP1(opline).jmp_addr - op_array->opcodes;
517 ZEND_OP2(opline).opline_num = ZEND_OP2(opline).jmp_addr - op_array->opcodes;
527 opline = op_array->opcodes;
546 ZEND_OP1(opline).jmp_addr = &op_array->opcodes[ZEND_OP1(opline).opline_num];
558 ZEND_OP2(opline).jmp_addr = &op_array->opcodes[ZEND_OP2(opline).opline_num];
/PHP_TRUNK/Zend/
H A Dzend_vm_gen.php277 $opcodes = array(); // opcode handlers by code variable
590 global $opcodes, $op_types, $prefix, $typecode;
597 foreach($opcodes as $num => $dsc) {
682 foreach($opcodes as $num => $dsc) {
729 // Generates handler for undefined opcodes (CALL threading model)
734 // for undefined opcodes, do we emit code for it only once
747 global $list, $opcodes, $helpers, $op_types;
762 if (isset($opcodes[$num]["op1"][$op1]) &&
763 isset($opcodes[$num]["op2"][$op2])) {
765 gen_handler($f, 1, $kind, $opcodes[
[all...]
H A Dzend_execute_API.c74 active_opline-EG(active_op_array)->opcodes,
1162 EG(start_op) = CG(active_op_array)->opcodes;
1166 end=CG(active_op_array)->opcodes+CG(active_op_array)->last;
1182 opline->op1.jmp_addr = &CG(active_op_array)->opcodes[opline->op1.opline_num];
1190 opline->op2.jmp_addr = &CG(active_op_array)->opcodes[opline->op2.opline_num];
1211 EG(start_op) = CG(active_op_array)->opcodes+CG(active_op_array)->last;
H A Dzend_compile.c626 zend_op *last_op = &CG(active_op_array)->opcodes[last_op_number-1];
679 CG(active_op_array)->opcodes[CG(active_op_array)->last-1].opcode != ZEND_BEGIN_SILENCE)) {
977 last_op = &CG(active_op_array)->opcodes[last_op_number-n-1];
983 int opline_no = (opline-CG(active_op_array)->opcodes)/sizeof(*opline);
989 last_op = &CG(active_op_array)->opcodes[opline_no];
998 int opline_no = (opline-CG(active_op_array)->opcodes)/sizeof(*opline);
1002 /* TBFixed: this can realloc opcodes, leaving last_op pointing wrong */
1005 last_op = &CG(active_op_array)->opcodes[opline_no];
1045 opline = &CG(active_op_array)->opcodes[last_op_number-1];
1126 CG(active_op_array)->opcodes[close_bracket_toke
[all...]
H A Dzend_execute.c1449 zend_op *brk_opline = &op_array->opcodes[jmp_to->brk];
1698 EX(opline) = UNEXPECTED((op_array->fn_flags & ZEND_ACC_INTERACTIVE) != 0) && EG(start_op) ? EG(start_op) : op_array->opcodes;
H A Dzend_generators.c43 * SWITCH_FREE / FREE opcodes. */
47 zend_uint op_num = execute_data->opline - op_array->opcodes - 1;
58 zend_op *brk_opline = op_array->opcodes + brk_cont->brk;
180 op_num = ex->opline - ex->op_array->opcodes - 1;
199 ex->opline = &ex->op_array->opcodes[finally_op_num];
H A Dzend_compile.h281 zend_op *opcodes; member in struct:_zend_op_array
H A Dzend_opcode.c48 op_array->opcodes = erealloc(op_array->opcodes, size * sizeof(zend_op));
65 op_array->opcodes = NULL;
387 efree(op_array->opcodes);
438 next_op = &(op_array->opcodes[next_op_num]);
459 zend_op *opline = op_array->opcodes, *end=opline+op_array->last;
498 CG(zend_lineno) = op_array->opcodes[op_num].lineno;
506 CG(zend_lineno) = op_array->opcodes[op_num].lineno;
527 ZEND_ASSERT(op_array->opcodes[op_num - 2].opcode == ZEND_FAST_CALL);
528 op_array->opcodes[op_nu
[all...]
H A Dzend_vm_def.h432 /* assign_obj has two opcodes! */
1614 /* assign_obj has two opcodes! */
1695 /* assign_dim has two opcodes! */
2177 ZEND_VM_SET_OPCODE(&EX(op_array)->opcodes[opline->extended_value]);
2183 ZEND_VM_SET_OPCODE(&EX(op_array)->opcodes[opline->op2.opline_num]);
3010 ZEND_VM_SET_OPCODE(&EX(op_array)->opcodes[opline->extended_value]);
3034 ZEND_VM_SET_OPCODE(&EX(op_array)->opcodes[opline->extended_value]);
3504 ZEND_VM_JMP(EX(op_array)->opcodes + el->brk);
3515 ZEND_VM_JMP(EX(op_array)->opcodes + el->cont);
3528 brk_opline = EX(op_array)->opcodes
[all...]
/PHP_TRUNK/ext/opcache/
H A Dzend_persist_calc.c183 if (!zend_shared_alloc_get_xlat_entry(op_array->opcodes)) {
185 zend_op *opline = op_array->opcodes;
186 zend_op *end = op_array->opcodes + op_array->last;
188 ADD_DUP_SIZE(op_array->opcodes, sizeof(zend_op) * op_array->last);
199 ADD_DUP_SIZE(op_array->opcodes, sizeof(zend_op) * op_array->last);
H A Dzend_persist.c275 if ((persist_ptr = zend_shared_alloc_get_xlat_entry(op_array->opcodes))) {
276 op_array->opcodes = persist_ptr;
278 zend_op *new_opcodes = zend_accel_memdup(op_array->opcodes, sizeof(zend_op) * op_array->last);
306 ZEND_OP1(opline).jmp_addr = &new_opcodes[ZEND_OP1(opline).jmp_addr - op_array->opcodes];
315 ZEND_OP2(opline).jmp_addr = &new_opcodes[ZEND_OP2(opline).jmp_addr - op_array->opcodes];
355 ZEND_OP1(opline).jmp_addr = &new_opcodes[ZEND_OP1(opline).jmp_addr - op_array->opcodes];
365 ZEND_OP2(opline).jmp_addr = &new_opcodes[ZEND_OP2(opline).jmp_addr - op_array->opcodes];
372 efree(op_array->opcodes);
373 op_array->opcodes = new_opcodes;
H A Dzend_accelerator_util_funcs.c940 CG(zend_lineno) = function1->op_array.opcodes[0].lineno;
946 (int)function2->op_array.opcodes[0].lineno);
982 if (zend_lookup_class(Z_STRVAL(op_array->opcodes[opline_num - 1].op2.u.constant), Z_STRLEN(op_array->opcodes[opline_num - 1].op2.u.constant), &pce TSRMLS_CC) == SUCCESS) {
983 do_bind_inherited_class(&op_array->opcodes[opline_num], EG(class_table), *pce, 1 TSRMLS_CC);
985 opline_num = op_array->opcodes[opline_num].result.u.opline_num;
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_bp.c379 opline_break.opline = brake->opline = (zend_ulong)(op_array->opcodes + brake->opline_num);
912 return param->type == STR_PARAM || execute_data->opline - ops->opcodes == param->num;
945 return param->type == METHOD_PARAM || (execute_data->opline - ops->opcodes) == param->num;
1058 if (execute_data->opline == EG(active_op_array)->opcodes) {
H A Dphpdbg_opcode.c90 asprintf(&decode[1], "J%ld", op->op1.jmp_addr - ops->opcodes);
112 &decode[2], "J%ld", op->op2.jmp_addr - ops->opcodes);
H A Dphpdbg_print.c61 zend_op *opline = &(op_array->opcodes[0]);
H A Dphpdbg_prompt.c352 phpdbg_notice("Destroying compiled opcodes");
434 self = (EG(current_execute_data)->opline - EG(active_op_array)->opcodes);
435 zend_op *opline = &EG(active_op_array)->opcodes[self];
438 if (EG(active_op_array)->opcodes[next].lineno != opline->lineno) {
441 (zend_ulong) &EG(active_op_array)->opcodes[next],
442 &EG(active_op_array)->opcodes[next],
462 self = (EG(current_execute_data)->opline - EG(active_op_array)->opcodes);
465 switch (EG(active_op_array)->opcodes[next].opcode) {
474 (zend_ulong) &EG(active_op_array)->opcodes[next],
475 &EG(active_op_array)->opcodes[nex
[all...]
H A Dphpdbg.c285 EG(active_op_array)->opcodes);
288 &EG(active_op_array)->opcodes[opline_num+1] TSRMLS_CC);

Completed in 93 milliseconds

12