Commit 2d54440c by Anthony Green Committed by Anthony Green

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
parent b11f6430
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> 2000-01-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* Makefile.in (jcf-dump, gcjh): Move ../errors.o before $(LIBS). * Makefile.in (jcf-dump, gcjh): Move ../errors.o before $(LIBS).
......
...@@ -2509,6 +2509,11 @@ generate_bytecode_insns (exp, target, state) ...@@ -2509,6 +2509,11 @@ generate_bytecode_insns (exp, target, state)
else else
OP1 (OPCODE_invokevirtual); OP1 (OPCODE_invokevirtual);
OP2 (index); OP2 (index);
if (interface)
{
OP1 (nargs);
OP1 (0);
}
f = TREE_TYPE (TREE_TYPE (f)); f = TREE_TYPE (TREE_TYPE (f));
if (TREE_CODE (f) != VOID_TYPE) if (TREE_CODE (f) != VOID_TYPE)
{ {
...@@ -2518,11 +2523,6 @@ generate_bytecode_insns (exp, target, state) ...@@ -2518,11 +2523,6 @@ generate_bytecode_insns (exp, target, state)
else else
NOTE_PUSH (size); NOTE_PUSH (size);
} }
if (interface)
{
OP1 (nargs);
OP1 (0);
}
break; break;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment