@@ -38,13 +38,13 @@ public abstract class LookupSuperMethodNode extends RubyBaseNode {
38
38
guards = {
39
39
"isSingleContext()" ,
40
40
"getCurrentMethod(frame) == currentMethod" ,
41
- "metaClass( metaClassNode, self) == selfMetaClass" },
41
+ "metaClassNode.execute(this , self) == selfMetaClass" },
42
42
assumptions = "superMethod.getAssumptions()" ,
43
43
limit = "getCacheLimit()" )
44
44
protected InternalMethod lookupSuperMethodCached (VirtualFrame frame , Object self ,
45
45
@ Cached ("getCurrentMethod(frame)" ) InternalMethod currentMethod ,
46
46
@ Cached @ Shared MetaClassNode metaClassNode ,
47
- @ Cached ("metaClass( metaClassNode, self)" ) RubyClass selfMetaClass ,
47
+ @ Cached ("metaClassNode.execute(this , self)" ) RubyClass selfMetaClass ,
48
48
@ Cached ("doLookup(currentMethod, selfMetaClass)" ) MethodLookupResult superMethod ) {
49
49
return superMethod .getMethod ();
50
50
}
@@ -53,17 +53,14 @@ protected InternalMethod lookupSuperMethodCached(VirtualFrame frame, Object self
53
53
protected InternalMethod lookupSuperMethodUncached (VirtualFrame frame , Object self ,
54
54
@ Cached @ Shared MetaClassNode metaClassNode ) {
55
55
final InternalMethod currentMethod = getCurrentMethod (frame );
56
- final RubyClass selfMetaClass = metaClass ( metaClassNode , self );
56
+ final RubyClass selfMetaClass = metaClassNode . execute ( this , self );
57
57
return doLookup (currentMethod , selfMetaClass ).getMethod ();
58
58
}
59
59
60
60
protected InternalMethod getCurrentMethod (VirtualFrame frame ) {
61
61
return RubyArguments .getMethod (frame );
62
62
}
63
63
64
- protected RubyClass metaClass (MetaClassNode metaClassNode , Object object ) {
65
- return metaClassNode .execute (this , object );
66
- }
67
64
68
65
@ TruffleBoundary
69
66
protected MethodLookupResult doLookup (InternalMethod currentMethod , RubyClass selfMetaClass ) {
0 commit comments