@@ -394,7 +394,8 @@ protected Object appendFeatures(RubyModule features, RubyModule target,
394
394
public abstract static class GeneratedReaderNode extends AlwaysInlinedMethodNode {
395
395
396
396
@ Specialization (limit = "getCacheLimit()" )
397
- protected Object reader (Frame frame , RubyDynamicObject self , Object [] args , Object block , RootCallTarget target ,
397
+ protected Object reader (
398
+ Frame callerFrame , RubyDynamicObject self , Object [] args , Object block , RootCallTarget target ,
398
399
@ CachedLibrary ("self" ) DynamicObjectLibrary objectLibrary ) {
399
400
// Or a subclass of RubyRootNode with an extra field?
400
401
final String ivarName = RubyRootNode .of (target ).getSharedMethodInfo ().getNotes ();
@@ -404,7 +405,7 @@ protected Object reader(Frame frame, RubyDynamicObject self, Object[] args, Obje
404
405
}
405
406
406
407
@ Specialization (guards = "!isRubyDynamicObject(self)" )
407
- protected Object notObject (Frame frame , Object self , Object [] args , Object block , RootCallTarget target ) {
408
+ protected Object notObject (Frame callerFrame , Object self , Object [] args , Object block , RootCallTarget target ) {
408
409
return nil ;
409
410
}
410
411
@@ -417,7 +418,8 @@ protected int getCacheLimit() {
417
418
public abstract static class GeneratedWriterNode extends AlwaysInlinedMethodNode {
418
419
419
420
@ Specialization (guards = "!rubyLibrary.isFrozen(self)" )
420
- protected Object writer (Frame frame , RubyDynamicObject self , Object [] args , Object block , RootCallTarget target ,
421
+ protected Object writer (
422
+ Frame callerFrame , RubyDynamicObject self , Object [] args , Object block , RootCallTarget target ,
421
423
@ CachedLibrary (limit = "getRubyLibraryCacheLimit()" ) RubyLibrary rubyLibrary ,
422
424
@ Cached WriteObjectFieldNode writeObjectFieldNode ) {
423
425
final String ivarName = RubyRootNode .of (target ).getSharedMethodInfo ().getNotes ();
@@ -429,7 +431,7 @@ protected Object writer(Frame frame, RubyDynamicObject self, Object[] args, Obje
429
431
}
430
432
431
433
@ Specialization (guards = "rubyLibrary.isFrozen(self)" )
432
- protected Object frozen (Frame frame , Object self , Object [] args , Object block , RootCallTarget target ,
434
+ protected Object frozen (Frame callerFrame , Object self , Object [] args , Object block , RootCallTarget target ,
433
435
@ CachedLibrary (limit = "getRubyLibraryCacheLimit()" ) RubyLibrary rubyLibrary ,
434
436
@ CachedContext (RubyLanguage .class ) RubyContext context ) {
435
437
throw new RaiseException (context , context .getCoreExceptions ().frozenError (self , this ));
0 commit comments