Fix bytecode generator following Buffer api change.

This commit is contained in:
James Roseborough
2010-07-29 05:07:08 +00:00
parent a5d7889d27
commit e3d1330763
4 changed files with 32 additions and 33 deletions

View File

@@ -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));
}
}

View File

@@ -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();
}