Free Func bytecode at emit time again
commit3013e3024919be6adeeed277a323379ced57b8e6
authorShaunak Kishore <kshaunak@fb.com>
Thu, 13 Aug 2020 15:44:21 +0000 (13 08:44 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 13 Aug 2020 15:47:06 +0000 (13 08:47 -0700)
tree131c3befb58c544933016b740cd1e48dbdde8d33
parentcde492ca84fb6a47bd1a0964e87d5ece9e66e4ad
Free Func bytecode at emit time again

Summary: While it's nice to have emit be a const operation on a Unit, it's also nice to avoid doing two passes over functions, to remap locals in place, and to reclaim memory as early as possible. On balance, I think this approach was better.

Reviewed By: ricklavoie

Differential Revision: D23096744

fbshipit-source-id: 5f0c21dc669667e82d741081346f011782426454
hphp/hhbbc/emit.cpp
hphp/hhbbc/emit.h
hphp/hhbbc/whole-program.cpp