Codegen for try-finally with continue and break, part seven
commit45c531f5019155e4599ab9a0b2b2aaddbb69c9c4
authorEric Lippert <ericlippert@fb.com>
Tue, 28 Feb 2017 01:41:08 +0000 (27 17:41 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Tue, 28 Feb 2017 01:45:49 +0000 (27 17:45 -0800)
tree66e4b21f4d56dfb6bffedd5012bcd2492339943c
parent3c5f2661489974414bbbd5808d67a82a61cbb9cb
Codegen for try-finally with continue and break, part seven

Summary:
The plumbed-through continue-and-break-label state is now removed. Continue and break are realized as dummy instructions, which are then immediately rewritten by a transformation pass.

Gear is in place for handling multi-level break and continue, which PHP supports but Hack does not.

I am now in a position where I can begin to refactor try-catch-finally to support codegen for finally-blocked continue and break.

Reviewed By: oulgen

Differential Revision: D4623920

fbshipit-source-id: b9901ef958efa8e0d17422c0169dd0bd9f889cd2
hphp/hack/src/hhbc/hhbc_ast.ml
hphp/hack/src/hhbc/hhbc_from_nast.ml