Skip to content

Commit

Permalink
[GR-53439] Report megamorphic on LookupMethodNode node
Browse files Browse the repository at this point in the history
PullRequest: truffleruby/4263
  • Loading branch information
andrykonchin authored and eregon committed Jul 31, 2024
2 parents b4c767b + cbe6196 commit 6034429
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 6034429

Please sign in to comment.