@@ -565,7 +565,7 @@ public abstract static class AttrNode extends GenerateAccessorNode {
565
565
@ Specialization
566
566
protected Object attr (Frame callerFrame , RubyModule module , Object [] rubyArgs , RootCallTarget target ) {
567
567
final boolean setter ;
568
- Object [] names = RubyArguments .getPositionalArguments (rubyArgs , false );
568
+ Object [] names = RubyArguments .getPositionalArguments (rubyArgs );
569
569
if (names .length == 2 && names [1 ] instanceof Boolean ) {
570
570
warnObsoletedBooleanArgument ();
571
571
setter = (boolean ) names [1 ];
@@ -592,7 +592,7 @@ private void warnObsoletedBooleanArgument() {
592
592
public abstract static class AttrAccessorNode extends GenerateAccessorNode {
593
593
@ Specialization
594
594
protected Object attrAccessor (Frame callerFrame , RubyModule module , Object [] rubyArgs , RootCallTarget target ) {
595
- Object [] names = RubyArguments .getPositionalArguments (rubyArgs , false );
595
+ Object [] names = RubyArguments .getPositionalArguments (rubyArgs );
596
596
return createArray (generateAccessors (callerFrame , module , names , BOTH , target ));
597
597
}
598
598
}
@@ -602,7 +602,7 @@ protected Object attrAccessor(Frame callerFrame, RubyModule module, Object[] rub
602
602
public abstract static class AttrReaderNode extends GenerateAccessorNode {
603
603
@ Specialization
604
604
protected Object attrReader (Frame callerFrame , RubyModule module , Object [] rubyArgs , RootCallTarget target ) {
605
- Object [] names = RubyArguments .getPositionalArguments (rubyArgs , false );
605
+ Object [] names = RubyArguments .getPositionalArguments (rubyArgs );
606
606
return createArray (generateAccessors (callerFrame , module , names , READER , target ));
607
607
}
608
608
}
@@ -612,7 +612,7 @@ protected Object attrReader(Frame callerFrame, RubyModule module, Object[] rubyA
612
612
public abstract static class AttrWriterNode extends GenerateAccessorNode {
613
613
@ Specialization
614
614
protected Object attrWriter (Frame callerFrame , RubyModule module , Object [] rubyArgs , RootCallTarget target ) {
615
- Object [] names = RubyArguments .getPositionalArguments (rubyArgs , false );
615
+ Object [] names = RubyArguments .getPositionalArguments (rubyArgs );
616
616
return createArray (generateAccessors (callerFrame , module , names , WRITER , target ));
617
617
}
618
618
}
@@ -711,7 +711,7 @@ public abstract static class ClassEvalNode extends AlwaysInlinedMethodNode {
711
711
protected Object evalWithBlock (Frame callerFrame , RubyModule self , Object [] rubyArgs , RootCallTarget target ,
712
712
@ Cached @ Exclusive BranchProfile wrongNumberOfArgumentsProfile ,
713
713
@ Cached ClassExecBlockNode classExecNode ) {
714
- final int count = RubyArguments .getPositionalArgumentsCount (rubyArgs , false );
714
+ final int count = RubyArguments .getPositionalArgumentsCount (rubyArgs );
715
715
716
716
if (count > 0 ) {
717
717
wrongNumberOfArgumentsProfile .enter ();
@@ -734,7 +734,7 @@ protected Object evalWithString(Frame callerFrame, RubyModule self, Object[] rub
734
734
String fileName = coreStrings ().EVAL_FILENAME_STRING .toString ();
735
735
int line = 1 ;
736
736
737
- int count = RubyArguments .getPositionalArgumentsCount (rubyArgs , false );
737
+ int count = RubyArguments .getPositionalArgumentsCount (rubyArgs );
738
738
739
739
if (count == 0 ) {
740
740
wrongNumberOfArgumentsProfile .enter ();
@@ -1518,7 +1518,7 @@ private RubySymbol addInternalMethod(RubyModule module, String name, InternalMet
1518
1518
}
1519
1519
1520
1520
protected boolean isMethodParameterProvided (Object [] rubyArgs ) {
1521
- final int count = RubyArguments .getPositionalArgumentsCount (rubyArgs , false );
1521
+ final int count = RubyArguments .getPositionalArgumentsCount (rubyArgs );
1522
1522
return count >= 2 ;
1523
1523
}
1524
1524
@@ -1697,7 +1697,7 @@ protected boolean isMethodDefined(RubyModule module, String name, boolean inheri
1697
1697
public abstract static class ModuleFunctionNode extends AlwaysInlinedMethodNode {
1698
1698
@ Specialization (guards = "names.length == 0" )
1699
1699
protected Object frame (Frame callerFrame , RubyModule module , Object [] rubyArgs , RootCallTarget target ,
1700
- @ Bind ("getPositionalArguments(rubyArgs, false )" ) Object [] names ,
1700
+ @ Bind ("getPositionalArguments(rubyArgs)" ) Object [] names ,
1701
1701
@ Cached @ Shared BranchProfile errorProfile ) {
1702
1702
checkNotClass (module , errorProfile );
1703
1703
needCallerFrame (callerFrame , "Module#module_function with no arguments" );
@@ -1707,7 +1707,7 @@ protected Object frame(Frame callerFrame, RubyModule module, Object[] rubyArgs,
1707
1707
1708
1708
@ Specialization (guards = "names.length > 0" )
1709
1709
protected Object methods (Frame callerFrame , RubyModule module , Object [] rubyArgs , RootCallTarget target ,
1710
- @ Bind ("getPositionalArguments(rubyArgs, false )" ) Object [] names ,
1710
+ @ Bind ("getPositionalArguments(rubyArgs)" ) Object [] names ,
1711
1711
@ Cached SetMethodVisibilityNode setMethodVisibilityNode ,
1712
1712
@ Cached @ Shared BranchProfile errorProfile ,
1713
1713
@ Cached LoopConditionProfile loopProfile ,
@@ -1785,15 +1785,15 @@ protected RubyArray nesting() {
1785
1785
public abstract static class PublicNode extends AlwaysInlinedMethodNode {
1786
1786
@ Specialization (guards = "names.length == 0" )
1787
1787
protected Object frame (Frame callerFrame , RubyModule module , Object [] rubyArgs , RootCallTarget target ,
1788
- @ Bind ("getPositionalArguments(rubyArgs, false )" ) Object [] names ) {
1788
+ @ Bind ("getPositionalArguments(rubyArgs)" ) Object [] names ) {
1789
1789
needCallerFrame (callerFrame , "Module#public with no arguments" );
1790
1790
DeclarationContext .setCurrentVisibility (callerFrame , Visibility .PUBLIC );
1791
1791
return nil ;
1792
1792
}
1793
1793
1794
1794
@ Specialization (guards = "names.length > 0" )
1795
1795
protected Object methods (Frame callerFrame , RubyModule module , Object [] rubyArgs , RootCallTarget target ,
1796
- @ Bind ("getPositionalArguments(rubyArgs, false )" ) Object [] names ,
1796
+ @ Bind ("getPositionalArguments(rubyArgs)" ) Object [] names ,
1797
1797
@ Cached SetMethodVisibilityNode setMethodVisibilityNode ,
1798
1798
@ Cached SingleValueCastNode singleValueCastNode ) {
1799
1799
for (Object name : names ) {
@@ -1827,15 +1827,15 @@ protected RubyModule publicClassMethod(RubyModule module, Object[] names) {
1827
1827
public abstract static class PrivateNode extends AlwaysInlinedMethodNode {
1828
1828
@ Specialization (guards = "names.length == 0" )
1829
1829
protected Object frame (Frame callerFrame , RubyModule module , Object [] rubyArgs , RootCallTarget target ,
1830
- @ Bind ("getPositionalArguments(rubyArgs, false )" ) Object [] names ) {
1830
+ @ Bind ("getPositionalArguments(rubyArgs)" ) Object [] names ) {
1831
1831
needCallerFrame (callerFrame , "Module#private with no arguments" );
1832
1832
DeclarationContext .setCurrentVisibility (callerFrame , Visibility .PRIVATE );
1833
1833
return nil ;
1834
1834
}
1835
1835
1836
1836
@ Specialization (guards = "names.length > 0" )
1837
1837
protected Object methods (Frame callerFrame , RubyModule module , Object [] rubyArgs , RootCallTarget target ,
1838
- @ Bind ("getPositionalArguments(rubyArgs, false )" ) Object [] names ,
1838
+ @ Bind ("getPositionalArguments(rubyArgs)" ) Object [] names ,
1839
1839
@ Cached SetMethodVisibilityNode setMethodVisibilityNode ,
1840
1840
@ Cached SingleValueCastNode singleValueCastNode ) {
1841
1841
for (Object name : names ) {
@@ -2132,15 +2132,15 @@ protected RubyModule publicConstant(RubyModule module, Object[] args) {
2132
2132
public abstract static class ProtectedNode extends AlwaysInlinedMethodNode {
2133
2133
@ Specialization (guards = "names.length == 0" )
2134
2134
protected Object frame (Frame callerFrame , RubyModule module , Object [] rubyArgs , RootCallTarget target ,
2135
- @ Bind ("getPositionalArguments(rubyArgs, false )" ) Object [] names ) {
2135
+ @ Bind ("getPositionalArguments(rubyArgs)" ) Object [] names ) {
2136
2136
needCallerFrame (callerFrame , "Module#protected with no arguments" );
2137
2137
DeclarationContext .setCurrentVisibility (callerFrame , Visibility .PROTECTED );
2138
2138
return nil ;
2139
2139
}
2140
2140
2141
2141
@ Specialization (guards = "names.length > 0" )
2142
2142
protected Object methods (Frame callerFrame , RubyModule module , Object [] rubyArgs , RootCallTarget target ,
2143
- @ Bind ("getPositionalArguments(rubyArgs, false )" ) Object [] names ,
2143
+ @ Bind ("getPositionalArguments(rubyArgs)" ) Object [] names ,
2144
2144
@ Cached SetMethodVisibilityNode setMethodVisibilityNode ,
2145
2145
@ Cached SingleValueCastNode singleValueCastNode ) {
2146
2146
for (Object name : names ) {
0 commit comments