diff --git a/src/main/java/org/truffleruby/language/methods/LookupMethodNode.java b/src/main/java/org/truffleruby/language/methods/LookupMethodNode.java index fa44c83efaba..515ae99a9a08 100644 --- a/src/main/java/org/truffleruby/language/methods/LookupMethodNode.java +++ b/src/main/java/org/truffleruby/language/methods/LookupMethodNode.java @@ -32,7 +32,6 @@ import com.oracle.truffle.api.frame.Frame; /** Caches {@link ModuleOperations#lookupMethodCached(RubyModule, String, DeclarationContext)} on an actual instance. */ -@ReportPolymorphism // inline cache @GenerateUncached public abstract class LookupMethodNode extends RubyBaseNode { @@ -61,6 +60,7 @@ InternalMethod lookupMethodCached(Frame frame, RubyClass metaClass, String name, return methodLookupResult.getMethod(); } + @ReportPolymorphism.Megamorphic @InliningCutoff @Specialization(replaces = "lookupMethodCached") InternalMethod lookupMethodUncached(Frame frame, RubyClass metaClass, String name, DispatchConfiguration config,