Fix some bugs when we fail to get a translation
commitb9e7308acb3b05add6889d203eb76715c28b81f7
authormwilliams <mwilliams@fb.com>
Thu, 4 Apr 2013 23:10:12 +0000 (4 16:10 -0700)
committerSara Golemon <sgolemon@fb.com>
Tue, 9 Apr 2013 04:17:46 +0000 (8 21:17 -0700)
treebd1bba082778f128b13198d79a1bd22c000819c6
parent9c453b1ad02aba0f7338cbb8a5b08d0bd32c2f86
Fix some bugs when we fail to get a translation

If we failed to get the translation for a cloned closure, we didnt
clean the registers.

VMRegAnchor::VMRegAncor(ActRec*,bool) didnt know how to set things
up for continuations, and had an unused bool parameter.

RetFromInterpretedFrame isnt suitable for returning from a
generator - so just preserve m_savedRip across the doFCall.
hphp/runtime/vm/bytecode.cpp
hphp/runtime/vm/translator/translator-inline.h
hphp/runtime/vm/translator/translator-x64-helpers.cpp