GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||
GeezerVison is showing github.com — gh-98831: rewrite MAKE_FUNCTION and BUILD_SLICE in the instruction definition DSL by iritkatriel · Pull Request #101529 · python/cpython Conversation
|
|
🤖 New build scheduled with the buildbot fleet by @iritkatriel for commit 90ff55e 🤖 If you want to schedule another build, you need to add the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| kwdefaults if (oparg & 0x02), | ||
| annotations if (oparg & 0x04), | ||
| closure if (oparg & 0x08), | ||
| codeobj -- func)) { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Too bad we can't write func: PyFunctionObject * yet -- I've gotta add that to the grammar, it would add the casts and save the ugly extra func_obj variable.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| Py_DECREF(start); | ||
| Py_DECREF(stop); | ||
| Py_XDECREF(step); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Oh, we should augment DECREF_INPUTS() to use XDECREF for conditional inputs.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| PyObject *annotations = (oparg & 0x04) ? PEEK(1 + ((oparg & 0x08) ? 1 : 0) + ((oparg & 0x04) ? 1 : 0)) : NULL; | ||
| PyObject *kwdefaults = (oparg & 0x02) ? PEEK(1 + ((oparg & 0x08) ? 1 : 0) + ((oparg & 0x04) ? 1 : 0) + ((oparg & 0x02) ? 1 : 0)) : NULL; | ||
| PyObject *defaults = (oparg & 0x01) ? PEEK(1 + ((oparg & 0x08) ? 1 : 0) + ((oparg & 0x04) ? 1 : 0) + ((oparg & 0x02) ? 1 : 0) + ((oparg & 0x01) ? 1 : 0)) : NULL; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Let's hope the compiler optimizes this. (Though it's not perf critical.)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
77af074 to
98c053b
Compare
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.