Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.3k
gh-119180: Add LOAD_COMMON_CONSTANT opcode#119321
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
00d6eeb
983c93c
ab560cd
4d42dcc
32a2a73
6c0514d
d40a577
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -2991,6 +2991,13 @@ void Py_LeaveRecursiveCall(void) | ||
_Py_LeaveRecursiveCall(); | ||
} | ||
void | ||
_PyCompile_SetCommonConstant(int index, PyObject *constant) | ||
{ | ||
assert(index >= 0 && index < NUM_COMMON_CONSTANTS); | ||
common_constants[index] = constant; | ||
} | ||
PyObject * | ||
_PyCompile_GetCommonConstantsList(void) | ||
JelleZijlstra marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
{ | ||
@@ -2999,7 +3006,7 @@ _PyCompile_GetCommonConstantsList(void) | ||
return NULL; | ||
} | ||
for (int i = 0; i < NUM_COMMON_CONSTANTS; i++) { | ||
PyList_SET_ITEM(lst, i, Py_NewRef(common_constants[i])); | ||
} | ||
return lst; | ||
} |
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.