From 74227eb409220ba79c402a1cbe495f2c91f40e36 Mon Sep 17 00:00:00 2001 From: William Moses Date: Mon, 16 Dec 2024 18:01:54 -0600 Subject: [PATCH] Add cachedmethodtable lookup (#2204) * Add cachedmethodtable lookup * fix --- src/utils.jl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/utils.jl b/src/utils.jl index aa94e766f8..a82ccc93c0 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, world, mt.table, min_world, max_world) + return res +end + @inline function lookup_world( @nospecialize(sig::Type), world::UInt,