Skip to content

chore(wasm): Shorten redundant code in the Wasm backend - #2735

Merged
lapla-cogito merged 16 commits into
wild-linker:mainfrom
lapla-cogito:wasm_cleanup
Oct 16, 2026
Merged

lapla-cogito merged 16 commits into
wild-linker:mainfrom
lapla-cogito:wasm_cleanup

Conversation

@lapla-cogito

Copy link
Copy Markdown
Member

Now that the overall architecture of the Wasm backend is largely finalized, we can identify redundant processing.

This is best reviewed per commit.

Comment thread libwild/src/wasm.rs Outdated
table_index_symbol_indices: Vec<Vec<usize>>,
}

fn assign_reserved_got_globals(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function takes quite a lot of arguments for a function that does relatively little. Do you think it's worth it?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well it may have been over-generalization. I've reverted it.

@lapla-cogito
lapla-cogito merged commit f8fc0dc into wild-linker:main Oct 16, 2026
26 checks passed
@lapla-cogito
lapla-cogito deleted the wasm_cleanup branch October 16, 2026 04:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants