/* src/vm/jit/s390/emit.c - s390 code emitter functions
- Copyright (C) 1996-2005, 2006, 2007, 2008
+ Copyright (C) 1996-2005, 2006, 2007, 2008, 2010
CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
This file is part of CACAO.
if (N_VALID_IMM(value)) {
M_ICMP_IMM(reg, value);
} else {
- disp = dseg_add_s4(cd, iptr->sx.val.i);
+ disp = dseg_add_s4(cd, value);
if (N_VALID_DSEG_DISP(disp)) {
- N_C(s1, N_DSEG_DISP(disp), RN, REG_PV);
+ N_C(reg, N_DSEG_DISP(disp), RN, REG_PV);
} else {
assert(reg != REG_ITMP2);
ICONST(REG_ITMP2, disp);
- N_C(s1, -N_PV_OFFSET, REG_ITMP2, REG_PV);
+ N_C(reg, -N_PV_OFFSET, REG_ITMP2, REG_PV);
}
}
}
#endif
+/**
+ * Emit profiling code to start CPU cycle counting.
+ */
+#if defined(ENABLE_PROFILING)
+void emit_profile_cycle_start(codegendata* cd, codeinfo* code)
+{
+ // XXX Not implemented yet!
+}
+#endif
+
+
+/**
+ * Emit profiling code to stop CPU cycle counting.
+ */
+#if defined(ENABLE_PROFILING)
+void emit_profile_cycle_stop(codegendata* cd, codeinfo* code)
+{
+ // XXX Not implemented yet!
+}
+#endif
+
+
/* emit_verbosecall_enter ******************************************************
Generates the code for the call trace.