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

12

/PHP_TRUNK/sapi/phpdbg/
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.c285 EG(active_op_array)->opcodes);
288 &EG(active_op_array)->opcodes[opline_num+1] TSRMLS_CC);
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_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...]
/PHP_TRUNK/Zend/
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;
155 op_num = ex->opline - ex->func->op_array.opcodes - 1;
174 ex->opline = &ex->func->op_array.opcodes[finally_op_num];
H A Dzend_vm_gen.php323 $opcodes = array(); // opcode handlers by code variable
641 global $opcodes, $op_types, $prefix, $typecode;
648 foreach($opcodes as $num => $dsc) {
733 foreach($opcodes as $num => $dsc) {
780 // Generates handler for undefined opcodes (CALL threading model)
785 // for undefined opcodes, do we emit code for it only once
798 global $list, $opcodes, $helpers, $op_types;
813 if (isset($opcodes[$num]["op1"][$op1]) &&
814 isset($opcodes[$num]["op2"][$op2])) {
816 gen_handler($f, 1, $kind, $opcodes[
[all...]
H A Dzend_compile.c614 zend_op *last_op = &CG(active_op_array)->opcodes[last_op_number-1];
663 CG(active_op_array)->opcodes[CG(active_op_array)->last-1].opcode != ZEND_BEGIN_SILENCE)) {
948 last_op = &CG(active_op_array)->opcodes[last_op_number-n-1];
954 int opline_no = (opline-CG(active_op_array)->opcodes)/sizeof(*opline);
960 last_op = &CG(active_op_array)->opcodes[opline_no];
969 int opline_no = (opline-CG(active_op_array)->opcodes)/sizeof(*opline);
973 /* TBFixed: this can realloc opcodes, leaving last_op pointing wrong */
976 last_op = &CG(active_op_array)->opcodes[opline_no];
1016 opline = &CG(active_op_array)->opcodes[last_op_number-1];
1097 CG(active_op_array)->opcodes[close_bracket_toke
[all...]
H A Dzend_compile.h263 zend_op *opcodes; member in struct:_zend_op_array
H A Dzend_execute.c1442 zend_op *brk_opline = &op_array->opcodes[jmp_to->brk];
1565 EX(opline) = op_array->opcodes;
1567 /* Skip useless ZEND_RECV opcodes */
1628 EX(opline) = UNEXPECTED((op_array->fn_flags & ZEND_ACC_INTERACTIVE) != 0) && EG(start_op) ? EG(start_op) : op_array->opcodes;
1657 EX(opline) = UNEXPECTED((op_array->fn_flags & ZEND_ACC_INTERACTIVE) != 0) && EG(start_op) ? EG(start_op) : op_array->opcodes;
H A Dzend_execute_API.c74 active_opline-EG(active_op_array)->opcodes,
1171 EG(start_op) = CG(active_op_array)->opcodes;
1175 end=CG(active_op_array)->opcodes+CG(active_op_array)->last;
1191 opline->op1.jmp_addr = &CG(active_op_array)->opcodes[opline->op1.opline_num];
1195 opline->extended_value = (char*)(CG(active_op_array)->opcodes + opline->extended_value) - (char*)opline;
1206 opline->op2.jmp_addr = &CG(active_op_array)->opcodes[opline->op2.opline_num];
1225 EG(start_op) = CG(active_op_array)->opcodes+CG(active_op_array)->last;
H A Dzend_opcode.c48 op_array->opcodes = erealloc(op_array->opcodes, size * sizeof(zend_op));
65 op_array->opcodes = NULL;
358 efree(op_array->opcodes);
409 next_op = &(op_array->opcodes[next_op_num]);
430 zend_op *opline = op_array->opcodes, *end=opline+op_array->last;
469 CG(zend_lineno) = op_array->opcodes[op_num].lineno;
477 CG(zend_lineno) = op_array->opcodes[op_num].lineno;
498 ZEND_ASSERT(op_array->opcodes[op_num - 2].opcode == ZEND_FAST_CALL);
499 op_array->opcodes[op_nu
[all...]
H A Dzend_vm_def.h418 /* assign_obj has two opcodes! */
1601 /* assign_obj has two opcodes! */
1665 /* assign_dim has two opcodes! */
2955 ZEND_VM_SET_OPCODE(&EX(func)->op_array.opcodes[opline->extended_value]);
2979 ZEND_VM_SET_OPCODE(&EX(func)->op_array.opcodes[opline->extended_value]);
3635 ZEND_VM_JMP(EX(func)->op_array.opcodes + el->brk);
3646 ZEND_VM_JMP(EX(func)->op_array.opcodes + el->cont);
3659 brk_opline = EX(func)->op_array.opcodes + el->brk;
5398 zend_uint op_num = EG(opline_before_exception) - EX(func)->op_array.opcodes;
5452 zend_op *brk_opline = &EX(func)->op_array.opcodes[E
[all...]
/PHP_TRUNK/ext/opcache/Optimizer/
H A Doptimize_func_calls.c29 zend_op *opline = op_array->opcodes;
H A Doptimize_temp_vars_5.c53 end = op_array->opcodes;
54 opline = &op_array->opcodes[op_array->last - 1];
77 end = op_array->opcodes;
78 opline = &op_array->opcodes[op_array->last - 1];
H A Dpass3.c28 /* compares opcodes with allowing oc1 be _EX of oc2 */
34 if (jmp_hitlist[i] == ZEND_OP1(&op_array->opcodes[target]).opline_num) { \
38 jmp_hitlist[jmp_hitlist_count++] = ZEND_OP1(&op_array->opcodes[target]).opline_num;
42 if (jmp_hitlist[i] == ZEND_OP2(&op_array->opcodes[target]).opline_num) { \
46 jmp_hitlist[jmp_hitlist_count++] = ZEND_OP2(&op_array->opcodes[target]).opline_num;
50 zend_op *end = op_array->opcodes + op_array->last;
58 opline = op_array->opcodes;
168 && op_array->opcodes[ZEND_OP1(opline).opline_num].opcode == ZEND_JMP) {
171 ZEND_OP1(opline).opline_num = ZEND_OP1(&op_array->opcodes[target]).opline_num;
183 if (op_array->opcodes[targe
[all...]
H A Dblock_pass.c62 # define BLOCK_REF(b) b?op_array->opcodes-b->start_opline:-1
64 static inline void print_block(zend_code_block *block, zend_op *opcodes, char *txt) argument
66 fprintf(stderr, "%sBlock: %d-%d (%d)", txt, block->start_opline - opcodes, block->start_opline - opcodes + block->len - 1, block->len);
71 fprintf(stderr, " 1: %d", block->op1_to->start_opline - opcodes);
74 fprintf(stderr, " 2: %d", block->op2_to->start_opline - opcodes);
77 fprintf(stderr, " e: %d", block->ext_to->start_opline - opcodes);
80 fprintf(stderr, " f: %d", block->follow_to->start_opline - opcodes);
87 fprintf(stderr, " %d", bs->from->start_opline - opcodes);
99 #define START_BLOCK_OP(opno) blocks[opno].start_opline = &op_array->opcodes[opn
[all...]
H A Dcompact_literals.c124 opline = op_array->opcodes;
453 /* Update opcodes to use new literals table */
454 opline = op_array->opcodes;
H A Dnop_removal.c36 end = op_array->opcodes + op_array->last;
37 for (opline = op_array->opcodes; opline < end; opline++) {
50 zend_op *target = op_array->opcodes + ZEND_OP1(opline).opline_num - 1;
66 op_array->opcodes[new_count] = *opline;
74 end = op_array->opcodes + op_array->last;
77 for (opline = op_array->opcodes; opline<end; opline++) {
128 opline_num = &ZEND_RESULT(&op_array->opcodes[*opline_num]).opline_num;
H A Dpass1_5.c34 zend_op *opline = op_array->opcodes;
220 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 */
532 if (opline != op_array->opcodes &&
H A Dpass2.c30 zend_op *end = op_array->opcodes + op_array->last;
32 opline = op_array->opcodes;
199 (op_array->opcodes[jmp_to->brk].opcode == ZEND_FREE ||
200 op_array->opcodes[jmp_to->brk].opcode == ZEND_SWITCH_FREE)) {
H A Dzend_optimizer.c82 zend_op *opline = op_array->opcodes;
296 zend_op *end = op_array->opcodes + op_array->last;
351 zend_op *end = op_array->opcodes + op_array->last;
467 opline = op_array->opcodes;
480 ZEND_OP1(opline).opline_num = ZEND_OP1(opline).jmp_addr - op_array->opcodes;
484 opline->extended_value = (zend_op*)(((char*)opline) + opline->extended_value) - op_array->opcodes;
495 ZEND_OP2(opline).opline_num = ZEND_OP2(opline).jmp_addr - op_array->opcodes;
505 opline = op_array->opcodes;
518 ZEND_OP1(opline).jmp_addr = &op_array->opcodes[ZEND_OP1(opline).opline_num];
522 opline->extended_value = (char*)(op_array->opcodes
[all...]
/PHP_TRUNK/ext/opcache/
H A Dzend_persist_calc.c157 if (zend_shared_alloc_get_xlat_entry(op_array->opcodes)) {
178 ADD_DUP_SIZE(op_array->opcodes, sizeof(zend_op) * op_array->last);
H A Dzend_accelerator_util_funcs.c799 CG(zend_lineno) = function1->op_array.opcodes[0].lineno;
805 (int)function2->op_array.opcodes[0].lineno);
H A Dzend_persist.c305 if (zend_shared_alloc_get_xlat_entry(op_array->opcodes)) {
328 persist_ptr = zend_shared_alloc_get_xlat_entry(op_array->opcodes);
330 op_array->opcodes = persist_ptr;
332 zend_op *new_opcodes = zend_accel_memdup(op_array->opcodes, sizeof(zend_op) * op_array->last);
351 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];
371 efree(op_array->opcodes);
372 op_array->opcodes = new_opcodes;

Completed in 46 milliseconds

12