Searched refs:opcode (Results 1 - 25 of 42) sorted by relevance

12

/PHP_TRUNK/ext/opcache/Optimizer/
H A Dnop_removal.c20 if (opline->opcode == ZEND_GOTO &&
29 if (opline->opcode == ZEND_JMP && ZEND_OP1(opline).opline_num > i) {
33 while (target->opcode == ZEND_NOP) {
38 opline->opcode = ZEND_NOP;
43 if (opline->opcode == ZEND_NOP) {
59 switch (opline->opcode) {
H A Doptimize_temp_vars_5.c98 if (!(op_const_means_class[opline->opcode] & RESULT_IS_UNUSED)) {
119 || ((op_const_means_class[opline->opcode] & OP1_CONST_IS_CLASS) && ZEND_OP1_TYPE(opline) == IS_CONST)
132 if (opline->opcode == ZEND_OP_DATA &&
133 (opline-1)->opcode == ZEND_ASSIGN_DIM) {
140 || ((op_const_means_class[opline->opcode] & OP2_CONST_IS_CLASS) && ZEND_OP2_TYPE(opline) == IS_CONST)
153 if ((op_const_means_class[opline->opcode] & EXT_CONST_IS_CLASS)) {
155 if (opline->opcode == ZEND_DECLARE_INHERITED_CLASS ||
156 opline->opcode == ZEND_DECLARE_INHERITED_CLASS_DELAYED) {
168 if (opline->opcode == ZEND_ASSIGN_DIM &&
169 (opline + 1)->opcode
[all...]
H A Dpass3.c42 switch (opline->opcode) {
57 while (next_opline < end && next_opline->opcode == ZEND_NOP) {
61 if (next_opline >= end || next_opline->opcode != ZEND_ASSIGN) {
67 (opline->opcode == ZEND_ADD ||
68 opline->opcode == ZEND_MUL ||
69 opline->opcode == ZEND_BW_OR ||
70 opline->opcode == ZEND_BW_AND ||
71 opline->opcode == ZEND_BW_XOR)) {
82 if (opline->opcode != ZEND_ADD || ZEND_OP1_TYPE(opline) == IS_CONST) {
91 switch (opline->opcode) {
[all...]
H A Dpass2.c13 switch (opline->opcode) {
88 opline->opcode -= 3;
97 if (opline->opcode == ZEND_JMPZ_EX) {
101 opline->opcode = ZEND_QM_ASSIGN;
116 if (opline->opcode == ZEND_JMPZ) {
122 opline->opcode = ZEND_JMP;
129 if ((opline + 1)->opcode == ZEND_JMP) {
136 if (opline->opcode == ZEND_JMPZ) {
142 opline->opcode = ZEND_JMPZNZ;
162 opline->opcode
[all...]
H A Dzend_optimizer.c146 if (opline->opcode == ZEND_FREE) {
153 switch (opline->opcode) {
193 switch (opline->opcode) {
253 if ((opline-1)->opcode == ZEND_ASSIGN_DIM ||
255 ((opline-1)->opcode == ZEND_ASSIGN_ADD ||
256 (opline-1)->opcode == ZEND_ASSIGN_SUB ||
257 (opline-1)->opcode == ZEND_ASSIGN_MUL ||
258 (opline-1)->opcode == ZEND_ASSIGN_DIV ||
259 (opline-1)->opcode == ZEND_ASSIGN_MOD ||
260 (opline-1)->opcode
[all...]
H A Dzend_optimizer_internal.h44 # define MAKE_NOP(opline) { opline->opcode = ZEND_NOP; memset(&opline->result,0,sizeof(opline->result)); memset(&opline->op1,0,sizeof(opline->op1)); memset(&opline->op2,0,sizeof(opline->op2)); opline->result_type=opline->op1_type=opline->op2_type=IS_UNUSED; opline->handler = zend_opcode_handlers[ZEND_NOP]; }
49 # define MAKE_NOP(opline) { opline->opcode = ZEND_NOP; memset(&opline->result,0,sizeof(znode)); memset(&opline->op1,0,sizeof(znode)); memset(&opline->op2,0,sizeof(znode)); opline->result.op_type=opline->op1.op_type=opline->op2.op_type=IS_UNUSED; opline->handler = zend_opcode_handlers[ZEND_NOP]; }
H A Dblock_pass.c96 switch((unsigned)opline->opcode) {
191 (op_array->opcodes[op_array->brk_cont_array[i].brk].opcode == ZEND_FREE ||
192 op_array->opcodes[op_array->brk_cont_array[i].brk].opcode == ZEND_SWITCH_FREE)) {
197 op_array->opcodes[op_array->brk_cont_array[parent].brk].opcode != ZEND_FREE &&
198 op_array->opcodes[op_array->brk_cont_array[parent].brk].opcode != ZEND_SWITCH_FREE) {
212 (op_array->opcodes[op_array->brk_cont_array[i].brk].opcode == ZEND_FREE ||
213 op_array->opcodes[op_array->brk_cont_array[i].brk].opcode == ZEND_SWITCH_FREE)) {
245 if (opline->opcode == ZEND_OP_DATA) {
248 switch((unsigned)opline->opcode) {
567 while (block->len > 0 && block->start_opline->opcode
[all...]
H A Dpass1_5.c22 switch (opline->opcode) {
44 int (*binary_op)(zval *result, zval *op1, zval *op2 TSRMLS_DC) = get_binary_op(opline->opcode);
49 if (opline->opcode == ZEND_DIV &&
108 opline->opcode = ZEND_BOOL;
117 unary_op_type unary_op = get_unary_op(opline->opcode);
147 int requires_conversion = (opline->opcode == ZEND_ADD_CHAR? 1 : 0);
157 while (next_op->opcode == ZEND_ADD_STRING || next_op->opcode == ZEND_ADD_CHAR) {
161 if (next_op->opcode == ZEND_ADD_CHAR) {
181 opline->opcode
[all...]
H A Doptimize_func_calls.c23 switch (opline->opcode) {
54 opline->opcode = ZEND_DO_FCALL;
59 if (fcall->opcode == ZEND_INIT_NS_FCALL_BY_NAME) {
65 call_stack[call].opline->opcode == ZEND_INIT_FCALL_BY_NAME &&
70 opline->opcode = ZEND_DO_FCALL;
86 opline->opcode -= 9;
89 opline->opcode -= 12;
106 opline->opcode = ZEND_SEND_REF;
118 opline->opcode = ZEND_SEND_VAR;
/PHP_TRUNK/Zend/
H A Dzend.c485 EG(exception_op)[0].opcode = ZEND_HANDLE_EXCEPTION;
490 EG(exception_op)[1].opcode = ZEND_HANDLE_EXCEPTION;
495 EG(exception_op)[2].opcode = ZEND_HANDLE_EXCEPTION;
1259 EG(current_execute_data)->opline->opcode == ZEND_INCLUDE_OR_EVAL &&
H A Dzend_builtin_functions.c2105 skip->prev_execute_data->opline->opcode != ZEND_DO_FCALL &&
2106 skip->prev_execute_data->opline->opcode != ZEND_DO_FCALL_BY_NAME &&
2107 skip->prev_execute_data->opline->opcode != ZEND_INCLUDE_OR_EVAL) {
2150 if ((! ptr->opline) || ((ptr->opline->opcode == ZEND_DO_FCALL_BY_NAME) || (ptr->opline->opcode == ZEND_DO_FCALL))) {
2159 if (!ptr->opline || ptr->opline->opcode != ZEND_INCLUDE_OR_EVAL) {
2251 if (ptr && (skip_last == 0) && ptr->opline && (ptr->opline->opcode == ZEND_NEW)) {
2272 skip->prev_execute_data->opline->opcode != ZEND_DO_FCALL &&
2273 skip->prev_execute_data->opline->opcode != ZEND_DO_FCALL_BY_NAME &&
2274 skip->prev_execute_data->opline->opcode !
[all...]
H A Dzend_object_handlers.h88 /* Andi - EX(fbc) (function being called) needs to be initialized already in the INIT fcall opcode so that the parameters can be parsed the right way. We need to add another callback for this.
117 typedef int (*zend_object_do_operation_t)(zend_uchar opcode, zval *result, zval *op1, zval *op2 TSRMLS_DC);
H A Dzend_vm.h25 ZEND_API void zend_vm_set_opcode_handler(zend_op* opcode);
H A Dzend_opcode.c430 zend_printf("Ran out of opcode space!\n"
462 if (opline->opcode == ZEND_EXT_STMT) {
464 if ((opline+1)->opcode == ZEND_EXT_STMT) {
465 opline->opcode = ZEND_NOP;
473 opline->opcode = ZEND_NOP;
536 opline->opcode = ZEND_FAST_CALL;
555 opline->opcode = ZEND_FAST_CALL;
562 /* Finish the sequence with original opcode */
566 /* Replace original opcode with jump to this sequence */
568 opline->opcode
741 get_unary_op(int opcode) argument
756 get_binary_op(int opcode) argument
[all...]
H A Dzend_operators.h959 #define ZEND_TRY_BINARY_OBJECT_OPERATION(opcode) \
961 if (SUCCESS == Z_OBJ_HANDLER_P(op1, do_operation)(opcode, result, op1, op2 TSRMLS_CC)) { \
965 if (SUCCESS == Z_OBJ_HANDLER_P(op2, do_operation)(opcode, result, op1, op2 TSRMLS_CC)) { \
970 #define ZEND_TRY_UNARY_OBJECT_OPERATION(opcode) \
972 && SUCCESS == Z_OBJ_HANDLER_P(op1, do_operation)(opcode, result, op1, NULL TSRMLS_CC) \
H A Dzend_vm_opcodes.c195 ZEND_API const char* zend_get_opcode_name(zend_uchar opcode) { argument
196 return zend_vm_opcodes_map[opcode];
H A Dzend_vm_opcodes.h24 ZEND_API const char *zend_get_opcode_name(zend_uchar opcode);
H A Dzend_compile.h118 zend_uchar opcode; member in struct:_zend_op
485 ZEND_API unary_op_type get_unary_op(int opcode);
486 ZEND_API binary_op_type get_binary_op(int opcode);
900 /* generate ZEND_DECLARE_INHERITED_CLASS_DELAYED opcode to delay early binding */
H A Dzend_execute.c673 static inline void zend_assign_to_object(zval **retval, zval **object_ptr, zval *property_name, int value_type, znode_op *value_op, const zend_execute_data *execute_data, int opcode, const zend_literal *key TSRMLS_DC) argument
739 if (opcode == ZEND_ASSIGN_OBJ) {
1431 switch (brk_opline->opcode) {
1764 ZEND_API int zend_set_user_opcode_handler(zend_uchar opcode, user_opcode_handler_t handler) argument
1766 if (opcode != ZEND_USER_OPCODE) {
1769 zend_user_opcodes[opcode] = opcode;
1771 zend_user_opcodes[opcode] = ZEND_USER_OPCODE;
1773 zend_user_opcode_handlers[opcode] = handler;
1779 ZEND_API user_opcode_handler_t zend_get_user_opcode_handler(zend_uchar opcode) argument
[all...]
H A Dzend_compile.c588 opline->opcode = op;
601 opline->opcode = op;
610 #define MAKE_NOP(opline) { opline->opcode = ZEND_NOP; memset(&opline->result,0,sizeof(opline->result)); memset(&opline->op1,0,sizeof(opline->op1)); memset(&opline->op2,0,sizeof(opline->op2)); opline->result_type=opline->op1_type=opline->op2_type=IS_UNUSED; }
614 data_op->opcode = ZEND_OP_DATA;
628 switch (last_op->opcode) {
630 last_op->opcode = op;
638 last_op->opcode = op;
652 opline->opcode = op;
679 CG(active_op_array)->opcodes[CG(active_op_array)->last-1].opcode != ZEND_BEGIN_SILENCE)) {
695 opline_ptr->opcode
[all...]
H A Dzend_execute.h384 #define ZEND_USER_OPCODE_CONTINUE 0 /* execute next opcode */
386 #define ZEND_USER_OPCODE_DISPATCH 2 /* call original opcode handler */
390 #define ZEND_USER_OPCODE_DISPATCH_TO 0x100 /* call original handler of returned opcode */
392 ZEND_API int zend_set_user_opcode_handler(zend_uchar opcode, user_opcode_handler_t handler);
393 ZEND_API user_opcode_handler_t zend_get_user_opcode_handler(zend_uchar opcode);
/PHP_TRUNK/ext/mbstring/oniguruma/
H A Dregcomp.c201 add_opcode(regex_t* reg, int opcode) argument
203 BBUF_ADD1(reg, opcode);
271 add_opcode_rel_addr(regex_t* reg, int opcode, int addr) argument
275 r = add_opcode(reg, opcode);
296 add_opcode_option(regex_t* reg, int opcode, OnigOptionType option) argument
300 r = add_opcode(reg, opcode);
5767 op2name(int opcode) argument
5771 for (i = 0; OnigOpInfo[i].opcode >= 0; i++) {
5772 if (opcode == OnigOpInfo[i].opcode)
5779 op2arg_type(int opcode) argument
[all...]
/PHP_TRUNK/ext/opcache/
H A Dzend_persist.c302 switch (opline->opcode) {
327 (opline + 1)->opcode != ZEND_FETCH_CLASS ||
328 (opline + 2)->opcode != ZEND_ADD_INTERFACE)) {
338 opline->opcode = ZEND_DECLARE_INHERITED_CLASS_DELAYED;
349 switch (opline->opcode) {
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_opcode.c82 switch (op->opcode) {
159 phpdbg_decode_opcode(opline->opcode),
168 phpdbg_decode_opcode(opline->opcode),
184 const char *phpdbg_decode_opcode(zend_uchar opcode) /* {{{ */ argument
188 switch (opcode) {
365 const char *ret = zend_get_opcode_name(opcode);
H A Dphpdbg_print.c62 zend_uint opcode = 0, local
86 phpdbg_decode_opcode(opline->opcode),
93 } while (opcode++ < end);

Completed in 52 milliseconds

12