-
Notifications
You must be signed in to change notification settings - Fork 598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added panic_with_const_felt252 function and using it where possible. #7386
Conversation
e2d5911
to
06cf6b9
Compare
0a40007
to
e01f69d
Compare
1a2d88f
to
82c0320
Compare
e5a9235
to
35d0e55
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 91 files at r1, all commit messages.
Reviewable status: 2 of 91 files reviewed, 1 unresolved discussion
a discussion (no related file):
Won't it create an instance of the function for each const and thus potentially increase the code size?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 2 of 91 files reviewed, 1 unresolved discussion (waiting on @gilbens-starkware)
a discussion (no related file):
Previously, gilbens-starkware (Gil Ben-Shachar) wrote…
Won't it create an instance of the function for each const and thus potentially increase the code size?
potentially - yes - in actuality - no.
most shorterrors repeat themselves - and we specifically don't care much about run cost of the panic area of the code (as it shouldn't happen)
Using it by: * const-folding `panic_with_felt252` into it. * panic_with using it directly. * gas addition using it directly. commit-id:37a833cf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 56 of 91 files at r1, 33 of 33 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @orizi)
Using it by:
panic_with_felt252
into it.Stack: