Progress on updating entire compiler for snake_case

This commit is contained in:
Sam Mohr 2025-01-05 03:48:03 -08:00
parent db6cc5a7b1
commit b56fbd38e1
No known key found for this signature in database
GPG key ID: EA41D161A3C1BC99
297 changed files with 8416 additions and 8544 deletions

View file

@ -1759,10 +1759,10 @@ mod tests {
assert_eq!(
[
"roc__mainForHost_1__Fx_caller",
"roc__mainForHost_1__Fx_result_size",
"roc__mainForHost_1_exposed_generic",
"roc__mainForHost_size"
"roc__main_for_host_1__Fx_caller",
"roc__main_for_host_1__Fx_result_size",
"roc__main_for_host_1_exposed_generic",
"roc__main_for_host_size"
],
keys.as_slice()
)

View file

@ -441,7 +441,7 @@ pub(crate) fn preprocess_macho_le(
);
// Find all the lazily-bound roc symbols
// (e.g. "_roc__mainForHost_1_exposed")
// (e.g. "_roc__main_for_host_1_exposed")
// For Macho, we may need to deal with some GOT stuff here as well.
for (i, symbol) in lazy_bind_symbols
.skip(stubs_symbol_index as usize)

View file

@ -66,7 +66,7 @@ struct PeMetadata {
file_alignment: u32,
section_alignment: u32,
/// Symbols that the host imports, like roc__mainForHost_1_exposed_generic
/// Symbols that the host imports, like roc__main_for_host_1_exposed_generic
imports: Vec<String>,
/// Symbols that the host exports, like roc_alloc
@ -625,7 +625,7 @@ impl DynamicRelocationsPe {
Ok(None)
}
/// Append metadata for the functions (e.g. mainForHost) that the host needs from the app
/// Append metadata for the functions (e.g. main_for_host) that the host needs from the app
fn append_roc_imports(
&mut self,
import_table: &ImportTable,
@ -1462,25 +1462,25 @@ mod test {
//
// DynamicRelocationsPe {
// name_by_virtual_address: {
// 0xaf4e0: "roc__mainForHost_size",
// 0xaf4c8: "roc__mainForHost_1__Fx_caller",
// 0xaf4d0: "roc__mainForHost_1__Fx_result_size",
// 0xaf4d8: "roc__mainForHost_1_exposed_generic",
// 0xaf4e0: "roc__main_for_host_size",
// 0xaf4c8: "roc__main_for_host_1__Fx_caller",
// 0xaf4d0: "roc__main_for_host_1__Fx_result_size",
// 0xaf4d8: "roc__main_for_host_1_exposed_generic",
// },
// address_and_offset: {
// "roc__mainForHost_1__Fx_result_size": (
// "roc__main_for_host_1__Fx_result_size": (
// 0xaf4d0,
// 0xae4d0,
// ),
// "roc__mainForHost_1__Fx_caller": (
// "roc__main_for_host_1__Fx_caller": (
// 0xaf4c8,
// 0xae4c8,
// ),
// "roc__mainForHost_1_exposed_generic": (
// "roc__main_for_host_1_exposed_generic": (
// 0xaf4d8,
// 0xae4d8,
// ),
// "roc__mainForHost_size": (
// "roc__main_for_host_size": (
// 0xaf4e0,
// 0xae4e0,
// ),
@ -1564,10 +1564,10 @@ mod test {
assert_eq!(
[
"roc__mainForHost_1__Fx_caller",
"roc__mainForHost_1__Fx_result_size",
"roc__mainForHost_1_exposed_generic",
"roc__mainForHost_size"
"roc__main_for_host_1__Fx_caller",
"roc__main_for_host_1__Fx_result_size",
"roc__main_for_host_1_exposed_generic",
"roc__main_for_host_size"
],
imports.as_slice(),
)