Skip to content

Commit

Permalink
Showing 2 changed files with 0 additions and 24 deletions.
2 changes: 0 additions & 2 deletions spec/truffle/tags/core/matchdata/values_at_tags.txt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -262,28 +262,6 @@ public RubyBasicObject toS(RubyMatchData matchData) {
}
}

@CoreMethod(names = "values_at", argumentsAsArray = true)
public abstract static class ValuesAtNode extends CoreMethodArrayArgumentsNode {

public ValuesAtNode(RubyContext context, SourceSection sourceSection) {
super(context, sourceSection);
}

@Specialization
public RubyBasicObject valuesAt(RubyMatchData matchData, Object[] args) {
CompilerDirectives.transferToInterpreter();

final int[] indicies = new int[args.length];

for (int n = 0; n < args.length; n++) {
indicies[n] = (int) args[n];
}

return ArrayNodes.fromObjects(getContext().getCoreLibrary().getArrayClass(), matchData.valuesAt(indicies));
}

}

@CoreMethod(names = "regexp")
public abstract static class RegexpNode extends CoreMethodArrayArgumentsNode {

0 comments on commit d6eef83

Please sign in to comment.