Move alloc_decl_defs to the decl_defs module; make entrypoint a From impl
Summary:
Move alloc_decl_defs from lib/alloc to lib/decl_defs. Instead of expressing it as methods on the Allocator type, express it as free functions. Make the entrypoint an impl of From<obr::ShallowClass> for ShallowClass rather than a method on Allocator.
In future: make all these free functions impls of From for the respective oxidized_by_ref type.
Reviewed By: shayne-fletcher
Differential Revision:
D34595926
fbshipit-source-id:
1db9b130553b7f9e24e32e2ec05c4f101a73ff23