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

12

/PHP_TRUNK/ext/opcache/Optimizer/
H A Doptimize_func_calls.c43 zend_op *opline = op_array->opcodes;
H A Dpass2.c39 zend_op *end = op_array->opcodes + op_array->last;
41 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 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 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...]
H A Dnop_removal.c44 end = op_array->opcodes + op_array->last;
45 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++) {
134 opline_num = &ZEND_RESULT(&op_array->opcodes[*opline_num]).opline_num;
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 */
651 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;
500 opline = op_array->opcodes;
544 opline = op_array->opcodes;
591 opline = op_array->opcodes;
H A Dcompact_literals.c135 opline = op_array->opcodes;
497 /* Update opcodes to use new literals table */
498 opline = op_array->opcodes;
/PHP_TRUNK/ext/opcache/
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_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);
507 ZEND_OP1(opline).jmp_addr = &new_opcodes[ZEND_OP1(opline).jmp_addr - op_array->opcodes];
522 ZEND_OP2(opline).jmp_addr = &new_opcodes[ZEND_OP2(opline).jmp_addr - op_array->opcodes];
534 efree(op_array->opcodes);
535 op_array->opcodes = new_opcodes;
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;
418 SERIALIZE_PTR(op_array->opcodes);
922 if (!IS_UNSERIALIZED(op_array->opcodes)) {
925 UNSERIALIZE_PTR(op_array->opcodes);
926 opline = op_array->opcodes;
/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
934 global $list, $opcodes, $helpers, $op_types_ex;
949 if (isset($opcodes[$num]["op1"][$op1]) &&
950 isset($opcodes[$num]["op2"][$op2])) {
952 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; \
954 /* 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;
383 efree(op_array->opcodes);
443 next_op = &(op_array->opcodes[next_op_num]);
464 zend_op *opline = op_array->opcodes, *end=opline+op_array->last;
503 CG(zend_lineno) = op_array->opcodes[op_num].lineno;
511 CG(zend_lineno) = op_array->opcodes[op_num].lineno;
532 ZEND_ASSERT(op_array->opcodes[op_num - 2].opcode == ZEND_FAST_CALL);
533 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.c604 zend_op *opline = &CG(active_op_array)->opcodes[CG(active_op_array)->last-1];
625 while (opline >= CG(active_op_array)->opcodes) {
640 opline = &CG(active_op_array)->opcodes[CG(active_op_array)->last-1];
968 old_function->op_array.opcodes[0].lineno);
1065 zend_op *opline = &CG(active_op_array)->opcodes[CG(active_op_array)->last-1];
1068 while (opline->opcode == ZEND_TICKS && opline > CG(active_op_array)->opcodes) {
1099 opline_num = &CG(active_op_array)->opcodes[*opline_num].result.opline_num;
1101 *opline_num = opline - CG(active_op_array)->opcodes;
1146 zval *parent_name = RT_CONSTANT(op_array, op_array->opcodes[opline_num-1].op2);
1148 do_bind_inherited_class(op_array, &op_array->opcodes[opline_nu
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_print.c60 zend_op *opline = &(op_array->opcodes[0]);
H A Dphpdbg_bp.c492 opline_break.opline = brake->opline = (zend_ulong)(op_array->opcodes + brake->opline_num);
998 return param->type == STR_PARAM || execute_data->opline - ops->opcodes == param->num;
1031 return param->type == METHOD_PARAM || (execute_data->opline - ops->opcodes) == param->num;
1118 if (execute_data->opline == op_array->opcodes + op_array->num_args + !!(op_array->fn_flags & ZEND_ACC_VARIADIC)) {
H A Dphpdbg_utils.c730 op_num = op - op_array->opcodes;
741 cur = &op_array->opcodes[catch];
H A Dphpdbg_opcode.h36 zend_op *opcodes; member in struct:_phpdbg_oplog_entry
H A Dphpdbg.c426 /* ignore RECV_* opcodes */
427 zend_op *cur = op_array->opcodes + op_array->num_args + !!(op_array->fn_flags & ZEND_ACC_VARIADIC);
428 zend_op *end = op_array->opcodes + op_array->last;
451 insert_idx = cur - op_array->opcodes;
497 if (options && (option_buffer = zend_hash_str_find(options, ZEND_STRL("opcodes")))) {
602 if (options && (option_buffer = zend_hash_str_find(options, ZEND_STRL("opcodes")))) {
649 insert_idx = cur->op - cur->opcodes;
1015 {'e', 0, "generate ext_stmt opcodes"},
1023 {'p', 2, "show opcodes"},
1818 quiet_write(PHPDBG_G(io)[PHPDBG_STDERR].fd, ZEND_STRL("No opcodes coul
[all...]
H A Dphpdbg_opcode.c89 spprintf(&decode[1], 0, "J%td", OP_JMP_ADDR(op, op->op1) - ops->opcodes);
108 OP_JMP_ADDR(op, op->op2) - ops->opcodes,
109 ZEND_OFFSET_TO_OPLINE(op, op->extended_value) - ops->opcodes);
118 spprintf(&decode[2], 0, "J%td", OP_JMP_ADDR(op, op->op2) - ops->opcodes);
207 cur->opcodes = op_array->opcodes;
H A Dphpdbg_prompt.c411 phpdbg_notice("exec", "type=\"unsetops\"", "Destroying compiled opcodes");
513 while (++opline < op_array->opcodes + op_array->last) {
558 while (++opline < op_array->opcodes + op_array->last) {
1629 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);

Completed in 61 milliseconds

12