Skip to content

Commit

Permalink
[Truffle] Add lowerFixnumParameters to fix scanf tests;
Browse files Browse the repository at this point in the history
  • Loading branch information
bjfish committed Apr 26, 2015
1 parent 6213244 commit 04d4ba5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/mri_truffle.index
Expand Up @@ -237,7 +237,7 @@ ruby/test_unicode_escape.rb
ruby/test_variable.rb
ruby/test_whileuntil.rb
ruby/test_yield.rb
# scanf/test_scanf.rb # Fails when run as suite
scanf/test_scanf.rb
# scanf/test_scanfblocks.rb
# socket/test_basicsocket.rb
# socket/test_nonblock.rb
Expand Down
Expand Up @@ -24,7 +24,7 @@
@CoreClass(name = "Rubinius::ByteArray")
public abstract class ByteArrayNodes {

@CoreMethod(names = "get_byte", required = 1)
@CoreMethod(names = "get_byte", required = 1, lowerFixnumParameters = 0)
public abstract static class GetByteNode extends CoreMethodNode {

public GetByteNode(RubyContext context, SourceSection sourceSection) {
Expand Down Expand Up @@ -108,7 +108,7 @@ public int size(RubiniusByteArray bytes) {

}

@CoreMethod(names = "locate", required = 3)
@CoreMethod(names = "locate", required = 3, lowerFixnumParameters = {1, 2})
public abstract static class LocateNode extends CoreMethodNode {

public LocateNode(RubyContext context, SourceSection sourceSection) {
Expand Down
Expand Up @@ -220,7 +220,7 @@ public int close(VirtualFrame frame, RubyBasicObject io) {

}

@RubiniusPrimitive(name = "io_seek")
@RubiniusPrimitive(name = "io_seek", lowerFixnumParameters = {0, 1})
public static abstract class IOSeekPrimitiveNode extends RubiniusPrimitiveNode {

public IOSeekPrimitiveNode(RubyContext context, SourceSection sourceSection) {
Expand Down
Expand Up @@ -648,7 +648,7 @@ public Object stringToF(RubyString string) {

}

@RubiniusPrimitive(name = "string_index")
@RubiniusPrimitive(name = "string_index", lowerFixnumParameters = 1)
public static abstract class StringIndexPrimitiveNode extends RubiniusPrimitiveNode {

public StringIndexPrimitiveNode(RubyContext context, SourceSection sourceSection) {
Expand Down Expand Up @@ -1359,7 +1359,7 @@ private RubyString makeSubstring(RubyString string, int beg, int len) {

}

@RubiniusPrimitive(name = "string_from_bytearray", needsSelf = false, lowerFixnumParameters = {0, 1})
@RubiniusPrimitive(name = "string_from_bytearray", needsSelf = false, lowerFixnumParameters = {1, 2})
public static abstract class StringFromByteArrayPrimitiveNode extends RubiniusPrimitiveNode {

public StringFromByteArrayPrimitiveNode(RubyContext context, SourceSection sourceSection) {
Expand Down

0 comments on commit 04d4ba5

Please sign in to comment.