Fix reporting of func body dispatch sizes in retranslate-all mode
commit77bffeb797e5222da87c83edd0c9d4be2356ff42
authorGuilherme Ottoni <ottoni@fb.com>
Tue, 26 Jun 2018 18:40:44 +0000 (26 11:40 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Tue, 26 Jun 2018 18:43:28 +0000 (26 11:43 -0700)
tree7352f54fdaf973a44b39b101f0fe6121e9760745
parent26a26fdabb2368f57538418a1def78adb361de8c
Fix reporting of func body dispatch sizes in retranslate-all mode

Summary:
We were reading the code frontier at the time the func body dispatch was
published to determine its end, effectively making all such translations look
like they ended at the final frontier of code.hot after all optimized
translations were emitted.  The fix here is to save the end address for func
body dispatches in BodyDispatchMetaInfo after they're emitted, and then grab the
value from there when publishing the code.

Reviewed By: jano

Differential Revision: D8630831

fbshipit-source-id: 09ae37f79021288bdbcd93dbf486771c821814ef
hphp/runtime/vm/jit/tc-prologue.cpp
hphp/runtime/vm/jit/tc-prologue.h
hphp/runtime/vm/jit/tc-region.cpp
hphp/runtime/vm/jit/tc.h