Subdirectory "emitter"
commit7c9a7ae4a994502dcbdcd190f93245756a7df918
authorMillie Chen <milliechen@fb.com>
Thu, 23 Dec 2021 18:34:06 +0000 (23 10:34 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 23 Dec 2021 18:35:58 +0000 (23 10:35 -0800)
treed1d3d917aebcc3e89600d93c1be2383af1dfc092
parent455ada1b525ba36c01731988c67a5f23093e81c0
Subdirectory "emitter"

Summary:
Move `emit_*.rs` along with a number of relevant files out of `hphp/hack/src/hhbc/hhbc_by_ref` into `hphp/hack/src/hhbc/emitter` and update dependencies
```
$ ls ~/fbsource/fbcode/hphp/hack/src/hhbc/emitter
cargo              emit_expression.rs        emit_memoize_method.rs  emit_property.rs       emit_typedef.rs    instruction_sequence.rs  reified_generics_helpers.rs
emit_adata.rs      emit_fatal.rs             emit_method.rs          emit_record_def.rs     emit_type_hint.rs  iterator.rs              statement_state.rs
emit_attribute.rs  emit_file_attributes.rs   emit_native_opcode.rs   emit_statement.rs      emit_xhp.rs        jump_targets.rs          symbol_refs_state.rs
emit_body.rs       emit_function.rs          emit_param.rs           emit_symbol_refs.rs    env.rs             label_rewriter.rs        TARGETS
emit_class.rs      emit_memoize_function.rs  emit_pos.rs             emitter.rs             generator.rs       label.rs                 try_finally_rewriter.rs
emit_constant.rs   emit_memoize_helpers.rs   emit_program.rs         emit_type_constant.rs  global_state.rs    local.rs                 typed_value.rs
```

Reviewed By: shayne-fletcher

Differential Revision: D33099378

fbshipit-source-id: 5082f2729476eaf6bdc49a58e8d7908f9f3d6140
156 files changed:
hphp/hack/.cargo/Cargo.toml.ocaml_build
hphp/hack/CMakeLists.txt
hphp/hack/Cargo.lock
hphp/hack/src/hhbc/bytecode_printer/Cargo.toml
hphp/hack/src/hhbc/bytecode_printer/context.rs
hphp/hack/src/hhbc/bytecode_printer/print.rs
hphp/hack/src/hhbc/bytecode_printer/special_class_resolver.rs
hphp/hack/src/hhbc/emitter/cargo/emit_adata/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/emit_attribute/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/emit_body/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/emit_class/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/emit_constant/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/emit_expression/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/emit_fatal/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/emit_file_attributes/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/emit_function/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/emit_memoize_helpers/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/emit_memoize_method/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/emit_method/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/emit_native_opcode/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/emit_param/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/emit_pos/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/emit_program/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/emit_property/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/emit_record_def/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/emit_symbol_refs/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/emit_type_constant/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/emit_type_hint/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/emit_typedef/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/emit_xhp/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/env/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/generator/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/global_state/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/instruction_sequence/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/iterator/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/label/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/label_rewriter/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/local/Cargo.toml [moved from hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_local/Cargo.toml with 70% similarity]
hphp/hack/src/hhbc/emitter/cargo/runtime/Cargo.toml [moved from hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_runtime/Cargo.toml with 63% similarity]
hphp/hack/src/hhbc/emitter/cargo/statement_state/Cargo.toml [new file with mode: 0644]
hphp/hack/src/hhbc/emitter/cargo/symbol_refs_state/Cargo.toml [moved from hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_symbol_refs_state/Cargo.toml with 60% similarity]
hphp/hack/src/hhbc/emitter/emit_adata.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/emit_adata.rs with 94% similarity]
hphp/hack/src/hhbc/emitter/emit_attribute.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/emit_attribute.rs with 94% similarity]
hphp/hack/src/hhbc/emitter/emit_body.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/emit_body.rs with 98% similarity]
hphp/hack/src/hhbc/emitter/emit_class.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/emit_class.rs with 97% similarity]
hphp/hack/src/hhbc/emitter/emit_constant.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/emit_constant.rs with 94% similarity]
hphp/hack/src/hhbc/emitter/emit_expression.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/emit_expression.rs with 99% similarity]
hphp/hack/src/hhbc/emitter/emit_fatal.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/emit_fatal.rs with 94% similarity]
hphp/hack/src/hhbc/emitter/emit_file_attributes.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/emit_file_attributes.rs with 88% similarity]
hphp/hack/src/hhbc/emitter/emit_function.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/emit_function.rs with 96% similarity]
hphp/hack/src/hhbc/emitter/emit_memoize_function.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/emit_memoize_function.rs with 96% similarity]
hphp/hack/src/hhbc/emitter/emit_memoize_helpers.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/emit_memoize_helpers.rs with 91% similarity]
hphp/hack/src/hhbc/emitter/emit_memoize_method.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/emit_memoize_method.rs with 97% similarity]
hphp/hack/src/hhbc/emitter/emit_method.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/emit_method.rs with 96% similarity]
hphp/hack/src/hhbc/emitter/emit_native_opcode.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/emit_native_opcode.rs with 92% similarity]
hphp/hack/src/hhbc/emitter/emit_param.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/emit_param.rs with 96% similarity]
hphp/hack/src/hhbc/emitter/emit_pos.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/emit_pos.rs with 93% similarity]
hphp/hack/src/hhbc/emitter/emit_program.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/emit_program.rs with 84% similarity]
hphp/hack/src/hhbc/emitter/emit_property.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/emit_property.rs with 96% similarity]
hphp/hack/src/hhbc/emitter/emit_record_def.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/emit_record_def.rs with 94% similarity]
hphp/hack/src/hhbc/emitter/emit_statement.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/emit_statement.rs with 98% similarity]
hphp/hack/src/hhbc/emitter/emit_symbol_refs.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/emit_symbol_refs.rs with 93% similarity]
hphp/hack/src/hhbc/emitter/emit_type_constant.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/emit_type_constant.rs with 95% similarity]
hphp/hack/src/hhbc/emitter/emit_type_hint.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/emit_type_hint.rs with 95% similarity]
hphp/hack/src/hhbc/emitter/emit_typedef.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/emit_typedef.rs with 89% similarity]
hphp/hack/src/hhbc/emitter/emit_xhp.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/emit_xhp.rs with 98% similarity]
hphp/hack/src/hhbc/emitter/emitter.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/emitter.rs with 90% similarity]
hphp/hack/src/hhbc/emitter/env.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/env.rs with 98% similarity]
hphp/hack/src/hhbc/emitter/generator.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/generator.rs with 100% similarity]
hphp/hack/src/hhbc/emitter/global_state.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/global_state.rs with 100% similarity]
hphp/hack/src/hhbc/emitter/instruction_sequence.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/instruction_sequence.rs with 99% similarity]
hphp/hack/src/hhbc/emitter/iterator.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/iterator.rs with 100% similarity]
hphp/hack/src/hhbc/emitter/jump_targets.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/jump_targets.rs with 93% similarity]
hphp/hack/src/hhbc/emitter/label.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/label.rs with 100% similarity]
hphp/hack/src/hhbc/emitter/label_rewriter.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/label_rewriter.rs with 98% similarity]
hphp/hack/src/hhbc/emitter/local.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/local.rs with 100% similarity]
hphp/hack/src/hhbc/emitter/reified_generics_helpers.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/reified_generics_helpers.rs with 98% similarity]
hphp/hack/src/hhbc/emitter/statement_state.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/statement_state.rs with 93% similarity]
hphp/hack/src/hhbc/emitter/symbol_refs_state.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/symbol_refs_state.rs with 100% similarity]
hphp/hack/src/hhbc/emitter/try_finally_rewriter.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/try_finally_rewriter.rs with 97% similarity]
hphp/hack/src/hhbc/emitter/typed_value.rs [moved from hphp/hack/src/hhbc/hhbc_by_ref/typed_value.rs with 100% similarity]
hphp/hack/src/hhbc/hhbc_by_ref/adata_state.rs
hphp/hack/src/hhbc/hhbc_by_ref/assertion_utils.rs
hphp/hack/src/hhbc/hhbc_by_ref/ast_class_expr.rs
hphp/hack/src/hhbc/hhbc_by_ref/ast_constant_folder.rs
hphp/hack/src/hhbc/hhbc_by_ref/cargo/decl_vars/Cargo.toml
hphp/hack/src/hhbc/hhbc_by_ref/cargo/emit_param/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/cargo/generator/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_adata_state/Cargo.toml
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_ast_class_expr/Cargo.toml
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_ast_constant_folder/Cargo.toml
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_closure_convert/Cargo.toml
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_compile/Cargo.toml
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_emit_adata/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_emit_attribute/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_emit_body/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_emit_class/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_emit_constant/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_emit_expression/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_emit_fatal/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_emit_file_attributes/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_emit_function/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_emit_memoize_helpers/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_emit_memoize_method/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_emit_method/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_emit_native_opcode/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_emit_pos/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_emit_program/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_emit_property/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_emit_record_def/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_emit_symbol_refs/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_emit_type_constant/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_emit_type_hint/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_emit_typedef/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_emit_xhp/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_env/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_global_state/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_hhas_adata/Cargo.toml
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_hhas_attribute/Cargo.toml
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_hhas_body/Cargo.toml
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_hhas_constant/Cargo.toml
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_hhas_param/Cargo.toml
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_hhas_property/Cargo.toml
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_hhas_record_def/Cargo.toml
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_hhas_symbol_refs/Cargo.toml
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_hhas_type_const/Cargo.toml
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_hhas_typedef/Cargo.toml
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_hhbc_assertion_utils/Cargo.toml
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_hhbc_ast/Cargo.toml
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_instruction_sequence/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_iterator/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_label/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_rewrite_program/Cargo.toml
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_rewrite_xml/Cargo.toml
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_scope/Cargo.toml
hphp/hack/src/hhbc/hhbc_by_ref/cargo/hhbc_by_ref_statement_state/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/cargo/label_rewriter/Cargo.toml [deleted file]
hphp/hack/src/hhbc/hhbc_by_ref/closure_convert.rs
hphp/hack/src/hhbc/hhbc_by_ref/compile.rs
hphp/hack/src/hhbc/hhbc_by_ref/decl_vars.rs
hphp/hack/src/hhbc/hhbc_by_ref/hhas_adata.rs
hphp/hack/src/hhbc/hhbc_by_ref/hhas_attribute.rs
hphp/hack/src/hhbc/hhbc_by_ref/hhas_body.rs
hphp/hack/src/hhbc/hhbc_by_ref/hhas_constant.rs
hphp/hack/src/hhbc/hhbc_by_ref/hhas_param.rs
hphp/hack/src/hhbc/hhbc_by_ref/hhas_property.rs
hphp/hack/src/hhbc/hhbc_by_ref/hhas_record_def.rs
hphp/hack/src/hhbc/hhbc_by_ref/hhas_symbol_refs.rs
hphp/hack/src/hhbc/hhbc_by_ref/hhas_type_const.rs
hphp/hack/src/hhbc/hhbc_by_ref/hhas_typedef.rs
hphp/hack/src/hhbc/hhbc_by_ref/hhbc_ast.rs
hphp/hack/src/hhbc/hhbc_by_ref/rewrite_program.rs
hphp/hack/src/hhbc/hhbc_by_ref/rewrite_xml.rs
hphp/hack/src/hhbc/hhbc_by_ref/scope.rs
hphp/runtime/vm/hhas-parser.h
hphp/runtime/vm/unit-parser.cpp