mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
GH-118093: Make CALL_ALLOC_AND_ENTER_INIT suitable for tier 2. (GH-123140)
* Convert CALL_ALLOC_AND_ENTER_INIT to micro-ops such that tier 2 supports it * Allow inexact arguments for CALL_ALLOC_AND_ENTER_INIT.
This commit is contained in:
parent
bffed80230
commit
bb1d30336e
17 changed files with 464 additions and 299 deletions
|
|
@ -1796,8 +1796,7 @@ init_frame(_PyInterpreterFrame *frame, PyFunctionObject *func, PyObject *locals)
|
|||
{
|
||||
PyCodeObject *code = (PyCodeObject *)func->func_code;
|
||||
_PyFrame_Initialize(frame, (PyFunctionObject*)Py_NewRef(func),
|
||||
Py_XNewRef(locals), code, 0);
|
||||
frame->previous = NULL;
|
||||
Py_XNewRef(locals), code, 0, NULL);
|
||||
}
|
||||
|
||||
PyFrameObject*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue