On Mon, May 11, 2009 at 7:47 PM, Guilherme Blanco <guilhermebla...@gmail.com> wrote: > What's the status on this one?!
I think it died from neglect. But it was a really good idea. One question that was raised was: > On Thu, Jan 22, 2009 at 10:20 AM, Dmitry Stogov <dmi...@zend.com> wrote: >> However we can introduce some indirect table associated with op_array, which >> can be used to implement inline caches without direct opcode modification >> (in the same way as IS_CV variables work). There are a lot of papers about >> polymorphic inline caches (e.g. >> http://research.sun.com/self/papers/pics.html) which we probably should use >> to not to invite bicycle. You can't actually use PICs or even ICs with the Zend engine, because you can't insert code into the callee method's header (you would need a JIT). You also wouldn't want to, since PHP can't use the recompilation techniques that Self had. You can use lookup caches, which is exactly what the original patch was. FWIW, since PHP has a static inheritence chain, the best approach seems to be to build a virtual dispatch table, instead of a hashtable for functions. However, there might be some esoteric extensions which make this difficult. Paul -- Paul Biggar paul.big...@gmail.com -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php