Add num_inputs() and variant_name() to Instruct.
commit58366b41ec418ed768cbf522c4d98c7914ab1745
authorAaron Orenstein <aorenste@fb.com>
Tue, 3 May 2022 14:09:43 +0000 (3 07:09 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 3 May 2022 14:09:43 +0000 (3 07:09 -0700)
tree698c1328277a2ba14d6cdd6d87d1c1cf76c25647
parent33f83437485b7df5d99debf0535d9965fd101d70
Add num_inputs() and variant_name() to Instruct.

Summary:
A later diff needs to be able to ask Instruct for its name and for the number of
inputs it needs off the stack.  Those are well known and can be generated by the
emit_opcodes macro.

Reviewed By: shayne-fletcher

Differential Revision: D35944666

fbshipit-source-id: cbe2bdf9be1a9635641c84ff8821c40c38b9af3b
hphp/hack/src/hackc/hhbc/emit_opcodes.rs
hphp/hack/src/hackc/hhbc/hhbc_ast.rs
hphp/hack/src/hackc/hhbc/opcodes.rs