Skip to content

Implement GC opcodes#2618

Open
zherczeg wants to merge 2 commits intoWebAssembly:mainfrom
zherczeg:gc_more_instructions
Open

Implement GC opcodes#2618
zherczeg wants to merge 2 commits intoWebAssembly:mainfrom
zherczeg:gc_more_instructions

Conversation

@zherczeg
Copy link
Copy Markdown
Collaborator

Implementing garbage collection byte codes. Starting with struct.

@zherczeg zherczeg force-pushed the gc_more_instructions branch from a442179 to 3253783 Compare June 11, 2025 10:30
@zherczeg zherczeg changed the title Gc more instructions Implement GC opcodes Jun 12, 2025
@zherczeg zherczeg force-pushed the gc_more_instructions branch 7 times, most recently from d20f5b4 to ab9ab1f Compare June 17, 2025 09:53
@zherczeg
Copy link
Copy Markdown
Collaborator Author

Status update: all struct/array opcodes are implemented. That is 20 opcodes. The patch is 4K lines now, and the end is still very far.

@zherczeg zherczeg force-pushed the gc_more_instructions branch 20 times, most recently from 3b48300 to 69d01b7 Compare June 23, 2025 11:44
@zherczeg
Copy link
Copy Markdown
Collaborator Author

zherczeg commented Mar 8, 2026

I have added a OnGCUnaryExpr method here, and RefEq, which is a binary operation, also handled by it. Shall I add a separate method for this, or rename OnGCUnaryExpr to something else.

@zherczeg zherczeg force-pushed the gc_more_instructions branch 2 times, most recently from d885feb to 076528b Compare March 13, 2026 06:03
@zherczeg zherczeg force-pushed the gc_more_instructions branch 2 times, most recently from 04e9a4f to dbc1258 Compare March 26, 2026 17:58
This patch supports parsing the new GC types
- Abstract types
- Recursive types
- Composite types

The patch also improves type comparison.
@zherczeg zherczeg force-pushed the gc_more_instructions branch from dbc1258 to 270188b Compare April 14, 2026 11:59
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.

1 participant