mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
gh-107149: make new opcode util functions private rather than public and unstable (#112042)
This commit is contained in:
parent
b28bb130bb
commit
36aab34fab
5 changed files with 43 additions and 39 deletions
|
|
@ -68,15 +68,3 @@ typedef struct {
|
|||
#define PY_INVALID_STACK_EFFECT INT_MAX
|
||||
PyAPI_FUNC(int) PyCompile_OpcodeStackEffect(int opcode, int oparg);
|
||||
PyAPI_FUNC(int) PyCompile_OpcodeStackEffectWithJump(int opcode, int oparg, int jump);
|
||||
|
||||
PyAPI_FUNC(int) PyUnstable_OpcodeIsValid(int opcode);
|
||||
PyAPI_FUNC(int) PyUnstable_OpcodeHasArg(int opcode);
|
||||
PyAPI_FUNC(int) PyUnstable_OpcodeHasConst(int opcode);
|
||||
PyAPI_FUNC(int) PyUnstable_OpcodeHasName(int opcode);
|
||||
PyAPI_FUNC(int) PyUnstable_OpcodeHasJump(int opcode);
|
||||
PyAPI_FUNC(int) PyUnstable_OpcodeHasFree(int opcode);
|
||||
PyAPI_FUNC(int) PyUnstable_OpcodeHasLocal(int opcode);
|
||||
PyAPI_FUNC(int) PyUnstable_OpcodeHasExc(int opcode);
|
||||
|
||||
PyAPI_FUNC(PyObject*) PyUnstable_GetUnaryIntrinsicName(int index);
|
||||
PyAPI_FUNC(PyObject*) PyUnstable_GetBinaryIntrinsicName(int index);
|
||||
|
|
|
|||
|
|
@ -102,6 +102,20 @@ int _PyCompile_EnsureArrayLargeEnough(
|
|||
|
||||
int _PyCompile_ConstCacheMergeOne(PyObject *const_cache, PyObject **obj);
|
||||
|
||||
|
||||
// Export for '_opcode' extention module
|
||||
PyAPI_FUNC(int) _PyCompile_OpcodeIsValid(int opcode);
|
||||
PyAPI_FUNC(int) _PyCompile_OpcodeHasArg(int opcode);
|
||||
PyAPI_FUNC(int) _PyCompile_OpcodeHasConst(int opcode);
|
||||
PyAPI_FUNC(int) _PyCompile_OpcodeHasName(int opcode);
|
||||
PyAPI_FUNC(int) _PyCompile_OpcodeHasJump(int opcode);
|
||||
PyAPI_FUNC(int) _PyCompile_OpcodeHasFree(int opcode);
|
||||
PyAPI_FUNC(int) _PyCompile_OpcodeHasLocal(int opcode);
|
||||
PyAPI_FUNC(int) _PyCompile_OpcodeHasExc(int opcode);
|
||||
|
||||
PyAPI_FUNC(PyObject*) _PyCompile_GetUnaryIntrinsicName(int index);
|
||||
PyAPI_FUNC(PyObject*) _PyCompile_GetBinaryIntrinsicName(int index);
|
||||
|
||||
/* Access compiler internals for unit testing */
|
||||
|
||||
// Export for '_testinternalcapi' shared extension
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue