#include "vm/jit/code.h"
#include "vm/jit/codegen-common.h"
-#include "vm/jit/patcher-common.h"
+#include "vm/jit/jitcache.h"
#include "vm/jit/methodtree.h"
+#include "vm/jit/patcher-common.h"
/* code_init *******************************************************************
The following fields are set in codeinfo:
m
patchers
+ cachedrefs
RETURN VALUE:
a new, initialized codeinfo, or
patcher_list_create(code);
-#if defined(ENABLE_STATISTICS)
+#if defined (ENABLE_JITCACHE)
+ jitcache_list_create(code);
+#endif
+
+#if defined (ENABLE_STATISTICS)
if (opt_stat)
size_codeinfo += sizeof(codeinfo);
#endif
patcher_list_free(code);
+#if defined(ENABLE_JITCACHE)
+ jitcache_list_free(code);
+#endif
+
#if defined(ENABLE_REPLACEMENT)
replace_free_replacement_points(code);
#endif