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

123

/PHP_TRUNK/Zend/
H A Dzend_vm.h25 ZEND_API void zend_vm_set_opcode_handler(zend_op* opcode);
H A Dzend_vm_opcodes.c196 ZEND_API const char* zend_get_opcode_name(zend_uchar opcode) { argument
197 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_builtin_functions.c2194 skip->prev_execute_data->opline->opcode != ZEND_DO_FCALL &&
2195 skip->prev_execute_data->opline->opcode != ZEND_INCLUDE_OR_EVAL) {
2201 if (skip->opline->opcode == ZEND_HANDLE_EXCEPTION) {
2264 if (!ptr->func || !ZEND_USER_CODE(ptr->func->common.type) || ptr->opline->opcode != ZEND_INCLUDE_OR_EVAL) {
2369 if (ptr->func && ZEND_USER_CODE(ptr->func->common.type) && (ptr->opline->opcode == ZEND_NEW)) {
2392 skip->prev_execute_data->opline->opcode != ZEND_DO_FCALL &&
2393 skip->prev_execute_data->opline->opcode != ZEND_INCLUDE_OR_EVAL) {
2399 if (skip->opline->opcode == ZEND_HANDLE_EXCEPTION) {
2495 if (!ptr->func || !ZEND_USER_CODE(ptr->func->common.type) || ptr->opline->opcode != ZEND_INCLUDE_OR_EVAL) {
H A Dzend_compile.c576 opline->opcode = op;
589 opline->opcode = op;
598 #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; }
602 data_op->opcode = ZEND_OP_DATA;
616 switch (last_op->opcode) {
618 last_op->opcode = op;
626 last_op->opcode = op;
640 opline->opcode = op;
663 CG(active_op_array)->opcodes[CG(active_op_array)->last-1].opcode != ZEND_BEGIN_SILENCE)) {
679 opline_ptr->opcode
[all...]
H A Dzend_execute.c680 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, void **cache_slot TSRMLS_DC) argument
740 if (opcode == ZEND_ASSIGN_OBJ) {
1444 if (brk_opline->opcode == ZEND_SWITCH_FREE) {
1448 } else if (brk_opline->opcode == ZEND_FREE) {
1848 ZEND_API int zend_set_user_opcode_handler(zend_uchar opcode, user_opcode_handler_t handler) argument
1850 if (opcode != ZEND_USER_OPCODE) {
1853 zend_user_opcodes[opcode] = opcode;
1855 zend_user_opcodes[opcode] = ZEND_USER_OPCODE;
1857 zend_user_opcode_handlers[opcode]
1863 zend_get_user_opcode_handler(zend_uchar opcode) argument
[all...]
H A Dzend_execute.h305 #define ZEND_USER_OPCODE_CONTINUE 0 /* execute next opcode */
307 #define ZEND_USER_OPCODE_DISPATCH 2 /* call original opcode handler */
311 #define ZEND_USER_OPCODE_DISPATCH_TO 0x100 /* call original handler of returned opcode */
313 ZEND_API int zend_set_user_opcode_handler(zend_uchar opcode, user_opcode_handler_t handler);
314 ZEND_API user_opcode_handler_t zend_get_user_opcode_handler(zend_uchar opcode);
H A Dzend_object_handlers.h87 /* 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.
115 typedef int (*zend_object_do_operation_t)(zend_uchar opcode, zval *result, zval *op1, zval *op2 TSRMLS_DC);
H A Dzend_opcode.c401 zend_printf("Ran out of opcode space!\n"
433 if (opline->opcode == ZEND_EXT_STMT) {
435 if ((opline+1)->opcode == ZEND_EXT_STMT) {
436 opline->opcode = ZEND_NOP;
444 opline->opcode = ZEND_NOP;
498 ZEND_ASSERT(op_array->opcodes[op_num - 2].opcode == ZEND_FAST_CALL);
518 ZEND_ASSERT(op_array->opcodes[finally_op_num - 2].opcode == ZEND_FAST_CALL);
550 opline->opcode = ZEND_FAST_CALL;
562 opline->opcode = ZEND_FAST_CALL;
581 opline->opcode
793 get_unary_op(int opcode) argument
808 get_binary_op(int opcode) argument
[all...]
H A Dzend_operators.h1008 #define ZEND_TRY_BINARY_OBJECT_OPERATION(opcode) \
1010 if (SUCCESS == Z_OBJ_HANDLER_P(op1, do_operation)(opcode, result, op1, op2 TSRMLS_CC)) { \
1014 if (SUCCESS == Z_OBJ_HANDLER_P(op2, do_operation)(opcode, result, op1, op2 TSRMLS_CC)) { \
1019 #define ZEND_TRY_UNARY_OBJECT_OPERATION(opcode) \
1021 && SUCCESS == Z_OBJ_HANDLER_P(op1, do_operation)(opcode, result, op1, NULL TSRMLS_CC) \
H A Dzend.c465 EG(exception_op)[0].opcode = ZEND_HANDLE_EXCEPTION;
470 EG(exception_op)[1].opcode = ZEND_HANDLE_EXCEPTION;
475 EG(exception_op)[2].opcode = ZEND_HANDLE_EXCEPTION;
1052 if (ex && ex->opline->opcode == ZEND_HANDLE_EXCEPTION &&
1251 EG(current_execute_data)->opline->opcode == ZEND_INCLUDE_OR_EVAL &&
/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);
/PHP_TRUNK/ext/pcre/pcrelib/
H A Dpcre_jit_compile.c290 /* Points to the starting opcode. */
306 /* Points to the starting opcode. */
321 /* Maps private data offset to each opcode. */
488 /* These two locals can be used by the current opcode. */
821 /* Only AUTO_CALLOUT can insert this opcode. We do
6414 pcre_uchar opcode; local
6445 opcode = *cc;
6446 SLJIT_ASSERT(opcode >= OP_ASSERT && opcode <= OP_ASSERTBACK_NOT);
6447 found = (opcode
6932 pcre_uchar opcode; local
7470 pcre_uchar opcode; local
7744 get_iterator_parameters(compiler_common *common, pcre_uchar *cc, pcre_uchar *opcode, pcre_uchar *type, int *max, int *min, pcre_uchar **end) argument
7846 pcre_uchar opcode; local
8155 pcre_uchar opcode = *cc; local
8542 pcre_uchar opcode; local
8803 int opcode, stacksize, alt_count, alt_max; local
9322 pcre_uchar opcode = *current->cc; local
[all...]
/PHP_TRUNK/ext/pcre/pcrelib/sljit/
H A DsljitNativeSPARC_common.c114 #define OPC1(opcode) ((opcode) << 30)
115 #define OPC2(opcode) ((opcode) << 22)
116 #define OPC3(opcode) ((opcode) << 19)
H A DsljitNativeTILEGX_64.c123 const struct tilegx_opcode* opcode; member in struct:jit_instr
387 #define PB3(opcode, dst, srca, srcb) \
388 push_3_buffer(compiler, opcode, dst, srca, srcb, __LINE__)
390 #define PB2(opcode, dst, src) \
391 push_2_buffer(compiler, opcode, dst, src, __LINE__)
517 tilegx_pipeline get_any_valid_pipe(const struct tilegx_opcode* opcode) argument
521 for (pipe = 0; ((opcode->pipes & (1 << pipe)) == 0 && pipe < TILEGX_NUM_PIPELINE_ENCODINGS); pipe++)
528 const struct tilegx_opcode* opcode = NULL; local
532 opcode = &tilegx_opcodes[opc];
533 inst_buf[0].opcode
612 const struct tilegx_opcode* opcode = inst->opcode; local
750 const struct tilegx_opcode* opcode = &tilegx_opcodes[opc]; local
770 const struct tilegx_opcode* opcode = &tilegx_opcodes[opc]; local
830 const struct tilegx_opcode* opcode = &tilegx_opcodes[opc]; local
875 const struct tilegx_opcode* opcode = &tilegx_opcodes[opc]; local
891 const struct tilegx_opcode* opcode = &tilegx_opcodes[opc]; local
[all...]
/PHP_TRUNK/ext/opcache/Optimizer/
H A Doptimize_func_calls.c42 switch (opline->opcode) {
67 if (fcall->opcode == ZEND_INIT_FCALL_BY_NAME) {
68 fcall->opcode = ZEND_INIT_FCALL;
72 } else if (fcall->opcode == ZEND_INIT_NS_FCALL_BY_NAME) {
73 fcall->opcode = ZEND_INIT_FCALL;
83 call_stack[call].opline->opcode == ZEND_INIT_FCALL_BY_NAME &&
88 fcall->opcode = ZEND_INIT_FCALL;
102 opline->opcode -= 9;
105 opline->opcode -= 12;
115 opline->opcode
[all...]
H A Doptimize_temp_vars_5.c62 if (opline->opcode == ZEND_OP_DATA &&
63 (opline-1)->opcode == ZEND_FE_FETCH &&
84 if (opline->opcode == ZEND_OP_DATA &&
85 (opline-1)->opcode == ZEND_FE_FETCH &&
105 if (opline->opcode == ZEND_OP_DATA &&
106 (opline-1)->opcode == ZEND_ASSIGN_DIM) {
121 if (opline->opcode == ZEND_DECLARE_INHERITED_CLASS ||
122 opline->opcode == ZEND_DECLARE_INHERITED_CLASS_DELAYED) {
133 if (opline->opcode == ZEND_ASSIGN_DIM &&
134 (opline + 1)->opcode
[all...]
H A Dpass3.c63 switch (opline->opcode) {
79 while (next_opline < end && next_opline->opcode == ZEND_NOP) {
83 if (next_opline >= end || next_opline->opcode != ZEND_ASSIGN) {
89 (opline->opcode == ZEND_ADD ||
90 opline->opcode == ZEND_MUL ||
91 opline->opcode == ZEND_BW_OR ||
92 opline->opcode == ZEND_BW_AND ||
93 opline->opcode == ZEND_BW_XOR)) {
100 if (opline->opcode != ZEND_ADD || ZEND_OP1_TYPE(opline) == IS_CONST) {
109 switch (opline->opcode) {
[all...]
H A Dzend_optimizer_internal.h35 #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]; }
H A Dblock_pass.c117 switch((unsigned)opline->opcode) {
199 (op_array->opcodes[op_array->brk_cont_array[i].brk].opcode == ZEND_FREE ||
200 op_array->opcodes[op_array->brk_cont_array[i].brk].opcode == ZEND_SWITCH_FREE)) {
205 op_array->opcodes[op_array->brk_cont_array[parent].brk].opcode != ZEND_FREE &&
206 op_array->opcodes[op_array->brk_cont_array[parent].brk].opcode != ZEND_SWITCH_FREE) {
220 (op_array->opcodes[op_array->brk_cont_array[i].brk].opcode == ZEND_FREE ||
221 op_array->opcodes[op_array->brk_cont_array[i].brk].opcode == ZEND_SWITCH_FREE)) {
253 if (opline->opcode == ZEND_OP_DATA) {
256 switch((unsigned)opline->opcode) {
542 while (block->len > 0 && block->start_opline->opcode
[all...]
H A Dnop_removal.c40 if (opline->opcode == ZEND_GOTO &&
48 if (opline->opcode == ZEND_JMP && ZEND_OP1(opline).opline_num > i) {
52 while (target->opcode == ZEND_NOP) {
57 opline->opcode = ZEND_NOP;
62 if (opline->opcode == ZEND_NOP) {
78 switch (opline->opcode) {
H A Dpass1_5.c39 switch (opline->opcode) {
62 int (*binary_op)(zval *result, zval *op1, zval *op2 TSRMLS_DC) = get_binary_op(opline->opcode);
67 if (opline->opcode == ZEND_DIV &&
127 opline->opcode = ZEND_BOOL;
136 unary_op_type unary_op = get_unary_op(opline->opcode);
159 int requires_conversion = (opline->opcode == ZEND_ADD_CHAR? 1 : 0);
170 while (next_op->opcode == ZEND_ADD_STRING || next_op->opcode == ZEND_ADD_CHAR) {
174 if (next_op->opcode == ZEND_ADD_CHAR) {
194 opline->opcode
[all...]
H A Dpass2.c34 switch (opline->opcode) {
109 opline->opcode -= 3;
114 if (opline->opcode == ZEND_JMPZ_EX) {
118 opline->opcode = ZEND_QM_ASSIGN;
129 if (opline->opcode == ZEND_JMPZ) {
135 opline->opcode = ZEND_JMP;
142 if ((opline + 1)->opcode == ZEND_JMP) {
149 if (opline->opcode == ZEND_JMPZ) {
155 opline->opcode = ZEND_JMPZNZ;
171 opline->opcode
[all...]
H A Dzend_optimizer.c94 if (opline->opcode == ZEND_DECLARE_INHERITED_CLASS ||
95 opline->opcode == ZEND_DECLARE_INHERITED_CLASS_DELAYED) {
144 if (opline->opcode == ZEND_FREE) {
150 switch (opline->opcode) {
178 if (opline->opcode == ZEND_INIT_FCALL) {
188 switch (opline->opcode) {
247 if ((opline-1)->opcode == ZEND_ASSIGN_DIM ||
249 ((opline-1)->opcode == ZEND_ASSIGN_ADD ||
250 (opline-1)->opcode == ZEND_ASSIGN_SUB ||
251 (opline-1)->opcode
[all...]

Completed in 47 milliseconds

123