@@ -283,34 +283,19 @@ protected Object dispatch(
283
283
LiteralCallNode literalCallNode ,
284
284
@ Cached (value = "getSpecialVariableAssumption(frame)" ,
285
285
uncached = "ALWAYS_VALID" ) Assumption specialVariableAssumption ,
286
- @ Cached MetaClassNode metaclassNode ,
287
- @ Cached LookupMethodNode methodLookup ,
286
+ @ Cached MetaClassNode metaClassNode ,
287
+ @ Cached LookupMethodNode lookupMethodNode ,
288
288
@ Cached InlinedConditionProfile methodMissing ,
289
289
@ Cached CallInternalMethodNode callNode ,
290
290
@ Cached GetSpecialVariableStorage readingNode ,
291
291
@ 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 ) {
307
292
assert RubyArguments .getSelf (rubyArgs ) == receiver ;
308
293
CompilerAsserts .partialEvaluationConstant (config );
309
294
310
295
final RubyClass metaclass = metaClassNode .execute (this , receiver );
311
296
final InternalMethod method = lookupMethodNode .execute (frame , metaclass , methodName , config );
312
297
313
- if (methodMissingProfile .profile (this , method == null || method .isUndefined ())) {
298
+ if (methodMissing .profile (this , method == null || method .isUndefined ())) {
314
299
return lazyDispatchMethodMissingNode .get (this ).execute (frame , receiver , methodName , rubyArgs , config ,
315
300
literalCallNode );
316
301
}
0 commit comments