Generally your patch is a good piece of code and I think we'll easily get
through all minor problems with code style, tabs etc. Now let's try to get it working with the EM and JIT.
I am working on it :)
I beleive this problem is easy to fix. the further step would be to make this profile available for the JIT. We need to implement the instrumenting pass in the JIT which would insert code updating profile at the call sites for virtual calls. Would you like to implement this pass?
Yeah, I have done it alredy. Soon I'll put the new patch (just need some hours to test for another bugs :) ).