Skip to content

Commit dc0023e

Browse files
committed
MetaClassNode#executeUncached is static
1 parent ba33c30 commit dc0023e

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

src/main/java/org/truffleruby/core/basicobject/BasicObjectNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ private Visibility lastCallWasCallingPrivateOrProtectedMethod(Object self, Strin
624624
FrameAndCallNode callerFrame) {
625625
final DeclarationContext declarationContext = RubyArguments.tryGetDeclarationContext(callerFrame.frame);
626626
final InternalMethod method = ModuleOperations
627-
.lookupMethodUncached(MetaClassNode.getUncached().executeUncached(self), name, declarationContext);
627+
.lookupMethodUncached(MetaClassNode.executeUncached(self), name, declarationContext);
628628
if (method != null && !method.isUndefined()) {
629629
assert method.getVisibility() == Visibility.PRIVATE || method.getVisibility() == Visibility.PROTECTED;
630630
return method.getVisibility();

src/main/java/org/truffleruby/language/methods/GetMethodObjectNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private InternalMethod createMissingMethod(Object self, RubySymbol name, String
106106
ReturnID.INVALID);
107107
final RootCallTarget newCallTarget = newRootNode.getCallTarget();
108108

109-
final RubyClass module = MetaClassNode.getUncached().executeUncached(self);
109+
final RubyClass module = MetaClassNode.executeUncached(self);
110110
return new InternalMethod(
111111
getContext(),
112112
info,

src/main/java/org/truffleruby/language/methods/LookupMethodNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ private static RubyClass getCallerClass(RubyContext context, Frame callingFrame)
177177
if (callerMethod == null) {
178178
return context.getCoreLibrary().objectClass;
179179
} else {
180-
return MetaClassNode.getUncached().executeUncached(RubyArguments.getSelf(callingFrame));
180+
return MetaClassNode.executeUncached(RubyArguments.getSelf(callingFrame));
181181
}
182182
}
183183

src/main/java/org/truffleruby/language/objects/MetaClassNode.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,14 @@ public static MetaClassNode create() {
3131
return MetaClassNodeGen.create();
3232
}
3333

34-
public static MetaClassNode getUncached() {
35-
return MetaClassNodeGen.getUncached();
34+
public static RubyClass executeUncached(Object value) {
35+
return MetaClassNodeGen.getUncached().execute(null, value);
3636
}
3737

3838
public final RubyClass executeCached(Object value) {
3939
return execute(this, value);
4040
}
4141

42-
public final RubyClass executeUncached(Object value) {
43-
return execute(null, value);
44-
}
45-
4642
public abstract RubyClass execute(Node node, Object value);
4743

4844
@Specialization(

0 commit comments

Comments
 (0)