Skip to content

fix: Don't reuse brillig with slice arguments#5800

Merged
sirasistant merged 3 commits into
masterfrom
arv/fix_brillig_slice_entrypoint
Apr 17, 2024
Merged

fix: Don't reuse brillig with slice arguments#5800
sirasistant merged 3 commits into
masterfrom
arv/fix_brillig_slice_entrypoint

Conversation

@sirasistant

Copy link
Copy Markdown
Contributor

This is a quick fix after #5737 since that PR assumes that one generated brillig is valid for all calls to the brillig function. This is however not true, since the generated brillig can differ if the arguments contains slices. This is because the entry point codegen depends on the size of the slice.
We currently cannot copy slices of any length into brillig due to the limitations of CALLDATACOPY where the size being copied needs to be known at compile-time. I'm going to chat with the AVM team to see if we can lift this restriction and make brillig entry points be able to copy in arguments that contain slices of any length.

Loading
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.

4 participants