Skip to content

Commit d64de22

Browse files
committed
Inline dispatchInternal
1 parent ecbd7c5 commit d64de22

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

src/main/java/org/truffleruby/language/dispatch/DispatchNode.java

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -283,34 +283,19 @@ protected Object dispatch(
283283
LiteralCallNode literalCallNode,
284284
@Cached(value = "getSpecialVariableAssumption(frame)",
285285
uncached = "ALWAYS_VALID") Assumption specialVariableAssumption,
286-
@Cached MetaClassNode metaclassNode,
287-
@Cached LookupMethodNode methodLookup,
286+
@Cached MetaClassNode metaClassNode,
287+
@Cached LookupMethodNode lookupMethodNode,
288288
@Cached InlinedConditionProfile methodMissing,
289289
@Cached CallInternalMethodNode callNode,
290290
@Cached GetSpecialVariableStorage readingNode,
291291
@Cached LazyDispatchMethodMissingNode lazyDispatchMethodMissingNode) {
292-
return dispatchInternal(frame, receiver, methodName, rubyArgs, config, literalCallNode,
293-
metaclassNode, methodLookup, methodMissing, callNode, readingNode, specialVariableAssumption,
294-
lazyDispatchMethodMissingNode);
295-
}
296-
297-
protected final Object dispatchInternal(Frame frame, Object receiver, String methodName, Object[] rubyArgs,
298-
DispatchConfiguration config,
299-
LiteralCallNode literalCallNode,
300-
MetaClassNode metaClassNode,
301-
LookupMethodNode lookupMethodNode,
302-
InlinedConditionProfile methodMissingProfile,
303-
CallInternalMethodNode callNode,
304-
GetSpecialVariableStorage readingNode,
305-
Assumption specialVariableAssumption,
306-
LazyDispatchMethodMissingNode lazyDispatchMethodMissingNode) {
307292
assert RubyArguments.getSelf(rubyArgs) == receiver;
308293
CompilerAsserts.partialEvaluationConstant(config);
309294

310295
final RubyClass metaclass = metaClassNode.execute(this, receiver);
311296
final InternalMethod method = lookupMethodNode.execute(frame, metaclass, methodName, config);
312297

313-
if (methodMissingProfile.profile(this, method == null || method.isUndefined())) {
298+
if (methodMissing.profile(this, method == null || method.isUndefined())) {
314299
return lazyDispatchMethodMissingNode.get(this).execute(frame, receiver, methodName, rubyArgs, config,
315300
literalCallNode);
316301
}

0 commit comments

Comments
 (0)