Skip to content

Commit

Permalink
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@ public Object readObject(Frame frame) throws FrameSlotTypeException {
return frame.getObject(frameSlot);
}

@Specialization
@Specialization(contains = { "readBoolean", "readInt", "readLong", "readDouble", "readObject" })
public Object readAny(Frame frame) {
return frame.getValue(frameSlot);
}
Original file line number Diff line number Diff line change
@@ -53,7 +53,8 @@ public double writeDouble(Frame frame, double value) {
return value;
}

@Specialization(guards = "checkObjectKind(frame)")
@Specialization(guards = "checkObjectKind(frame)",
contains = { "writeBoolean", "writeInteger", "writeLong", "writeDouble" })
public Object writeObject(Frame frame, Object value) {
assert RubyGuards.wasProvided(value); // Useful debug aid to catch a running-away NotProvided
frame.setObject(frameSlot, value);

0 comments on commit cd36d12

Please sign in to comment.