Port hhbc:label_writer in Emitter
commitc97513885441e10657a81c852cb41afba79136bd
authorMillie Chen <milliechen@fb.com>
Thu, 24 Oct 2019 21:59:48 +0000 (24 14:59 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 24 Oct 2019 22:02:12 +0000 (24 15:02 -0700)
tree1e0a01dbeec687300eae4a743c3e09ca7f8e8298
parentf0dfac116a9dc609836a3a725e59a92629e51a17
Port hhbc:label_writer in Emitter

Summary: By the design of hhbc:label, some functions in hhbc:label_rewriter need to take in an emitter to generate new labels. Other than that it's pretty much a 1-to-1 port.

Reviewed By: losvald

Differential Revision: D18095074

fbshipit-source-id: 5523f09105f2cca098bb33c71129b52ce9a39e5c
hphp/hack/src/hhbc/hhas_param.rs
hphp/hack/src/hhbc/instruction_sequence.rs
hphp/hack/src/hhbc/label.rs
hphp/hack/src/hhbc/label_rewriter.rs [new file with mode: 0644]