Re: [ZEND-ENGINE-CVS] Zend Opcode

From: Date: Thu, 29 May 2008 17:20:23 +0000
Subject: Re: [ZEND-ENGINE-CVS] Zend Opcode
References: 1 2 3  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-6757@lists.php.net to get a copy of this message
Thanks.. but now.. i read the zend_vm_def.h ... ZEND_VM_HANDLER(1, ZEND_ADD, CONST|TMP|VAR|CV, CONST|TMP|VAR|CV) {
       zend_op *opline = EX(opline);
       zend_free_op free_op1, free_op2;
       add_function(&EX_T(opline->result.u.var).tmp_var,
               GET_OP1_ZVAL_PTR(BP_VAR_R),
               GET_OP2_ZVAL_PTR(BP_VAR_R) TSRMLS_CC);
       FREE_OP1();
       FREE_OP2();
       ZEND_VM_NEXT_OPCODE();
where the add_function is defined? i want to create an intermediate form for all operation (function) in order to obtain a "readable" control flow graph..
Take a look at http://lxr.php.net/ident?i=add_function Also, you may want to wait or even contribute for a project we are starting to convert PHP bytecode to LLVM assembly. Then you could extract a control flow graph with LLVM libraries. Nuno

« previous php.zend-engine.cvs (#6757) next »