memory. All functions writing values into the data area return the offset
relative the begin of the code area (start of procedure).
- $Id: codegen.inc 2589 2005-06-08 10:59:04Z twisti $
+ $Id: codegen.inc 2616 2005-06-08 20:54:54Z twisti $
*/
# include <dlfcn.h>
#endif
+#include "disass.h"
+
#include "mm/memory.h"
#include "toolbox/avl.h"
#include "toolbox/logging.h"
}
+
+/* codegen_nativestub **********************************************************
+
+ Disassembles the generated native stub.
+
+*******************************************************************************/
+
+static void codegen_disassemble_nativestub(methodinfo *m, s4 *code, s4 len)
+{
+ printf("Native stub: ");
+ utf_fprint_classname(stdout, m->class->name);
+ printf(".");
+ utf_fprint(stdout, m->name);
+ utf_fprint(stdout, m->descriptor);
+ printf("\n\nLength: %d\n\n", len);
+
+ disassemble(code, len);
+}
+
+
/* reg_of_var:
This function determines a register, to which the result of an operation
should go, when it is ultimatively intended to store the result in