Skip to content

Commit

Permalink
Had old IR serialization logic for chilled string
Browse files Browse the repository at this point in the history
  • Loading branch information
enebo committed May 8, 2024
1 parent ac513f5 commit 01bea42
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion core/src/main/java/org/jruby/ir/operands/ChilledString.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ public ChilledString(ByteList bytelist, int coderange, String file, int line) {
super(bytelist, coderange, file, line);
}

public ChilledString(FrozenString frozenString) {
super(frozenString);
}

@Override
public OperandType getOperandType() {
return OperandType.CHILLED_STRING;
Expand All @@ -42,6 +46,6 @@ public void visit(IRVisitor visitor) {
}

public static ChilledString decode(IRReaderDecoder d) {
return new ChilledString(d.decodeByteList(), d.decodeInt(), d.decodeString(), d.decodeInt());
return new ChilledString((FrozenString)d.decodeOperand());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public MutableString(RubySymbol symbol) {
frozenString = new FrozenString(symbol);
}

private MutableString(FrozenString frozenString) {
protected MutableString(FrozenString frozenString) {
this.frozenString = frozenString;
}

Expand Down

0 comments on commit 01bea42

Please sign in to comment.