Fix bytecode generator following Buffer api change.
This commit is contained in:
@@ -729,6 +729,6 @@ public class JavaBuilder {
|
||||
|
||||
public void appendBuffer() {
|
||||
append(factory.createInvoke(STR_LUAVALUE, "checkstring", TYPE_LUASTRING, Type.NO_ARGS, Constants.INVOKEVIRTUAL));
|
||||
append(factory.createInvoke(STR_BUFFER, "append", Type.VOID, new Type[] { TYPE_LUASTRING }, Constants.INVOKEVIRTUAL));
|
||||
append(factory.createInvoke(STR_BUFFER, "append", TYPE_BUFFER, new Type[] { TYPE_LUASTRING }, Constants.INVOKEVIRTUAL));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -161,7 +161,6 @@ public class JavaGen {
|
||||
case Lua.OP_CONCAT: /* A B C R(A):= R(B).. ... ..R(C) */
|
||||
builder.newBuffer();
|
||||
while ( b<=c ) {
|
||||
builder.dup();
|
||||
builder.loadLocal(pc, b++);
|
||||
builder.appendBuffer();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user