Speculation successes are counted in the code block entry code, which is skipped in the case of function code.
Created attachment 108621 [details] the patch
Comment on attachment 108621 [details] the patch r=me
Landed in r95933.