Changes: Christian Ullrich
- $Id: codegen.c 4508 2006-02-14 00:41:57Z twisti $
+ $Id: codegen.c 4537 2006-02-21 10:39:18Z twisti $
*/
#include "vm/jit/x86_64/codegen.h"
#include "vm/jit/x86_64/emitfuncs.h"
-#include "cacao/cacao.h"
#include "native/native.h"
#include "vm/builtin.h"
#include "vm/exceptions.h"
#include "vm/options.h"
#include "vm/statistics.h"
#include "vm/stringlocal.h"
+#include "vm/vm.h"
#include "vm/jit/asmpart.h"
#include "vm/jit/codegen-common.h"
#include "vm/jit/dseg.h"
/* get function address (this must happen before the stackframeinfo) */
-#if !defined(ENABLE_STATICVM)
+#if !defined(WITH_STATIC_CLASSPATH)
if (f == NULL) {
codegen_addpatchref(cd, cd->mcodeptr, PATCHER_resolve_native, m, 0);
/* put env into first argument register */
- M_MOV_IMM((ptrint) &env, rd->argintregs[0]);
+ M_MOV_IMM((ptrint) _Jv_env, rd->argintregs[0]);
/* do the native function call */