-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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
bpo-43693: Add the MAKE_CELL opcode and interleave fast locals offsets. #26396
bpo-43693: Add the MAKE_CELL opcode and interleave fast locals offsets. #26396
Conversation
24ecd90
to
b4ba659
Compare
b4ba659
to
4dceac6
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.
Also a couple of Windows warnings.
@@ -181,14 +181,16 @@ def jabs_op(name, op): | |||
def_op('MAKE_FUNCTION', 132) # Flags | |||
def_op('BUILD_SLICE', 133) # Number of items | |||
|
|||
def_op('LOAD_CLOSURE', 135) |
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.
Why the opcode shuffle?
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.
My initial impression was that MAKE_CELL
should be at the front of the cell-related list and I figured it would be better to preserve the gap at 134. I figured it wouldn't matter but if it's a problem I can put MAKE_CELL
at 139.
Misc/NEWS.d/next/Core and Builtins/2021-05-26-19-10-47.bpo-43693.1KSG9u.rst
Outdated
Show resolved
Hide resolved
4975013
to
16c3424
Compare
16c3424
to
2ea0f06
Compare
2ea0f06
to
5a4d984
Compare
🤖 New build scheduled with the buildbot fleet by @ericsnowcurrently for commit 05accc0 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
…s offsets. (pythongh-26396)" This reverts commit 631f993.
…cals offsets. (pythongh-26396)" That commit (3fe921c) was reverted in pythonGH-26597 (3fe921c).
This was reverted in GH-26596 (commit 6d518bb) due to some bad memory accesses. * Add the MAKE_CELL opcode. (gh-26396) The memory accesses have been fixed. https://bugs.python.org/issue43693
This moves logic out of the frame initialization code and into the compiler and eval loop. Doing so simplifies the runtime code and allows us to optimize it better.
https://bugs.python.org/issue43693