On Wed, 2009-07-01 at 10:38 +0200, Vegard Nossum wrote:
> @@ -783,6 +783,17 @@ void emit_prolog(struct buffer *buf, unsigned long
> nr_locals)
> __emit_sub_imm_reg(buf, nr_locals * sizeof(unsigned long),
> REG_ESP);
> }
>
> +void emit_trace_invoke(struct buffer *buf,
> + const char *class, const char *method, const char *type)
> +{
> + __emit_push_imm(buf, (unsigned long) type);
> + __emit_push_imm(buf, (unsigned long) method);
> + __emit_push_imm(buf, (unsigned long) class);
> + __emit_push_imm(buf, (unsigned long) "trace invoke: %s.%s%s\n");
> + __emit_call(buf, &printf);
> + __emit_add_imm_reg(buf, 16, REG_ESP);
> +}
NAK, the only thing you need to pass to a C function is 'cu'. Look at
how we do it with trampolines.
Pekka
------------------------------------------------------------------------------
_______________________________________________
Jatovm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jatovm-devel