Skip to content

Commit

Permalink
Disable optimized dstr logic in JIT for now. #2163.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Nov 9, 2014
1 parent 0a399ba commit 292adb2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/src/main/java/org/jruby/ir/targets/JVMVisitor.java
Expand Up @@ -732,13 +732,13 @@ public void BuildCompoundStringInstr(BuildCompoundStringInstr compoundstring) {
csByteList.setEncoding(compoundstring.getEncoding());
jvmMethod().pushString(csByteList);
for (Operand p : compoundstring.getPieces()) {
if ((p instanceof StringLiteral) && (compoundstring.isSameEncoding((StringLiteral)p))) {
jvmMethod().pushByteList(((StringLiteral)p).bytelist);
jvmAdapter().invokevirtual(p(RubyString.class), "cat", sig(RubyString.class, ByteList.class));
} else {
// if ((p instanceof StringLiteral) && (compoundstring.isSameEncodingAndCodeRange((StringLiteral)p))) {
// jvmMethod().pushByteList(((StringLiteral)p).bytelist);
// jvmAdapter().invokevirtual(p(RubyString.class), "cat", sig(RubyString.class, ByteList.class));
// } else {
visit(p);
jvmAdapter().invokevirtual(p(RubyString.class), "append19", sig(RubyString.class, IRubyObject.class));
}
// }
}
jvmStoreLocal(compoundstring.getResult());
}
Expand Down

0 comments on commit 292adb2

Please sign in to comment.