u1 savedintcount; /* number of callee saved int regs */
u1 savedfltcount; /* number of callee saved flt regs */
u1 *savedmcode; /* saved code under patches */
-#endif /* defined(ENABLE_REPLACEMENT) */
+#endif
+#if defined(ENABLE_PROFILING)
u4 frequency; /* number of method invocations */
u4 *bbfrequency;
s8 cycles; /* number of cpu cycles */
+#endif
};
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
- $Id: jit.c 7268 2007-02-01 12:02:56Z twisti $
+ $Id: jit.c 7274 2007-02-02 00:10:37Z twisti $
*/
if (r == NULL) {
/* We had an exception! Finish stuff here if necessary. */
+#if defined(ENABLE_PROFILING)
/* Release memory for basic block profiling information. */
if (JITDATA_HAS_FLAG_INSTRUMENT(jd))
if (jd->code->bbfrequency != NULL)
MFREE(jd->code->bbfrequency, u4, jd->code->basicblockcount);
+#endif
}
else {
DEBUG_JIT_COMPILEVERBOSE("Running: ");
#endif /* defined(ENABLE_JIT) */
RT_TIMING_GET_TIME(time_alloc);
+#if defined(ENABLE_PROFLING)
/* Allocate memory for basic block profiling information. This
_must_ be done after loop optimization and register allocation,
since they can change the basic block count. */
if (JITDATA_HAS_FLAG_INSTRUMENT(jd))
code->bbfrequency = MNEW(u4, jd->basicblockcount);
+#endif
DEBUG_JIT_COMPILEVERBOSE("Generating code: ");