jcf-write.c (generate_bytecode_insns): Emit invokeinterface bytecodes in the correct order.

* jcf-write.c (generate_bytecode_insns): Emit invokeinterface
	bytecodes in the correct order.

From-SVN: r31301
This commit is contained in:
Anthony Green 2000-01-10 01:26:27 +00:00 committed by Anthony Green
parent b11f64301a
commit 2d54440c96
2 changed files with 10 additions and 5 deletions

View file

@ -1,3 +1,8 @@
2000-01-09 Anthony Green <green@cygnus.com>
* jcf-write.c (generate_bytecode_insns): Emit invokeinterface
bytecodes in the correct order.
2000-01-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* Makefile.in (jcf-dump, gcjh): Move ../errors.o before $(LIBS).

View file

@ -2509,6 +2509,11 @@ generate_bytecode_insns (exp, target, state)
else
OP1 (OPCODE_invokevirtual);
OP2 (index);
if (interface)
{
OP1 (nargs);
OP1 (0);
}
f = TREE_TYPE (TREE_TYPE (f));
if (TREE_CODE (f) != VOID_TYPE)
{
@ -2518,11 +2523,6 @@ generate_bytecode_insns (exp, target, state)
else
NOTE_PUSH (size);
}
if (interface)
{
OP1 (nargs);
OP1 (0);
}
break;
}
}