Tweak HhasMethod C++: Get as close to `repr(C)` as we can
commitf0a98112e346abc8fd6b744ac52ecef2d5f76870
authorShayne Fletcher <shaynefletcher@fb.com>
Tue, 10 Aug 2021 21:34:37 +0000 (10 14:34 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 10 Aug 2021 21:38:35 +0000 (10 14:38 -0700)
tree8d6d3e14d5523fced41b96cf1cab267e55c25205
parent66faa5d69b909a225709a193edd4ae77809ea289
Tweak HhasMethod C++: Get as close to `repr(C)` as we can

Summary: Field `attributes` becomes a `Slice`. `HhasMethodFlags` gets marked `repr(C)`. D30167055 (https://github.com/facebook/hhvm/commit/17de4405d2e096ca150cc04118c65140a880b5ac) landed so we can deal with the `visibility` field. We've then gone as far as we can for now, blocked on the `HhasCoeffects` work.

Reviewed By: paulbiss

Differential Revision: D30225263

fbshipit-source-id: 28b04d650ecaaef00410e774d664fb0630f99e10
hphp/hack/Cargo.lock
hphp/hack/src/hhbc/bytecode_printer/print.rs
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_emit_method/Cargo.toml
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_hhas_method/Cargo.toml
hphp/hack/src/hhbc/hhbc_by_ref/emit_class.rs
hphp/hack/src/hhbc/hhbc_by_ref/emit_memoize_method.rs
hphp/hack/src/hhbc/hhbc_by_ref/emit_method.rs
hphp/hack/src/hhbc/hhbc_by_ref/hhas_method.rs