-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[jit] Resolve with closed over variables instead of stack frame #22270
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
Conversation
wanchaol
left a comment
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.
Nice!
|
any updates on this? |
|
It breaks resolution of type comment variables since they're not actually captured by the function since they're just strings. We could fix it by combining both methods of |
b49decb to
759157b
Compare
wanchaol
left a comment
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.
looks good.
24e147b to
2436514
Compare
2436514 to
cc5be3e
Compare
Previously we looked at the stack frame of the function that called
scriptto resolve variables. This doesn't work if someone calls scriptwith a function defined somewhere else that references captured
variables. We already have a mechanism to look at the closed over
variables for a function, so this changes the
rcbto use that.Differential Revision: D16391346