Stop emitting pseudomains for fatal units in HackC
commit1505934dea2779410b0b997b0e4b571c7668c3fa
authorOguz Ulgen <oulgen@fb.com>
Thu, 9 Jul 2020 17:29:32 +0000 (9 10:29 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 9 Jul 2020 17:31:54 +0000 (9 10:31 -0700)
tree1dd14f57e314e53f7db61ea1c4192661c92bc880
parent1bc690f5cef65e19674ae4535ff4adc0a4768383
Stop emitting pseudomains for fatal units in HackC

Summary:
This diff turns the parse/runtime fatal pseudomains in hackc into an hhas directive.

Currently, in the assembler, we turn it back into a pseudomain. On the next diff, I'll modify the unit emitter to emit `FatalUnit*` which will be more compact than a `Unit*` and then during unit loading will emit fatal without running any code.

Reviewed By: paulbiss

Differential Revision: D22443764

fbshipit-source-id: a3d9557e8db91e1d899bb2d452139d0a976e1b17
hphp/hack/Cargo.lock
hphp/hack/src/hhbc/cargo/emit_program/Cargo.toml
hphp/hack/src/hhbc/cargo/hhas_program/Cargo.toml
hphp/hack/src/hhbc/emit_program.rs
hphp/hack/src/hhbc/hhas_program.rs
hphp/hack/src/hhbc/print.rs
hphp/runtime/vm/as.cpp
hphp/runtime/vm/unit-emitter.cpp
hphp/runtime/vm/unit-emitter.h