Skip to content

feat!: trap with revert data#5732

Merged
sirasistant merged 15 commits into
masterfrom
arv/trap_with_data
Apr 16, 2024
Merged

feat!: trap with revert data#5732
sirasistant merged 15 commits into
masterfrom
arv/trap_with_data

Conversation

@sirasistant

@sirasistant sirasistant commented Apr 12, 2024

Copy link
Copy Markdown
Contributor

This PR adds revert data for user-defined messages in the TRAP opcode. Not all messages are returned as revert data, since compiler intrinsic messages are spammed all over SSA and codegening revert data for all those makes brillig function size blow up and impacts performance in a hard way due to deserializing load.
This is currently only for static assert messages, since dynamic ones are implemented as an oracle and probably need a rework to be able to return them as revert data.

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