Displaying 1 result from an estimated 1 matches for "zend_op".
2008 Jun 19
1
[LLVMdev] Constant function pointers and inlining
...M code that calls the PHP
opcode handlers that I've pre-compiled to LLVM IR in the correct
order. However, the PHP API is designed so that the handlers are not
globally accessible (qualified by "static" in the C source). Instead
they're supposed to be accessed like this (in C):
zend_op op;
op.opcode = ... // set the opcode number etc.
...
zend_vm_set_opcode_handler(&op); // let the engine figure out which
handler should be used
op->handler(...); // execute it
Now, the compiler can't know that zend_vm_set_opcode_handler() always
sets the handler to be the same...