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

12

/PHP_TRUNK/Zend/
H A Dzend_generators.c43 * SWITCH_FREE / FREE opcodes. */
47 uint32_t 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.php319 $opcodes = array(); // opcode handlers by code variable
632 global $opcodes, $op_types, $prefix, $typecode;
639 foreach($opcodes as $num => $dsc) {
724 foreach($opcodes as $num => $dsc) {
771 // Generates handler for undefined opcodes (CALL threading model)
776 // for undefined opcodes, do we emit code for it only once
789 global $list, $opcodes, $helpers, $op_types;
804 if (isset($opcodes[$num]["op1"][$op1]) &&
805 isset($opcodes[$num]["op2"][$op2])) {
807 gen_handler($f, 1, $kind, $opcodes[
[all...]
H A Dzend_opcode.c48 op_array->opcodes = erealloc(op_array->opcodes, size * sizeof(zend_op));
58 op_array->opcodes = NULL;
351 efree(op_array->opcodes);
396 next_op = &(op_array->opcodes[next_op_num]);
417 zend_op *opline = op_array->opcodes, *end=opline+op_array->last;
456 CG(zend_lineno) = op_array->opcodes[op_num].lineno;
464 CG(zend_lineno) = op_array->opcodes[op_num].lineno;
485 ZEND_ASSERT(op_array->opcodes[op_num - 2].opcode == ZEND_FAST_CALL);
486 op_array->opcodes[op_nu
[all...]
H A Dzend_execute_API.c74 active_opline-EG(active_op_array)->opcodes,
H A Dzend_execute.c1353 zend_op *brk_opline = &op_array->opcodes[jmp_to->brk];
1470 EX(opline) = op_array->opcodes;
1488 /* Skip useless ZEND_RECV and ZEND_RECV_INIT opcodes */
1505 /* Skip useless ZEND_RECV and ZEND_RECV_INIT opcodes */
1539 EX(opline) = op_array->opcodes;
1563 EX(opline) = op_array->opcodes;
1586 /* Skip useless ZEND_RECV and ZEND_RECV_INIT opcodes */
1603 /* Skip useless ZEND_RECV and ZEND_RECV_INIT opcodes */
H A Dzend_compile.h281 zend_op *opcodes; member in struct:_zend_op_array
H A Dzend_vm_def.h418 /* assign_obj has two opcodes! */
1609 /* assign_obj has two opcodes! */
1668 /* assign_dim has two opcodes! */
2950 ZEND_VM_SET_OPCODE(&EX(func)->op_array.opcodes[opline->extended_value]);
2974 ZEND_VM_SET_OPCODE(&EX(func)->op_array.opcodes[opline->extended_value]);
3630 ZEND_VM_JMP(EX(func)->op_array.opcodes + el->brk);
3641 ZEND_VM_JMP(EX(func)->op_array.opcodes + el->cont);
3654 brk_opline = EX(func)->op_array.opcodes + el->brk;
5441 uint32_t op_num = EG(opline_before_exception) - EX(func)->op_array.opcodes;
5495 zend_op *brk_opline = &EX(func)->op_array.opcodes[E
[all...]
H A Dzend_compile.c530 zend_op *opline = &CG(active_op_array)->opcodes[CG(active_op_array)->last-1];
552 while (opline>CG(active_op_array)->opcodes) {
565 opline = &CG(active_op_array)->opcodes[CG(active_op_array)->last-1];
939 old_function->op_array.opcodes[0].lineno);
1036 zend_op *opline = &CG(active_op_array)->opcodes[CG(active_op_array)->last-1];
1039 while (opline->opcode == ZEND_TICKS && opline > CG(active_op_array)->opcodes) {
1070 opline_num = &CG(active_op_array)->opcodes[*opline_num].result.opline_num;
1072 *opline_num = opline - CG(active_op_array)->opcodes;
1117 if ((ce = zend_lookup_class(Z_STR_P(op_array->opcodes[opline_num-1].op2.zv) TSRMLS_CC)) != NULL) {
1118 do_bind_inherited_class(op_array, &op_array->opcodes[opline_nu
[all...]
/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];
85 end = op_array->opcodes;
86 opline = &op_array->opcodes[op_array->last - 1];
H A Dpass2.c39 zend_op *end = op_array->opcodes + op_array->last;
41 opline = op_array->opcodes;
208 (op_array->opcodes[jmp_to->brk].opcode == ZEND_FREE ||
209 op_array->opcodes[jmp_to->brk].opcode == ZEND_SWITCH_FREE)) {
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++) {
135 opline_num = &ZEND_RESULT(&op_array->opcodes[*opline_num]).opline_num;
H A Dpass1_5.c43 zend_op *opline = op_array->opcodes;
229 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 */
540 if (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;
191 if (op_array->opcodes[targe
[all...]
H A Dzend_optimizer.c79 zend_op *opline = op_array->opcodes;
270 zend_op *end = op_array->opcodes + op_array->last;
325 zend_op *end = op_array->opcodes + op_array->last;
446 opline = op_array->opcodes;
459 ZEND_OP1(opline).opline_num = ZEND_OP1(opline).jmp_addr - op_array->opcodes;
463 opline->extended_value = (zend_op*)(((char*)opline) + opline->extended_value) - op_array->opcodes;
473 ZEND_OP2(opline).opline_num = ZEND_OP2(opline).jmp_addr - op_array->opcodes;
483 opline = op_array->opcodes;
496 ZEND_OP1(opline).jmp_addr = &op_array->opcodes[ZEND_OP1(opline).opline_num];
500 opline->extended_value = (char*)(op_array->opcodes
[all...]
H A Dcompact_literals.c134 opline = op_array->opcodes;
466 /* Update opcodes to use new literals table */
467 opline = op_array->opcodes;
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/ext/opcache/
H A Dzend_persist.c320 if (zend_shared_alloc_get_xlat_entry(op_array->opcodes)) {
343 persist_ptr = zend_shared_alloc_get_xlat_entry(op_array->opcodes);
345 op_array->opcodes = persist_ptr;
347 zend_op *new_opcodes = zend_accel_memdup(op_array->opcodes, sizeof(zend_op) * op_array->last);
366 ZEND_OP1(opline).jmp_addr = &new_opcodes[ZEND_OP1(opline).jmp_addr - op_array->opcodes];
379 ZEND_OP2(opline).jmp_addr = &new_opcodes[ZEND_OP2(opline).jmp_addr - op_array->opcodes];
385 efree(op_array->opcodes);
386 op_array->opcodes = new_opcodes;
H A Dzend_accelerator_util_funcs.c815 CG(zend_lineno) = function1->op_array.opcodes[0].lineno;
821 (int)function2->op_array.opcodes[0].lineno);
H A Dzend_persist_calc.c166 if (zend_shared_alloc_get_xlat_entry(op_array->opcodes)) {
187 ADD_DUP_SIZE(op_array->opcodes, sizeof(zend_op) * op_array->last);
/PHP_TRUNK/sapi/phpdbg/
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;
1051 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);
109 &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...]

Completed in 59 milliseconds

12