-
-
Notifications
You must be signed in to change notification settings - Fork 411
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
Fix HomeObject for private class methods #3897
Conversation
Test262 conformance changes
Fixed tests (127):
|
Relevant test passing here is: |
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! I have a small discussion point that doesn't block merging.
self.emit(Opcode::RotateLeft, &[Operand::U8(3)]); | ||
self.emit_opcode(Opcode::Dup); | ||
self.emit(Opcode::RotateRight, &[Operand::U8(4)]); |
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.
Thought: I have seen this pattern in a lot of places. Maybe it would be good to extract this operation into a common compiler method. Something like dup_indexed
or similar.
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.
Totaly agree. I think this might be something for the bytecode optimizer too. I would wait for #3798 until we work on that since that is probably gonna change some things.
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.
LGTM
This PR changes the following: