Skip to content

Commit

Permalink
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -632,7 +632,7 @@ public Object stringIndex(VirtualFrame frame, RubyString string, RubyString patt

}

@RubiniusPrimitive(name = "string_character_byte_index", needsSelf = false, lowerFixnumParameters = {2, 3})
@RubiniusPrimitive(name = "string_character_byte_index", needsSelf = false, lowerFixnumParameters = {1, 2})
@ImportStatic(StringGuards.class)
public static abstract class CharacterByteIndexNode extends RubiniusPrimitiveNode {

@@ -706,7 +706,7 @@ public int stringByteCharacterIndex(RubyString string, int index, int start) {
}
}

@RubiniusPrimitive(name = "string_character_index", needsSelf = false, lowerFixnumParameters = 3)
@RubiniusPrimitive(name = "string_character_index", needsSelf = false, lowerFixnumParameters = 2)
public static abstract class StringCharacterIndexPrimitiveNode extends RubiniusPrimitiveNode {

public StringCharacterIndexPrimitiveNode(RubyContext context, SourceSection sourceSection) {
@@ -806,7 +806,7 @@ public Object stringCharacterIndex(RubyString string, RubyString pattern, int of

}

@RubiniusPrimitive(name = "string_byte_index", needsSelf = false, lowerFixnumParameters = {2, 3})
@RubiniusPrimitive(name = "string_byte_index", needsSelf = false, lowerFixnumParameters = {1, 2})
public static abstract class StringByteIndexPrimitiveNode extends RubiniusPrimitiveNode {

public StringByteIndexPrimitiveNode(RubyContext context, SourceSection sourceSection) {
@@ -933,7 +933,7 @@ public Object stringPreviousByteIndex(RubyString string, int index) {

}

@RubiniusPrimitive(name = "string_copy_from", needsSelf = false, lowerFixnumParameters = {3, 4, 5})
@RubiniusPrimitive(name = "string_copy_from", needsSelf = false, lowerFixnumParameters = {2, 3, 4})
public static abstract class StringCopyFromPrimitiveNode extends RubiniusPrimitiveNode {

public StringCopyFromPrimitiveNode(RubyContext context, SourceSection sourceSection) {
@@ -969,7 +969,7 @@ public RubyBasicObject stringCopyFrom(RubyString string, RubyString other, int s

}

@RubiniusPrimitive(name = "string_resize_capacity", needsSelf = false, lowerFixnumParameters = 2)
@RubiniusPrimitive(name = "string_resize_capacity", needsSelf = false, lowerFixnumParameters = 1)
public static abstract class StringResizeCapacityPrimitiveNode extends RubiniusPrimitiveNode {

public StringResizeCapacityPrimitiveNode(RubyContext context, SourceSection sourceSection) {

0 comments on commit 9a314ff

Please sign in to comment.