Improve idiom for getting the return address of a call{}
commit26b3f66983f1ba44b72a04655d421f014bce4405
authorMax Wang <mwang@fb.com>
Sat, 5 Mar 2016 16:29:32 +0000 (5 08:29 -0800)
committerHhvm Bot <hhvm-bot-bot@fb.com>
Mon, 7 Mar 2016 18:36:16 +0000 (7 10:36 -0800)
tree359c9fb68bd6416dba34e9237cb6891202987f10
parent13d7bd56749f7a56b34e3b7603336961629845b8
Improve idiom for getting the return address of a call{}

Summary:We sometimes need to track the return address of a call during codegen.
A number of such mechanisms already exists---e.g., for Fixups and catch
trace mappings.

We need another one for unique stubs, which just need to save the return
address without carrying any other metadata.

While we're there, document CGMeta.

Reviewed By: markw65

Differential Revision: D3011364

fb-gh-sync-id: f664f192dd8895ecbf494f15cabd6f265d644bc7
shipit-source-id: f664f192dd8895ecbf494f15cabd6f265d644bc7
hphp/runtime/vm/jit/cg-meta.cpp
hphp/runtime/vm/jit/cg-meta.h
hphp/runtime/vm/jit/relocation-x64.cpp
hphp/runtime/vm/jit/unique-stubs-x64.cpp
hphp/runtime/vm/jit/vasm-instr.h
hphp/runtime/vm/jit/vasm-x64.cpp