| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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
…KEYWORDS protocol.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| Expand Up | @@ -4896,6 +4896,48 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, InterpreterFrame *frame, int thr | |||||
| DISPATCH(); | ||||||
| } | ||||||
|
|
||||||
| TARGET(CALL_BUILTIN_FAST_WITH_KEYWORDS) { | ||||||
| assert(cframe.use_tracing == 0); | ||||||
| /* Builtin METH_FASTCALL functions, without keywords */ | ||||||
|
Comment thread
Outdated
Copy link
Copy Markdown
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality
Suggested change
Sorry, something went wrong.
All reactions
|
||||||
| PyObject *callable = call_shape.callable; | ||||||
| assert(call_shape.kwnames == NULL); | ||||||
| DEOPT_IF(!PyCFunction_CheckExact(callable), CALL); | ||||||
| DEOPT_IF(PyCFunction_GET_FLAGS(callable) != | ||||||
| (METH_FASTCALL | METH_KEYWORDS), CALL); | ||||||
| STAT_INC(CALL, hit); | ||||||
| int kwnames_len = GET_CACHE()->adaptive.original_oparg; | ||||||
| assert( | ||||||
| (call_shape.kwnames == NULL && kwnames_len == 0) || | ||||||
| (call_shape.kwnames != NULL && | ||||||
| PyTuple_GET_SIZE(call_shape.kwnames) == kwnames_len) | ||||||
| ); | ||||||
| int nargs = call_shape.positional_args - kwnames_len; | ||||||
| STACK_SHRINK(call_shape.positional_args); | ||||||
| /* res = func(self, args, nargs, kwnames) */ | ||||||
| _PyCFunctionFastWithKeywords cfunc = | ||||||
| (_PyCFunctionFastWithKeywords)(void(*)(void)) | ||||||
|
Comment thread
markshannon marked this conversation as resolved.
Resolved
|
||||||
| PyCFunction_GET_FUNCTION(callable); | ||||||
| PyObject *res = cfunc( | ||||||
| PyCFunction_GET_SELF(callable), | ||||||
| stack_pointer, | ||||||
| nargs, | ||||||
| call_shape.kwnames | ||||||
| ); | ||||||
| assert((res != NULL) ^ (_PyErr_Occurred(tstate) != NULL)); | ||||||
|
|
||||||
| /* Free the arguments. */ | ||||||
| for (int i = 0; i < call_shape.positional_args; i++) { | ||||||
| Py_DECREF(stack_pointer[i]); | ||||||
| } | ||||||
| STACK_SHRINK(call_shape.postcall_shrink); | ||||||
| PUSH(res); | ||||||
| Py_DECREF(callable); | ||||||
| if (res == NULL) { | ||||||
| goto error; | ||||||
| } | ||||||
| DISPATCH(); | ||||||
| } | ||||||
|
|
||||||
| TARGET(CALL_NO_KW_LEN) { | ||||||
| assert(cframe.use_tracing == 0); | ||||||
| assert(call_shape.kwnames == NULL); | ||||||
| Expand Down | ||||||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.