Skip to content

Commit

Permalink
Implement p6reprname op on JVM.
Browse files Browse the repository at this point in the history
  • Loading branch information
arnsholt committed Oct 21, 2013
1 parent e55c66b commit e9830d3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/vm/jvm/runtime/org/perl6/rakudo/RakOps.java
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,14 @@ public static SixModelObject p6var(SixModelObject cont, ThreadContext tc) {
return cont;
}
}

public static SixModelObject p6reprname(SixModelObject obj, ThreadContext tc) {
GlobalExt gcx = key.getGC(tc);
obj = Ops.decont(obj, tc);
SixModelObject name = gcx.Str.st.REPR.allocate(tc, gcx.Str.st);
name.set_str(tc, obj.st.REPR.name);
return name;
}

private static final CallSiteDescriptor rvThrower = new CallSiteDescriptor(
new byte[] { CallSiteDescriptor.ARG_OBJ, CallSiteDescriptor.ARG_OBJ }, null);
Expand Down

0 comments on commit e9830d3

Please sign in to comment.