Skip to content

Commit 292adb2

Browse files
committed
Disable optimized dstr logic in JIT for now. #2163.
1 parent 0a399ba commit 292adb2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

core/src/main/java/org/jruby/ir/targets/JVMVisitor.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -732,13 +732,13 @@ public void BuildCompoundStringInstr(BuildCompoundStringInstr compoundstring) {
732732
csByteList.setEncoding(compoundstring.getEncoding());
733733
jvmMethod().pushString(csByteList);
734734
for (Operand p : compoundstring.getPieces()) {
735-
if ((p instanceof StringLiteral) && (compoundstring.isSameEncoding((StringLiteral)p))) {
736-
jvmMethod().pushByteList(((StringLiteral)p).bytelist);
737-
jvmAdapter().invokevirtual(p(RubyString.class), "cat", sig(RubyString.class, ByteList.class));
738-
} else {
735+
// if ((p instanceof StringLiteral) && (compoundstring.isSameEncodingAndCodeRange((StringLiteral)p))) {
736+
// jvmMethod().pushByteList(((StringLiteral)p).bytelist);
737+
// jvmAdapter().invokevirtual(p(RubyString.class), "cat", sig(RubyString.class, ByteList.class));
738+
// } else {
739739
visit(p);
740740
jvmAdapter().invokevirtual(p(RubyString.class), "append19", sig(RubyString.class, IRubyObject.class));
741-
}
741+
// }
742742
}
743743
jvmStoreLocal(compoundstring.getResult());
744744
}

0 commit comments

Comments
 (0)