Skip to content

Commit

Permalink
Add cachedmethodtable lookup (#2204)
Browse files Browse the repository at this point in the history
* Add cachedmethodtable lookup

* fix
  • Loading branch information
wsmoses authored Dec 17, 2024
1 parent 1c20de3 commit 74227eb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 74227eb

Please sign in to comment.