@@ -226,26 +226,16 @@ public static GetSpecialVariableStorage create() {
226
226
protected SpecialVariableStorage getFromKnownFrameDescriptor (Frame frame ,
227
227
@ Cached ("frame.getFrameDescriptor()" ) FrameDescriptor descriptor ,
228
228
@ Cached ("declarationDepth(frame)" ) int declarationFrameDepth ) {
229
- Object variables ;
230
- if (declarationFrameDepth == 0 ) {
231
- variables = SpecialVariableStorage .get (frame );
232
- if (variables == nil ) {
233
- CompilerDirectives .transferToInterpreterAndInvalidate ();
234
- variables = initializeSpecialVariablesSlot (frame );
235
- }
236
- } else {
237
- Frame storageFrame = RubyArguments .getDeclarationFrame (frame , declarationFrameDepth );
238
-
239
- if (storageFrame == null ) {
240
- CompilerDirectives .transferToInterpreterAndInvalidate ();
241
- noStorageFrameError (frame , declarationFrameDepth );
242
- }
243
-
244
- variables = SpecialVariableStorage .get (storageFrame );
245
- if (variables == nil ) {
246
- CompilerDirectives .transferToInterpreterAndInvalidate ();
247
- variables = initializeSpecialVariablesSlot (storageFrame );
248
- }
229
+ Frame storageFrame = RubyArguments .getDeclarationFrame (frame , declarationFrameDepth );
230
+ if (storageFrame == null ) {
231
+ CompilerDirectives .transferToInterpreterAndInvalidate ();
232
+ noStorageFrameError (frame , declarationFrameDepth );
233
+ }
234
+
235
+ Object variables = SpecialVariableStorage .get (storageFrame );
236
+ if (variables == nil ) {
237
+ CompilerDirectives .transferToInterpreterAndInvalidate ();
238
+ variables = initializeSpecialVariablesSlot (storageFrame );
249
239
}
250
240
return (SpecialVariableStorage ) variables ;
251
241
}
0 commit comments