mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-138431: JIT Optimizer --- Fix round-tripping references for str and tuple (GH-138458)
Co-authored-by: Mark Shannon <9448417+markshannon@users.noreply.github.com>
This commit is contained in:
parent
0d1f4e1639
commit
2402f84665
5 changed files with 34 additions and 8 deletions
|
|
@ -251,6 +251,12 @@ PyJitRef_Wrap(JitOptSymbol *sym)
|
|||
return (JitOptRef){.bits=(uintptr_t)sym};
|
||||
}
|
||||
|
||||
static inline JitOptRef
|
||||
PyJitRef_StripReferenceInfo(JitOptRef ref)
|
||||
{
|
||||
return PyJitRef_Wrap(PyJitRef_Unwrap(ref));
|
||||
}
|
||||
|
||||
static inline JitOptRef
|
||||
PyJitRef_Borrow(JitOptRef ref)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue