Skip to content
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

Simplify control flow when exiting the interpreter. #17756

Open
wants to merge 1 commit into
base: master
from

Conversation

@markshannon
Copy link
Contributor

markshannon commented Dec 30, 2019

Skip the stack emptying step for RETURN_VALUE, as the compiler now ensures that the stack is empty.

Remove test that generates invalid bytecode.
Maybe we should have a bytecode verifier, but that's not the job of the interpreter.

No change in behaviour, so no news or BPO issue needed.

@pablogsal

This comment has been minimized.

Copy link
Member

pablogsal commented Dec 30, 2019

as the compiler now ensures that the stack is empty

Out of curiosity, in which PR/issue was this changed?

@markshannon

This comment has been minimized.

Copy link
Contributor Author

markshannon commented Dec 30, 2019

@pablogsal

This comment has been minimized.

Copy link
Member

pablogsal commented Dec 30, 2019

#6641

Thanks, Mark!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.