- created jitcache-arm-x86 branch
[cacao.git] / src / vmcore / options.c
index e9ae46fbcd763f25f93db60501fea452229bb28d..a5494ba5696192de279fe417cf78eadd0c4d4208 100644 (file)
@@ -113,6 +113,10 @@ bool opt_prof    = false;
 bool opt_prof_bb = false;
 #endif
 
+#if defined(ENABLE_JITCACHE)
+bool opt_jitcache = false;
+bool opt_jitcache_details = false;
+#endif
 
 /* optimization options *******************************************************/
 
@@ -164,6 +168,9 @@ int      opt_ThreadStackSize              = 0;
 
 int      opt_DebugExceptions              = 0;
 int      opt_DebugFinalizer               = 0;
+#if defined(ENABLE_JITCACHE)
+int   opt_DebugJitCache                = 0;
+#endif
 int      opt_DebugLocalReferences         = 0;
 int      opt_DebugLocks                   = 0;
 int      opt_DebugPackage                 = 0;
@@ -231,6 +238,7 @@ enum {
 
        OPT_DebugExceptions,
        OPT_DebugFinalizer,
+       OPT_DebugJitCache,
        OPT_DebugLocalReferences,
        OPT_DebugLocks,
        OPT_DebugPackage,
@@ -283,6 +291,9 @@ option_t options_XX[] = {
 
        { "DebugExceptions",              OPT_DebugExceptions,              OPT_TYPE_BOOLEAN, "debug exceptions" },
        { "DebugFinalizer",               OPT_DebugFinalizer,               OPT_TYPE_BOOLEAN, "debug finalizer thread" },
+#if defined (ENABLE_JITCACHE)
+       { "DebugJitCache",                OPT_DebugJitCache,                OPT_TYPE_BOOLEAN, "debug JIT cache actions" },
+#endif
        { "DebugLocalReferences",         OPT_DebugLocalReferences,         OPT_TYPE_BOOLEAN, "print debug information for local reference tables" },
        { "DebugLocks",                   OPT_DebugLocks,                   OPT_TYPE_BOOLEAN, "print debug information for locks" },
        { "DebugPackage",                 OPT_DebugPackage,                 OPT_TYPE_BOOLEAN, "debug Java boot-packages" },
@@ -618,6 +629,12 @@ void options_xx(JavaVMInitArgs *vm_args)
                        opt_DebugFinalizer = enable;
                        break;
 
+#if defined(ENABLE_JITCACHE)
+               case OPT_DebugJitCache:
+                       opt_DebugJitCache = enable;
+                       break;
+#endif
+
                case OPT_DebugLocalReferences:
                        opt_DebugLocalReferences = enable;
                        break;