interpreter: Factor out immediate decoding, part 8
commit63667e9e5a1a6f798ffdbe16fe2b244737474d74
authorEdwin Smith <smith@fb.com>
Fri, 13 May 2016 15:06:50 +0000 (13 08:06 -0700)
committerHhvm Bot <hhvm-bot-bot@fb.com>
Fri, 13 May 2016 15:20:57 +0000 (13 08:20 -0700)
tree00e3de26abd77eb2a539cf691e2254ee4e07430b
parente1f7c8b94e280c897129fb94d3b98671056823e8
interpreter: Factor out immediate decoding, part 8

Summary:
Refactor instructions that take a variadic number of
immediate arguments: NewStructArray, IterBreak, Switch,
and SSwitch. Each of these takes the non-variadic immediates
as normal parameters, including the count of variadic elements,
then finally a pointer to the first variadic immediate in
the bytecode steam.

Remove the IOP_ARGS macro now that it's dead.

Reviewed By: swtaarrs

Differential Revision: D3140934

fbshipit-source-id: 4cf73a7b631a859d6c292b066f068977ae308fa4
hphp/runtime/vm/bytecode.cpp