-
Notifications
You must be signed in to change notification settings - Fork 217
[Compiler] remove locations arround atomic expressions #21567
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
base: main
Are you sure you want to change the base?
Conversation
Those are useless for the run time. Rmove them reduce the dar size by 8%.
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.
We can remove it, but if we ever want to improve call stacks in the engine, or even add a debugger, we'll need this back
For the call stack those are useless, because those expressions do not increase the stack (it is actually what I mean by useless for the runtime). For the debugger, I am not sure they will be so usefull neither -- we could discuss about that. |
Would they not point to the exact value that throws an error? i.e. the "error" builtin? |
They are essentially the bottom of the callstack, no? |
No. You will get the location around the Application. e.g. |
Right okay, and theres no cases where whatever is wrapping the atomic has a location that isn't good enough. Happy to merge |
Should we not have a unit test that asserts this property, and therefore signals regressions? |
Fair enough. |
Those are useless for the run time.
Remove them reduce the dar size by 8% (average calculated using all the dar files generated in the repo)