Skip to content
Snippets Groups Projects
Commit bf71a94e authored by Zbynek Slajchrt's avatar Zbynek Slajchrt Committed by Lukas Stadler
Browse files

enabling polyglot SDK tests

parent 56a0927f
No related branches found
No related tags found
No related merge requests found
......@@ -90,6 +90,11 @@ public final class RAbstractVectorAccessFactory implements Factory26 {
return extract.apply(frame, receiver, new Object[]{label + 1}, RLogical.TRUE, RLogical.TRUE);
}
@Specialization
protected Object readIndexed(VirtualFrame frame, Object receiver, long label) {
return extract.apply(frame, receiver, new Object[]{label + 1}, RLogical.TRUE, RLogical.TRUE);
}
@Specialization
protected Object readProperty(VirtualFrame frame, Object receiver, String label) {
return extract.applyAccessField(frame, receiver, label);
......
......@@ -74,6 +74,11 @@ abstract class PositionCastNode extends RBaseNode {
return RInteger.valueOf(position);
}
@Specialization
protected RAbstractVector doLong(long position, @Cached("create()") NACheck check) {
return doDouble(position, check);
}
@Specialization
protected RAbstractVector doString(String position) {
return RString.valueOf(position);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment