Skip to content

Commit

Permalink
Rename directory hhbc to hackc
Browse files Browse the repository at this point in the history
Summary:
Rename `hphp/hack/src/hhbc` to `hphp/hack/src/hackc`
```
$ ls hphp/hack/src/hackc
bytecode_printer  compile      compile_ffi.ml  dune     external_decl_provider  ffi_bridge  hhbc_options.ml     options_ffi  unified_decl_provider
cargo             compile_ffi  decl_provider   emitter  facebook                hhbc        hhvm_decl_provider  TARGETS      utils
```

Reviewed By: aorenste

Differential Revision: D33338708

fbshipit-source-id: 1693e55c86331cc61d516988d54fb0f267962ff7
  • Loading branch information
Millie Chen authored and facebook-github-bot committed Dec 30, 2021
1 parent 3ae50f2 commit 43f8698
Show file tree
Hide file tree
Showing 186 changed files with 169 additions and 169 deletions.
150 changes: 75 additions & 75 deletions hphp/hack/.cargo/Cargo.toml.ocaml_build
Original file line number Diff line number Diff line change
Expand Up @@ -40,82 +40,82 @@ members = [
"src/facts/cargo/facts_rust",
"src/facts/cargo/facts_smart_constructors",
"src/facts/cargo/rust_facts_ffi",
"src/hackc/bytecode_printer",
"src/hackc/cargo/compile_ffi",
"src/hackc/cargo/options_ffi",
"src/hackc/compile/cargo/closure_convert",
"src/hackc/compile/cargo/compile",
"src/hackc/compile/cargo/options",
"src/hackc/compile/cargo/options_serde",
"src/hackc/compile/cargo/rewrite_program",
"src/hackc/compile/cargo/rewrite_xml",
"src/hackc/emitter/cargo/emit_adata",
"src/hackc/emitter/cargo/emit_attribute",
"src/hackc/emitter/cargo/emit_body",
"src/hackc/emitter/cargo/emit_class",
"src/hackc/emitter/cargo/emit_constant",
"src/hackc/emitter/cargo/emit_expression",
"src/hackc/emitter/cargo/emit_fatal",
"src/hackc/emitter/cargo/emit_file_attributes",
"src/hackc/emitter/cargo/emit_function",
"src/hackc/emitter/cargo/emit_memoize_helpers",
"src/hackc/emitter/cargo/emit_memoize_method",
"src/hackc/emitter/cargo/emit_method",
"src/hackc/emitter/cargo/emit_native_opcode",
"src/hackc/emitter/cargo/emit_param",
"src/hackc/emitter/cargo/emit_pos",
"src/hackc/emitter/cargo/emit_program",
"src/hackc/emitter/cargo/emit_property",
"src/hackc/emitter/cargo/emit_record_def",
"src/hackc/emitter/cargo/emit_symbol_refs",
"src/hackc/emitter/cargo/emit_type_constant",
"src/hackc/emitter/cargo/emit_typedef",
"src/hackc/emitter/cargo/emit_type_hint",
"src/hackc/emitter/cargo/emit_xhp",
"src/hackc/emitter/cargo/env",
"src/hackc/emitter/cargo/generator",
"src/hackc/emitter/cargo/global_state",
"src/hackc/emitter/cargo/instruction_sequence",
"src/hackc/emitter/cargo/iterator",
"src/hackc/emitter/cargo/label",
"src/hackc/emitter/cargo/label_rewriter",
"src/hackc/emitter/cargo/local",
"src/hackc/emitter/cargo/runtime",
"src/hackc/emitter/cargo/statement_state",
"src/hackc//emitter/cargo/symbol_refs_state",
"src/hackc/ffi_bridge",
"src/hackc/hhbc/cargo/decl_vars",
"src/hackc/hhbc/cargo/hhas_pos",
"src/hackc/hhbc/cargo/adata_state",
"src/hackc/hhbc/cargo/ast_body",
"src/hackc/hhbc/cargo/ast_class_expr",
"src/hackc/hhbc/cargo/ast_constant_folder",
"src/hackc/hhbc/cargo/ast_scope",
"src/hackc/hhbc/cargo/hhas_adata",
"src/hackc/hhbc/cargo/hhas_attribute",
"src/hackc/hhbc/cargo/hhas_body",
"src/hackc/hhbc/cargo/hhas_class",
"src/hackc/hhbc/cargo/hhas_coeffects",
"src/hackc/hhbc/cargo/hhas_constant",
"src/hackc/hhbc/cargo/hhas_function",
"src/hackc/hhbc/cargo/hhas_method",
"src/hackc/hhbc/cargo/hhas_param",
"src/hackc/hhbc/cargo/hhas_program",
"src/hackc/hhbc/cargo/hhas_property",
"src/hackc/hhbc/cargo/hhas_record_def",
"src/hackc/hhbc/cargo/hhas_symbol_refs",
"src/hackc/hhbc/cargo/hhas_type",
"src/hackc/hhbc/cargo/hhas_type_const",
"src/hackc/hhbc/cargo/hhas_typedef",
"src/hackc/hhbc/cargo/hhas_xhp_attribute",
"src/hackc/hhbc/cargo/hhbc_ast",
"src/hackc/hhbc/cargo/hhbc_id",
"src/hackc/hhbc/cargo/scope",
"src/hackc/utils/cargo/hhbc_string_utils",
"src/hackc/utils/cargo/unique_id_builder",
"src/hackc/utils/cargo/unique_list",
"src/hackc/utils/cargo/unique_list_bench",
"src/heap",
"src/hhbc/bytecode_printer",
"src/hhbc/cargo/compile_ffi",
"src/hhbc/cargo/options_ffi",
"src/hhbc/compile/cargo/closure_convert",
"src/hhbc/compile/cargo/compile",
"src/hhbc/compile/cargo/options",
"src/hhbc/compile/cargo/options_serde",
"src/hhbc/compile/cargo/rewrite_program",
"src/hhbc/compile/cargo/rewrite_xml",
"src/hhbc/emitter/cargo/emit_adata",
"src/hhbc/emitter/cargo/emit_attribute",
"src/hhbc/emitter/cargo/emit_body",
"src/hhbc/emitter/cargo/emit_class",
"src/hhbc/emitter/cargo/emit_constant",
"src/hhbc/emitter/cargo/emit_expression",
"src/hhbc/emitter/cargo/emit_fatal",
"src/hhbc/emitter/cargo/emit_file_attributes",
"src/hhbc/emitter/cargo/emit_function",
"src/hhbc/emitter/cargo/emit_memoize_helpers",
"src/hhbc/emitter/cargo/emit_memoize_method",
"src/hhbc/emitter/cargo/emit_method",
"src/hhbc/emitter/cargo/emit_native_opcode",
"src/hhbc/emitter/cargo/emit_param",
"src/hhbc/emitter/cargo/emit_pos",
"src/hhbc/emitter/cargo/emit_program",
"src/hhbc/emitter/cargo/emit_property",
"src/hhbc/emitter/cargo/emit_record_def",
"src/hhbc/emitter/cargo/emit_symbol_refs",
"src/hhbc/emitter/cargo/emit_type_constant",
"src/hhbc/emitter/cargo/emit_typedef",
"src/hhbc/emitter/cargo/emit_type_hint",
"src/hhbc/emitter/cargo/emit_xhp",
"src/hhbc/emitter/cargo/env",
"src/hhbc/emitter/cargo/generator",
"src/hhbc/emitter/cargo/global_state",
"src/hhbc/emitter/cargo/instruction_sequence",
"src/hhbc/emitter/cargo/iterator",
"src/hhbc/emitter/cargo/label",
"src/hhbc/emitter/cargo/label_rewriter",
"src/hhbc/emitter/cargo/local",
"src/hhbc/emitter/cargo/runtime",
"src/hhbc/emitter/cargo/statement_state",
"src/hhbc//emitter/cargo/symbol_refs_state",
"src/hhbc/ffi_bridge",
"src/hhbc/hhbc/cargo/decl_vars",
"src/hhbc/hhbc/cargo/hhas_pos",
"src/hhbc/hhbc/cargo/adata_state",
"src/hhbc/hhbc/cargo/ast_body",
"src/hhbc/hhbc/cargo/ast_class_expr",
"src/hhbc/hhbc/cargo/ast_constant_folder",
"src/hhbc/hhbc/cargo/ast_scope",
"src/hhbc/hhbc/cargo/hhas_adata",
"src/hhbc/hhbc/cargo/hhas_attribute",
"src/hhbc/hhbc/cargo/hhas_body",
"src/hhbc/hhbc/cargo/hhas_class",
"src/hhbc/hhbc/cargo/hhas_coeffects",
"src/hhbc/hhbc/cargo/hhas_constant",
"src/hhbc/hhbc/cargo/hhas_function",
"src/hhbc/hhbc/cargo/hhas_method",
"src/hhbc/hhbc/cargo/hhas_param",
"src/hhbc/hhbc/cargo/hhas_program",
"src/hhbc/hhbc/cargo/hhas_property",
"src/hhbc/hhbc/cargo/hhas_record_def",
"src/hhbc/hhbc/cargo/hhas_symbol_refs",
"src/hhbc/hhbc/cargo/hhas_type",
"src/hhbc/hhbc/cargo/hhas_type_const",
"src/hhbc/hhbc/cargo/hhas_typedef",
"src/hhbc/hhbc/cargo/hhas_xhp_attribute",
"src/hhbc/hhbc/cargo/hhbc_ast",
"src/hhbc/hhbc/cargo/hhbc_id",
"src/hhbc/hhbc/cargo/scope",
"src/hhbc/utils/cargo/hhbc_string_utils",
"src/hhbc/utils/cargo/unique_id_builder",
"src/hhbc/utils/cargo/unique_list",
"src/hhbc/utils/cargo/unique_list_bench",
"src/hh_codegen",
"src/hh_compile",
"src/hh_fanout/cargo/hh_fanout_build_rust",
Expand Down
6 changes: 3 additions & 3 deletions hphp/hack/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ else()
set(PROFILE "release")
endif()

set(HHBC_PREFIX "${CMAKE_CURRENT_SOURCE_DIR}/src/hhbc")
set(HHBC_PREFIX "${CMAKE_CURRENT_SOURCE_DIR}/src/hackc")
set(HHBC_AST_SRCS
"hhbc/hhas_adata.rs"
"hhbc/hhas_attribute.rs"
Expand Down Expand Up @@ -175,7 +175,7 @@ foreach(src ${FFI_SRCS})
string(APPEND FFI_SRC_ARG "${FFI_PREFIX}/${src},")
endforeach()

set(HHBC_AST_HEADER "${RUST_FFI_BUILD_ROOT}/hphp/hack/src/hhbc/hhbc-ast.h")
set(HHBC_AST_HEADER "${RUST_FFI_BUILD_ROOT}/hphp/hack/src/hackc/hhbc-ast.h")
set(FFI_HEADER "${RUST_FFI_BUILD_ROOT}/hphp/hack/src/utils/ffi.h")
set(NAMING_SPECIAL_NAMES_HEADER "${RUST_FFI_BUILD_ROOT}/hphp/hack/src/naming/naming-special-names.h")
add_custom_command(
Expand Down Expand Up @@ -242,7 +242,7 @@ function(build_cxx_bridge NAME FFI_BRIDGE_DIR)
endfunction()

build_cxx_bridge(rust_parser "src/parser/ffi_bridge")
build_cxx_bridge(rust_compile "src/hhbc/ffi_bridge")
build_cxx_bridge(rust_compile "src/hackc/ffi_bridge")

if (NOT LZ4_FOUND)
add_dependencies(hack_dune lz4)
Expand Down
2 changes: 1 addition & 1 deletion hphp/hack/src/facts/cargo/facts_rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ digest = "0.8"
facts_parser = { path = "../../../parser/api/cargo/facts_parser" }
facts_smart_constructors = { path = "../facts_smart_constructors" }
hex = "0.4.3"
hhbc_string_utils = { path = "../../../hhbc/utils/cargo/hhbc_string_utils" }
hhbc_string_utils = { path = "../../../hackc/utils/cargo/hhbc_string_utils" }
md-5 = "0.8"
naming_special_names_rust = { path = "../../../naming" }
ocamlrep = { path = "../../../ocamlrep" }
Expand Down
2 changes: 1 addition & 1 deletion hphp/hack/src/facts/cargo/rust_facts_ffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ crate-type = ["lib", "staticlib"]

[dependencies]
facts_rust = { path = "../facts_rust" }
hhbc_string_utils = { path = "../../../hhbc/utils/cargo/hhbc_string_utils" }
hhbc_string_utils = { path = "../../../hackc/utils/cargo/hhbc_string_utils" }
ocamlrep = { path = "../../../ocamlrep" }
ocamlrep_ocamlpool = { path = "../../../ocamlrep_ocamlpool" }
oxidized = { path = "../../../oxidized" }
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc:bytecode_printer
# @generated by autocargo from //hphp/hack/src/hackc:bytecode_printer
[package]
name = "bytecode_printer"
version = "0.0.0"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc:compile_ffi
# @generated by autocargo from //hphp/hack/src/hackc:compile_ffi
[package]
name = "compile_ffi"
version = "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc:options_ffi
# @generated by autocargo from //hphp/hack/src/hackc:options_ffi
[package]
name = "options_ffi"
version = "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc/compile:closure_convert
# @generated by autocargo from //hphp/hack/src/hackc/compile:closure_convert
[package]
name = "closure_convert"
version = "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc/compile:compile
# @generated by autocargo from //hphp/hack/src/hackc/compile:compile
[package]
name = "compile"
version = "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc/compile:options
# @generated by autocargo from //hphp/hack/src/hackc/compile:options
[package]
name = "options"
version = "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc/compile:options_serde
# @generated by autocargo from //hphp/hack/src/hackc/compile:options_serde
[package]
name = "options_serde"
version = "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc/compile:rewrite_program
# @generated by autocargo from //hphp/hack/src/hackc/compile:rewrite_program
[package]
name = "rewrite_program"
version = "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc/compile:rewrite_xml
# @generated by autocargo from //hphp/hack/src/hackc/compile:rewrite_xml
[package]
name = "rewrite_xml"
version = "0.0.0"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc:decl_provider
# @generated by autocargo from //hphp/hack/src/hackc:decl_provider
[package]
name = "decl_provider"
version = "0.0.0"
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc/emitter:emit_adata
# @generated by autocargo from //hphp/hack/src/hackc/emitter:emit_adata
[package]
name = "emit_adata"
version = "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc/emitter:emit_attribute
# @generated by autocargo from //hphp/hack/src/hackc/emitter:emit_attribute
[package]
name = "emit_attribute"
version = "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc/emitter:emit_body
# @generated by autocargo from //hphp/hack/src/hackc/emitter:emit_body
[package]
name = "emit_body"
version = "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc/emitter:emit_class
# @generated by autocargo from //hphp/hack/src/hackc/emitter:emit_class
[package]
name = "emit_class"
version = "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc/emitter:emit_constant
# @generated by autocargo from //hphp/hack/src/hackc/emitter:emit_constant
[package]
name = "emit_constant"
version = "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc/emitter:emit_expression
# @generated by autocargo from //hphp/hack/src/hackc/emitter:emit_expression
[package]
name = "emit_expression"
version = "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc/emitter:emit_fatal
# @generated by autocargo from //hphp/hack/src/hackc/emitter:emit_fatal
[package]
name = "emit_fatal"
version = "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc/emitter:emit_file_attributes
# @generated by autocargo from //hphp/hack/src/hackc/emitter:emit_file_attributes
[package]
name = "emit_file_attributes"
version = "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc/emitter:emit_function
# @generated by autocargo from //hphp/hack/src/hackc/emitter:emit_function
[package]
name = "emit_function"
version = "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc/emitter:emit_memoize_helpers
# @generated by autocargo from //hphp/hack/src/hackc/emitter:emit_memoize_helpers
[package]
name = "emit_memoize_helpers"
version = "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc/emitter:emit_memoize_method
# @generated by autocargo from //hphp/hack/src/hackc/emitter:emit_memoize_method
[package]
name = "emit_memoize_method"
version = "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc/emitter:emit_method
# @generated by autocargo from //hphp/hack/src/hackc/emitter:emit_method
[package]
name = "emit_method"
version = "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc/emitter:emit_native_opcode
# @generated by autocargo from //hphp/hack/src/hackc/emitter:emit_native_opcode
[package]
name = "emit_native_opcode"
version = "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc/emitter:emit_param
# @generated by autocargo from //hphp/hack/src/hackc/emitter:emit_param
[package]
name = "emit_param"
version = "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc/emitter:emit_pos
# @generated by autocargo from //hphp/hack/src/hackc/emitter:emit_pos
[package]
name = "emit_pos"
version = "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc/emitter:emit_program
# @generated by autocargo from //hphp/hack/src/hackc/emitter:emit_program
[package]
name = "emit_program"
version = "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc/emitter:emit_property
# @generated by autocargo from //hphp/hack/src/hackc/emitter:emit_property
[package]
name = "emit_property"
version = "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc/emitter:emit_record_def
# @generated by autocargo from //hphp/hack/src/hackc/emitter:emit_record_def
[package]
name = "emit_record_def"
version = "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc/emitter:emit_symbol_refs
# @generated by autocargo from //hphp/hack/src/hackc/emitter:emit_symbol_refs
[package]
name = "emit_symbol_refs"
version = "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc/emitter:emit_type_constant
# @generated by autocargo from //hphp/hack/src/hackc/emitter:emit_type_constant
[package]
name = "emit_type_constant"
version = "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc/emitter:emit_type_hint
# @generated by autocargo from //hphp/hack/src/hackc/emitter:emit_type_hint
[package]
name = "emit_type_hint"
version = "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @generated by autocargo from //hphp/hack/src/hhbc/emitter:emit_typedef
# @generated by autocargo from //hphp/hack/src/hackc/emitter:emit_typedef
[package]
name = "emit_typedef"
version = "0.0.0"
Expand Down

0 comments on commit 43f8698

Please sign in to comment.