Searched refs:opcode (Results 1 - 25 of 54) 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_ast.h256 static zend_always_inline zend_ast *zend_ast_create_binary_op(uint32_t opcode, zend_ast *op0, zend_ast *op1) { argument
257 return zend_ast_create_ex(ZEND_AST_BINARY_OP, opcode, op0, op1);
259 static zend_always_inline zend_ast *zend_ast_create_assign_op(uint32_t opcode, zend_ast *op0, zend_ast *op1) { argument
260 return zend_ast_create_ex(ZEND_AST_ASSIGN_OP, opcode, op0, op1);
H A Dzend_opcode.c423 if (opline->opcode == ZEND_EXT_STMT) {
425 if ((opline+1)->opcode == ZEND_EXT_STMT) {
426 opline->opcode = ZEND_NOP;
434 opline->opcode = ZEND_NOP;
488 ZEND_ASSERT(op_array->opcodes[op_num - 2].opcode == ZEND_FAST_CALL);
508 ZEND_ASSERT(op_array->opcodes[finally_op_num - 2].opcode == ZEND_FAST_CALL);
540 opline->opcode = ZEND_FAST_CALL;
552 opline->opcode = ZEND_FAST_CALL;
571 opline->opcode = ZEND_FAST_CALL;
578 /* Finish the sequence with original opcode */
783 get_unary_op(int opcode) argument
795 get_binary_op(int opcode) argument
[all...]
H A Dzend_vm_opcodes.c197 ZEND_API const char* zend_get_opcode_name(zend_uchar opcode) { argument
198 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_object_handlers.h90 /* 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.
120 typedef int (*zend_object_do_operation_t)(zend_uchar opcode, zval *result, zval *op1, zval *op2 TSRMLS_DC);
H A Dzend_operators.h890 #define ZEND_TRY_BINARY_OP1_OBJECT_OPERATION(opcode, binary_op) \
905 if (EXPECTED(SUCCESS == Z_OBJ_HANDLER_P(op1, do_operation)(opcode, result, op1, op2 TSRMLS_CC))) { \
910 #define ZEND_TRY_BINARY_OP2_OBJECT_OPERATION(opcode) \
913 && EXPECTED(SUCCESS == Z_OBJ_HANDLER_P(op2, do_operation)(opcode, result, op1, op2 TSRMLS_CC))) { \
917 #define ZEND_TRY_BINARY_OBJECT_OPERATION(opcode, binary_op) \
918 ZEND_TRY_BINARY_OP1_OBJECT_OPERATION(opcode, binary_op) \
920 ZEND_TRY_BINARY_OP2_OBJECT_OPERATION(opcode)
922 #define ZEND_TRY_UNARY_OBJECT_OPERATION(opcode) \
925 && EXPECTED(SUCCESS == Z_OBJ_HANDLER_P(op1, do_operation)(opcode, result, op1, NULL TSRMLS_CC))) { \
H A Dzend.c376 EG(exception_op)[0].opcode = ZEND_HANDLE_EXCEPTION;
381 EG(exception_op)[1].opcode = ZEND_HANDLE_EXCEPTION;
386 EG(exception_op)[2].opcode = ZEND_HANDLE_EXCEPTION;
996 if (ex && ex->opline->opcode == ZEND_HANDLE_EXCEPTION &&
1189 EG(current_execute_data)->opline->opcode == ZEND_INCLUDE_OR_EVAL &&
H A Dzend_execute.h252 #define ZEND_USER_OPCODE_CONTINUE 0 /* execute next opcode */
254 #define ZEND_USER_OPCODE_DISPATCH 2 /* call original opcode handler */
258 #define ZEND_USER_OPCODE_DISPATCH_TO 0x100 /* call original handler of returned opcode */
260 ZEND_API int zend_set_user_opcode_handler(zend_uchar opcode, user_opcode_handler_t handler);
261 ZEND_API user_opcode_handler_t zend_get_user_opcode_handler(zend_uchar opcode);
H A Dzend_compile.h116 zend_uchar opcode; member in struct:_zend_op
441 ZEND_API unary_op_type get_unary_op(int opcode);
442 ZEND_API binary_op_type get_binary_op(int opcode);
720 /* generate ZEND_DECLARE_INHERITED_CLASS_DELAYED opcode to delay early binding */
H A Dzend_execute.c704 static zend_always_inline void zend_assign_to_object(zval *retval, zval *object, uint32_t object_op_type, zval *property_name, int value_type, const znode_op *value_op, const zend_execute_data *execute_data, int opcode, void **cache_slot TSRMLS_DC) argument
765 if (opcode == ZEND_ASSIGN_OBJ) {
1357 if (brk_opline->opcode == ZEND_FREE) {
1776 ZEND_API int zend_set_user_opcode_handler(zend_uchar opcode, user_opcode_handler_t handler) argument
1778 if (opcode != ZEND_USER_OPCODE) {
1781 zend_user_opcodes[opcode] = opcode;
1783 zend_user_opcodes[opcode] = ZEND_USER_OPCODE;
1785 zend_user_opcode_handlers[opcode] = handler;
1791 ZEND_API user_opcode_handler_t zend_get_user_opcode_handler(zend_uchar opcode) argument
[all...]
H A Dzend_compile.c449 opline->opcode = ZEND_NOP; \
492 opline->opcode = ZEND_FREE;
498 while (opline->opcode == ZEND_END_SILENCE || opline->opcode == ZEND_EXT_FCALL_END || opline->opcode == ZEND_OP_DATA) {
503 if (opline->opcode == ZEND_FETCH_R ||
504 opline->opcode == ZEND_FETCH_DIM_R ||
505 opline->opcode == ZEND_FETCH_OBJ_R) {
507 additional FREE opcode and simplify the FETCH handlers
510 opline->opcode
1681 zend_emit_op(znode *result, zend_uchar opcode, znode *op1, znode *op2 TSRMLS_DC) argument
1705 zend_emit_op_tmp(znode *result, zend_uchar opcode, znode *op1, znode *op2 TSRMLS_DC) argument
1756 zend_emit_cond_jump(zend_uchar opcode, znode *cond, uint32_t opnum_target TSRMLS_DC) argument
1789 zend_delayed_emit_op(znode *result, zend_uchar opcode, znode *op1, znode *op2 TSRMLS_DC) argument
2347 uint32_t opcode = ast->attr; local
2403 zend_uchar opcode; local
3770 zend_uchar opcode; local
5001 zend_ct_eval_binary_op(zval *result, uint32_t opcode, zval *op1, zval *op2 TSRMLS_DC) argument
5094 uint32_t opcode = ast->attr; local
5144 uint32_t opcode = ast->attr; local
[all...]
/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 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.c56 switch (opline->opcode) {
81 if (fcall->opcode == ZEND_INIT_FCALL_BY_NAME) {
82 fcall->opcode = ZEND_INIT_FCALL;
86 } else if (fcall->opcode == ZEND_INIT_NS_FCALL_BY_NAME) {
87 fcall->opcode = ZEND_INIT_FCALL;
96 call_stack[call].opline->opcode == ZEND_INIT_FCALL_BY_NAME &&
102 fcall->opcode = ZEND_INIT_FCALL;
116 opline->opcode -= 9;
119 opline->opcode -= 12;
129 opline->opcode
[all...]
H A Doptimize_temp_vars_5.c70 if (opline->opcode == ZEND_OP_DATA &&
71 (opline-1)->opcode == ZEND_FE_FETCH &&
92 if (opline->opcode == ZEND_OP_DATA &&
93 (opline-1)->opcode == ZEND_FE_FETCH &&
113 if (opline->opcode == ZEND_OP_DATA &&
114 (opline-1)->opcode == ZEND_ASSIGN_DIM) {
129 if (opline->opcode == ZEND_DECLARE_INHERITED_CLASS ||
130 opline->opcode == ZEND_DECLARE_INHERITED_CLASS_DELAYED) {
141 if (opline->opcode == ZEND_ASSIGN_DIM &&
142 (opline + 1)->opcode
[all...]
H A Dpass2.c43 switch (opline->opcode) {
118 opline->opcode -= 3;
123 if (opline->opcode == ZEND_JMPZ_EX) {
127 opline->opcode = ZEND_QM_ASSIGN;
138 if (opline->opcode == ZEND_JMPZ) {
144 opline->opcode = ZEND_JMP;
151 if ((opline + 1)->opcode == ZEND_JMP) {
158 if (opline->opcode == ZEND_JMPZ) {
164 opline->opcode = ZEND_JMPZNZ;
180 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 Dnop_removal.c48 if (opline->opcode == ZEND_GOTO &&
56 if (opline->opcode == ZEND_JMP && ZEND_OP1(opline).opline_num > i) {
60 while (target->opcode == ZEND_NOP) {
65 opline->opcode = ZEND_NOP;
70 if (opline->opcode == ZEND_NOP) {
86 switch (opline->opcode) {
H A Dpass3.c72 switch (opline->opcode) {
88 while (next_opline < end && next_opline->opcode == ZEND_NOP) {
92 if (next_opline >= end || next_opline->opcode != ZEND_ASSIGN) {
98 (opline->opcode == ZEND_ADD ||
99 opline->opcode == ZEND_MUL ||
100 opline->opcode == ZEND_BW_OR ||
101 opline->opcode == ZEND_BW_AND ||
102 opline->opcode == ZEND_BW_XOR)) {
109 if (opline->opcode != ZEND_ADD || ZEND_OP1_TYPE(opline) == IS_CONST) {
118 switch (opline->opcode) {
[all...]
H A Dblock_pass.c125 switch((unsigned)opline->opcode) {
207 op_array->opcodes[op_array->brk_cont_array[i].brk].opcode == ZEND_FREE) {
212 op_array->opcodes[op_array->brk_cont_array[parent].brk].opcode != ZEND_FREE) {
226 op_array->opcodes[op_array->brk_cont_array[i].brk].opcode == ZEND_FREE) {
258 if (opline->opcode == ZEND_OP_DATA) {
261 switch((unsigned)opline->opcode) {
547 while (block->len > 0 && block->start_opline->opcode == ZEND_NOP) {
568 while (opline < end && opline->opcode == ZEND_NOP) {
573 while (opline < end && opline->opcode != ZEND_NOP) {
595 while (block->len > 0 && block->start_opline->opcode
[all...]
H A Dzend_optimizer.c91 if (opline->opcode == ZEND_DECLARE_INHERITED_CLASS ||
92 opline->opcode == ZEND_DECLARE_INHERITED_CLASS_DELAYED) {
118 if (opline->opcode == ZEND_FREE) {
124 switch (opline->opcode) {
153 if (opline->opcode == ZEND_INIT_FCALL) {
163 switch (opline->opcode) {
223 if ((opline-1)->opcode == ZEND_ASSIGN_DIM ||
225 ((opline-1)->opcode == ZEND_ASSIGN_ADD ||
226 (opline-1)->opcode == ZEND_ASSIGN_SUB ||
227 (opline-1)->opcode
[all...]
H A Dpass1_5.c48 switch (opline->opcode) {
71 int (*binary_op)(zval *result, zval *op1, zval *op2 TSRMLS_DC) = get_binary_op(opline->opcode);
76 if (opline->opcode == ZEND_DIV &&
133 opline->opcode = ZEND_BOOL;
142 unary_op_type unary_op = get_unary_op(opline->opcode);
165 int requires_conversion = (opline->opcode == ZEND_ADD_CHAR? 1 : 0);
176 while (next_op->opcode == ZEND_ADD_STRING || next_op->opcode == ZEND_ADD_CHAR) {
180 if (next_op->opcode == ZEND_ADD_CHAR) {
200 opline->opcode
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_opcode.c81 switch (op->opcode) {
149 phpdbg_notice("opline", "line=\"%u\" opline=\"%p\" opcode=\"%s\" op=\"%s\" file=\"%s\"", "L%-5u %16p %-30s %s %s",
152 phpdbg_decode_opcode(opline->opcode),
161 phpdbg_decode_opcode(opline->opcode),
177 const char *phpdbg_decode_opcode(zend_uchar opcode) /* {{{ */ argument
179 const char *ret = zend_get_opcode_name(opcode);
H A Dphpdbg_print.c62 uint32_t opcode = 0, local
84 phpdbg_writeln("print", "line=\"%u\" opline=\"%p\" opcode=\"%s\" op=\"%s\"", "\t\tL%u\t%p %-30s %s",
87 phpdbg_decode_opcode(opline->opcode),
94 } while (opcode++ < end);

Completed in 54 milliseconds

123