Versions in this module Expand all Collapse all v0 v0.12.3 May 15, 2026 v0.12.0 May 8, 2026 Changes in this version + const BloomFilterWords + const BuiltinsWatcherID + const ConfidenceCutoff + const ConfidenceRange + const ExecutorDeleteListMax + const GlobalsWatcherID + const JITCleanupThreshold + const MaxAbstractFrameDepth + const MaxAbstractInterpSize + const MaxAllowedBuiltinsModifications + const MaxAllowedGlobalsModifications + const MaxChainDepth + const MaxDictWatchers + const MaxExecutorsSize + const MaxSymbolicTupleSize + const MaxTypeWatchers + const MaxUopID + const MaxUopPerExpansion + const TraceStackSize + const TyArenaSize + const TypeWatcherID + const UOPFormatJump + const UOPFormatTarget + const UOPMaxTraceLength + const UopBinaryOp + const UopBinaryOpAddFloat + const UopBinaryOpAddInt + const UopBinaryOpAddUnicode + const UopBinaryOpExtend + const UopBinaryOpInplaceAddUnicode + const UopBinaryOpMultiplyFloat + const UopBinaryOpMultiplyInt + const UopBinaryOpSubscrCheckFunc + const UopBinaryOpSubscrDict + const UopBinaryOpSubscrInitCall + const UopBinaryOpSubscrListInt + const UopBinaryOpSubscrListSlice + const UopBinaryOpSubscrStrInt + const UopBinaryOpSubscrTupleInt + const UopBinaryOpSubtractFloat + const UopBinaryOpSubtractInt + const UopBinarySlice + const UopBuildInterpolation + const UopBuildList + const UopBuildMap + const UopBuildSet + const UopBuildSlice + const UopBuildString + const UopBuildTemplate + const UopBuildTuple + const UopCallBuiltinClass + const UopCallBuiltinFast + const UopCallBuiltinFastWithKeywords + const UopCallBuiltinO + const UopCallIntrinsic1 + const UopCallIntrinsic2 + const UopCallIsinstance + const UopCallKwNonPy + const UopCallLen + const UopCallListAppend + const UopCallMethodDescriptorFast + const UopCallMethodDescriptorFastWithKeywords + const UopCallMethodDescriptorNoargs + const UopCallMethodDescriptorO + const UopCallNonPyGeneral + const UopCallStr1 + const UopCallTuple1 + const UopCallType1 + const UopCheckAndAllocateObject + const UopCheckAttrClass + const UopCheckAttrMethodLazyDict + const UopCheckCallBoundMethodExactArgs + const UopCheckEgMatch + const UopCheckExcMatch + const UopCheckFunction + const UopCheckFunctionExactArgs + const UopCheckFunctionVersion + const UopCheckFunctionVersionInline + const UopCheckFunctionVersionKw + const UopCheckIsNotPyCallable + const UopCheckIsNotPyCallableKw + const UopCheckManagedObjectHasValues + const UopCheckMethodVersion + const UopCheckMethodVersionKw + const UopCheckPep523 + const UopCheckPeriodic + const UopCheckPeriodicIfNotYieldFrom + const UopCheckRecursionRemaining + const UopCheckStackSpace + const UopCheckStackSpaceOperand + const UopCheckValidity + const UopCompareOp + const UopCompareOpFloat + const UopCompareOpInt + const UopCompareOpStr + const UopContainsOp + const UopContainsOpDict + const UopContainsOpSet + const UopConvertValue + const UopCopy + const UopCopyFreeVars + const UopCreateInitFrame + const UopDeleteAttr + const UopDeleteDeref + const UopDeleteFast + const UopDeleteGlobal + const UopDeleteName + const UopDeleteSubscr + const UopDeopt + const UopDictMerge + const UopDictUpdate + const UopDoCall + const UopDoCallFunctionEx + const UopDoCallKw + const UopEndFor + const UopEndSend + const UopErrorPopN + const UopExitInitCheck + const UopExitTrace + const UopExpandMethod + const UopExpandMethodKw + const UopFatalError + const UopForIter + const UopForIterGenFrame + const UopForIterTierTwo + const UopFormatSimple + const UopFormatWithSpec + const UopGetAiter + const UopGetAnext + const UopGetAwaitable + const UopGetIter + const UopGetLen + const UopGetYieldFromIter + const UopGuardBinaryOpExtend + const UopGuardCallableLen + const UopGuardCallableStr1 + const UopGuardCallableTuple1 + const UopGuardCallableType1 + const UopGuardDorvNoDict + const UopGuardDorvValuesInstAttrFromDict + const UopGuardGlobalsVersion + const UopGuardIsFalsePop + const UopGuardIsNonePop + const UopGuardIsNotNonePop + const UopGuardIsTruePop + const UopGuardKeysVersion + const UopGuardNosDict + const UopGuardNosFloat + const UopGuardNosInt + const UopGuardNosList + const UopGuardNosNull + const UopGuardNosTuple + const UopGuardNosUnicode + const UopGuardNotExhaustedList + const UopGuardNotExhaustedRange + const UopGuardNotExhaustedTuple + const UopGuardTosAnySet + const UopGuardTosDict + const UopGuardTosFloat + const UopGuardTosInt + const UopGuardTosList + const UopGuardTosSlice + const UopGuardTosTuple + const UopGuardTosUnicode + const UopGuardTypeVersion + const UopGuardTypeVersionAndLock + const UopImportFrom + const UopImportName + const UopInitCallBoundMethodExactArgs + const UopInitCallPyExactArgs + const UopInitCallPyExactArgs0 + const UopInitCallPyExactArgs1 + const UopInitCallPyExactArgs2 + const UopInitCallPyExactArgs3 + const UopInitCallPyExactArgs4 + const UopInsertNull + const UopInstrumentedForIter + const UopInstrumentedInstruction + const UopInstrumentedJumpForward + const UopInstrumentedLine + const UopInstrumentedNotTaken + const UopInstrumentedPopJumpIfFalse + const UopInstrumentedPopJumpIfNone + const UopInstrumentedPopJumpIfNotNone + const UopInstrumentedPopJumpIfTrue + const UopIsNone + const UopIsOp + const UopIterCheckList + const UopIterCheckRange + const UopIterCheckTuple + const UopIterJumpList + const UopIterJumpRange + const UopIterJumpTuple + const UopIterNextList + const UopIterNextListTierTwo + const UopIterNextRange + const UopIterNextTuple + const UopJumpToTop + const UopListAppend + const UopListExtend + const UopLoadAttr + const UopLoadAttrClass + const UopLoadAttrGetattributeOverridden + const UopLoadAttrInstanceValue + const UopLoadAttrMethodLazyDict + const UopLoadAttrMethodNoDict + const UopLoadAttrMethodWithValues + const UopLoadAttrModule + const UopLoadAttrNondescriptorNoDict + const UopLoadAttrNondescriptorWithValues + const UopLoadAttrPropertyFrame + const UopLoadAttrSlot + const UopLoadAttrWithHint + const UopLoadBuildClass + const UopLoadBytecode + const UopLoadCommonConstant + const UopLoadConst + const UopLoadConstImmortal + const UopLoadConstInline + const UopLoadConstInlineBorrow + const UopLoadConstMortal + const UopLoadDeref + const UopLoadFast + const UopLoadFast0 + const UopLoadFast1 + const UopLoadFast2 + const UopLoadFast3 + const UopLoadFast4 + const UopLoadFast5 + const UopLoadFast6 + const UopLoadFast7 + const UopLoadFastAndClear + const UopLoadFastBorrow + const UopLoadFastBorrow0 + const UopLoadFastBorrow1 + const UopLoadFastBorrow2 + const UopLoadFastBorrow3 + const UopLoadFastBorrow4 + const UopLoadFastBorrow5 + const UopLoadFastBorrow6 + const UopLoadFastBorrow7 + const UopLoadFastBorrowLoadFastBorrow + const UopLoadFastCheck + const UopLoadFastLoadFast + const UopLoadFromDictOrDeref + const UopLoadFromDictOrGlobals + const UopLoadGlobal + const UopLoadGlobalBuiltins + const UopLoadGlobalModule + const UopLoadLocals + const UopLoadName + const UopLoadSmallInt + const UopLoadSmallInt0 + const UopLoadSmallInt1 + const UopLoadSmallInt2 + const UopLoadSmallInt3 + const UopLoadSpecial + const UopLoadSuperAttrAttr + const UopLoadSuperAttrMethod + const UopMakeCallargsATuple + const UopMakeCell + const UopMakeFunction + const UopMakeWarm + const UopMapAdd + const UopMatchClass + const UopMatchKeys + const UopMatchMapping + const UopMatchSequence + const UopMaybeExpandMethod + const UopMaybeExpandMethodKw + const UopMonitorCall + const UopMonitorCallKw + const UopMonitorJumpBackward + const UopMonitorResume + const UopNop + const UopPopExcept + const UopPopJumpIfFalse + const UopPopJumpIfTrue + const UopPopTop + const UopPopTopLoadConstInline + const UopPopTopLoadConstInlineBorrow + const UopPopTwoLoadConstInlineBorrow + const UopPushExcInfo + const UopPushFrame + const UopPushNull + const UopPushNullConditional + const UopPyFrameGeneral + const UopPyFrameKw + const UopQuickenResume + const UopReplaceWithTrue + const UopResumeCheck + const UopReturnGenerator + const UopReturnValue + const UopSaveReturnOffset + const UopSend + const UopSendGenFrame + const UopSetAdd + const UopSetFunctionAttribute + const UopSetIp + const UopSetUpdate + const UopSetupAnnotations + const UopStartExecutor + const UopStoreAttr + const UopStoreAttrInstanceValue + const UopStoreAttrSlot + const UopStoreAttrWithHint + const UopStoreDeref + const UopStoreFast + const UopStoreFast0 + const UopStoreFast1 + const UopStoreFast2 + const UopStoreFast3 + const UopStoreFast4 + const UopStoreFast5 + const UopStoreFast6 + const UopStoreFast7 + const UopStoreFastLoadFast + const UopStoreFastStoreFast + const UopStoreGlobal + const UopStoreName + const UopStoreSlice + const UopStoreSubscr + const UopStoreSubscrDict + const UopStoreSubscrListInt + const UopSwap + const UopTier2ResumeCheck + const UopToBool + const UopToBoolBool + const UopToBoolInt + const UopToBoolList + const UopToBoolNone + const UopToBoolStr + const UopUnaryInvert + const UopUnaryNegative + const UopUnaryNot + const UopUnpackEx + const UopUnpackSequence + const UopUnpackSequenceList + const UopUnpackSequenceTuple + const UopUnpackSequenceTwoTuple + const UopWithExceptStart + const UopYieldValue + var ExecutorType = objects.NewType("uop_executor", []*objects.Type{ ... }) + var UopMeta = map[string]UopMetaEntry + var UopNames = map[uint16]string + func AbstractContextFini(ctx *JitOptContext) + func AbstractContextInit(ctx *JitOptContext) + func AddToPendingDeletionList(interp *state.Interpreter, self *Executor) + func Analyze(interp *state.Interpreter, frame objects.InterpreterFrame, co *objects.Code, ...) int + func ClearExecutorDeletionList(interp *state.Interpreter) + func CodeClearExecutors(code *objects.Code) + func DictAddWatcher(interp *state.Interpreter, cb DictWatchCallback) int + func DictClearWatcher(interp *state.Interpreter, id int) + func DictUnwatch(interp *state.Interpreter, id int, dict unsafe.Pointer) + func DictWatch(interp *state.Interpreter, id int, dict unsafe.Pointer) + func DisassembleRuntime(co *objects.Code) string + func DispatchDictMutation(interp *state.Interpreter, event DictWatchEvent, ...) + func DispatchTypeMutation(interp *state.Interpreter, typ unsafe.Pointer) + func ExecutorClear(interp *state.Interpreter, executor *Executor) + func ExecutorDependsOn(executor *Executor, obj unsafe.Pointer) + func ExecutorInit(interp *state.Interpreter, executor *Executor, dependencies *BloomFilter) + func ExecutorsInvalidateAll(interp *state.Interpreter, isInvalidation bool) + func ExecutorsInvalidateCold(interp *state.Interpreter) + func ExecutorsInvalidateDependency(interp *state.Interpreter, obj unsafe.Pointer, isInvalidation bool) + func FramePop(ctx *JitOptContext) + func FreeExecutor(executor *Executor) + func PrintUOp(u *UOPInstruction) string + func SymGetConst(ctx *JitOptContext, sym *JitOptSymbol) objects.Object + func SymGetType(sym *JitOptSymbol) *objects.Type + func SymGetTypeVersion(sym *JitOptSymbol) uint32 + func SymHasType(sym *JitOptSymbol) bool + func SymIsBottom(sym *JitOptSymbol) bool + func SymIsConst(ctx *JitOptContext, sym *JitOptSymbol) bool + func SymIsImmortal(sym *JitOptSymbol) bool + func SymIsNotNull(sym *JitOptSymbol) bool + func SymIsNull(sym *JitOptSymbol) bool + func SymMatchesType(sym *JitOptSymbol, typ *objects.Type) bool + func SymMatchesTypeVersion(sym *JitOptSymbol, version uint32) bool + func SymSetConst(ctx *JitOptContext, sym *JitOptSymbol, constVal objects.Object) + func SymSetNonNull(ctx *JitOptContext, sym *JitOptSymbol) + func SymSetNull(ctx *JitOptContext, sym *JitOptSymbol) + func SymSetType(ctx *JitOptContext, sym *JitOptSymbol, typ *objects.Type) + func SymSetTypeVersion(ctx *JitOptContext, sym *JitOptSymbol, version uint32) bool + func SymTruthiness(ctx *JitOptContext, sym *JitOptSymbol) int + func SymTupleLength(sym *JitOptSymbol) int + func TranslateBytecodeToTrace(code *objects.Code, instr int, trace []UOPInstruction, bufferSize int, ...) int + func TypeAddWatcher(interp *state.Interpreter, cb TypeWatchCallback) int + func TypeClearWatcher(interp *state.Interpreter, id int) + func TypeUnwatch(interp *state.Interpreter, id int, typ unsafe.Pointer) + func TypeWatch(interp *state.Interpreter, id int, typ unsafe.Pointer) + func UOpName(id uint16) string + func WatcherInit(interp *state.Interpreter) + type AbstractFrame struct + Locals int + LocalsLen int + Stack int + StackLen int + StackPointer int + func FrameNew(ctx *JitOptContext, co *objects.Code, currStackEntries int, ...) *AbstractFrame + type BackoffCounter struct + ValueAndBackoff uint16 + type BloomFilter struct + Bits [BloomFilterWords]uint32 + func (b *BloomFilter) Add(ptr unsafe.Pointer) + func (b *BloomFilter) Init() + func (b *BloomFilter) MayContain(hashes *BloomFilter) bool + type DictWatchCallback func(event DictWatchEvent, dict unsafe.Pointer, key unsafe.Pointer, ...) int + type DictWatchEvent int + const DictEventAdded + const DictEventCleared + const DictEventCloned + const DictEventDeallocated + const DictEventDeleted + const DictEventModified + type Executor struct + CodeSize uint32 + ExitCount uint32 + Exits []ExitData + Trace []UOPInstruction + VMData VMData + func AllocateExecutor(exitCount, length int) *Executor + func GetExecutor(code *objects.Code, offset int) (*Executor, error) + func Optimize(interp *state.Interpreter, frame objects.InterpreterFrame, code *objects.Code, ...) (*Executor, int) + func (e *Executor) GetOparg() uint8 + func (e *Executor) GetOpcode() uint8 + func (e *Executor) IsValid() bool + type ExecutorArray struct + Capacity int + Entries []*Executor + Size int + type ExecutorLinkListNode struct + Next *Executor + Prev *Executor + type ExitData struct + Executor *Executor + Target uint32 + Temperature BackoffCounter + type InterpState struct + ExecutorDeletionListHead *Executor + ExecutorListHead *Executor + RemainingCapacity int + type JitOptContext struct + Contradiction bool + CurrFrameDepth int + Done bool + Frame *AbstractFrame + Frames [MaxAbstractFrameDepth]AbstractFrame + Limit int + LocalsAndStack [MaxAbstractInterpSize]*JitOptSymbol + NConsumed int + OutOfSpace bool + TArena TyArena + type JitOptKnownClass struct + Tag uint8 + Type *objects.Type + Version uint32 + type JitOptKnownValue struct + Tag uint8 + Value objects.Object + type JitOptKnownVersion struct + Tag uint8 + Version uint32 + type JitOptSymbol struct + Class JitOptKnownClass + Tag uint8 + Truthiness JitOptTruthiness + Tuple JitOptTuple + Value JitOptKnownValue + Version JitOptKnownVersion + func SymNewConst(ctx *JitOptContext, constVal objects.Object) *JitOptSymbol + func SymNewNotNull(ctx *JitOptContext) *JitOptSymbol + func SymNewNull(ctx *JitOptContext) *JitOptSymbol + func SymNewTruthiness(ctx *JitOptContext, value *JitOptSymbol, truthy bool) *JitOptSymbol + func SymNewTuple(ctx *JitOptContext, size int, args []*JitOptSymbol) *JitOptSymbol + func SymNewType(ctx *JitOptContext, typ *objects.Type) *JitOptSymbol + func SymNewUnknown(ctx *JitOptContext) *JitOptSymbol + func SymTupleGetitem(ctx *JitOptContext, sym *JitOptSymbol, item int) *JitOptSymbol + type JitOptTruthiness struct + Invert bool + Tag uint8 + Value uint16 + type JitOptTuple struct + Items [MaxSymbolicTupleSize]uint16 + Length uint8 + Tag uint8 + type JitSymType uint8 + const JitSymBottom + const JitSymKnownClass + const JitSymKnownValue + const JitSymNonNull + const JitSymNull + const JitSymTruthiness + const JitSymTuple + const JitSymTypeVersion + const JitSymUnknown + type MacroOparg uint8 + const OpargBottom + const OpargCache1 + const OpargCache2 + const OpargCache4 + const OpargReplaced + const OpargSaveReturnOffset + const OpargSimple + const OpargTop + const Operand1_1 + const Operand1_2 + const Operand1_4 + type MacroUop struct + Offset uint8 + Size MacroOparg + Uop uint16 + type Tier2State struct + Executor *Executor + Frame *frame.Frame + Interp *state.Interpreter + NextUop int + Oparg uint32 + Thread *state.Thread + func (s *Tier2State) Run() Tier2Status + type Tier2Status int + const StatusContinue + const StatusDeopt + const StatusError + const StatusExit + func RunExecutor(thread *state.Thread, fr *frame.Frame, exec *Executor) Tier2Status + type TyArena struct + Arena [TyArenaSize]JitOptSymbol + CurrNumber int + MaxNumber int + type TypeWatchCallback func(typ unsafe.Pointer) int + type UOPInstruction struct + Oparg uint16 + OpcodeAndFormat uint16 + Operand0 uint64 + Operand1 uint64 + Target uint32 + func (u *UOPInstruction) Format() uint16 + func (u *UOPInstruction) GetErrorTarget() uint16 + func (u *UOPInstruction) GetJumpTarget() uint16 + func (u *UOPInstruction) GetTarget() uint32 + func (u *UOPInstruction) IsTerminator() bool + func (u *UOPInstruction) Opcode() uint16 + func (u *UOPInstruction) SetFormat(fmt uint16) + func (u *UOPInstruction) SetOpcode(op uint16) + type UopFlag uint16 + const FlagArg + const FlagConst + const FlagDeopt + const FlagError + const FlagErrorNoPop + const FlagEscapes + const FlagEvalBreak + const FlagExit + const FlagFree + const FlagJump + const FlagLocal + const FlagName + const FlagNoSaveIp + const FlagOpargAnd1 + const FlagPassthrough + const FlagPure + type UopMetaEntry struct + Flags UopFlag + Popped int8 + Replication uint8 + type VMData struct + Bloom BloomFilter + ChainDepth uint8 + Code *objects.Code + Index int + Linked bool + Links ExecutorLinkListNode + Oparg uint8 + Opcode uint8 + Valid bool + Warm bool + type WatcherTable struct