From 13e84e0752e3fe1299dc893913ccbba871e9106a Mon Sep 17 00:00:00 2001 From: Billy Moses Date: Mon, 16 Dec 2024 16:46:32 -0600 Subject: [PATCH] Add cachedmethodtable lookup --- src/utils.jl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/utils.jl b/src/utils.jl index aa94e766f8..9ebfdf72d6 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -212,6 +212,17 @@ end return res end +@inline function lookup_world( + @nospecialize(sig::Type), + world::UInt, + mt::Core.Compiler.CachedMethodTable, + min_world::Ref{UInt}, + max_world::Ref{UInt}, +) + res = lookup_world(sig, mt.world, mt.table, min_world, max_world) + return res +end + @inline function lookup_world( @nospecialize(sig::Type), world::UInt,