Avoid some work in shouldTranslate() once the TC fills up
commit3d125523e2baae2184af32846f0b14830c989103
authorGuilherme Ottoni <ottoni@fb.com>
Wed, 1 Nov 2017 05:02:29 +0000 (31 22:02 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Wed, 1 Nov 2017 05:07:35 +0000 (31 22:07 -0700)
treed048f026cd8da1cae457520e3c0377f2b6d0b7d6
parentc94eb13f037a5d0e81228d3396489ea88fcc88ec
Avoid some work in shouldTranslate() once the TC fills up

Summary:
Once the TC is full, set a flag so that next time we can quickly return from
shouldTranslate().  This avoids a bit of work, including some calling
shouldTranslateNoSizeLimit(), which does some FixedStringMap lookups.

Reviewed By: swtaarrs

Differential Revision: D6200348

fbshipit-source-id: b6f122c4e78a4b7018a65654af1d83c2126107cf
hphp/runtime/vm/jit/tc-internal.cpp