* src/vm/jit/codegen-common.c (codegen_disassemble_stub): Renamed and works with
[cacao.git] / src / vmcore / options.c
index cf2bbec5cb58d65b1e186e9f1f4f04bb09b0e8e4..9ef390c515770ee24f74366b3b45210fa743971f 100644 (file)
@@ -99,7 +99,6 @@ bool opt_shownops           = false;
 bool opt_showddatasegment   = false;    /* generate data segment listing      */
 bool opt_showintermediate   = false;    /* generate intermediate code listing */
 bool opt_showexceptionstubs = false;
-bool opt_shownativestub     = false;
 
 bool checkbounds = true;       /* check array bounds                         */
 bool opt_noieee = false;       /* don't implement ieee compliant floats      */
@@ -177,6 +176,9 @@ const char *opt_filter_show_method = 0;
 
 int32_t  opt_DebugStackFrameInfo       = 0;
 int32_t  opt_DebugStackTrace           = 0;
+#if defined(ENABLE_DISASSEMBLER)
+int      opt_DisassembleStubs          = 0;
+#endif
 #if defined(ENABLE_GC_CACAO)
 int32_t  opt_GCDebugRootSet            = 0;
 int32_t  opt_GCStress                  = 0;
@@ -205,6 +207,7 @@ enum {
 enum {
        OPT_DebugStackFrameInfo,
        OPT_DebugStackTrace,
+       OPT_DisassembleStubs,
        OPT_GCDebugRootSet,
        OPT_GCStress,
        OPT_MaxPermSize,
@@ -225,6 +228,9 @@ enum {
 option_t options_XX[] = {
        { "DebugStackFrameInfo",       OPT_DebugStackFrameInfo,       OPT_TYPE_BOOLEAN, "TODO" },
        { "DebugStackTrace",           OPT_DebugStackTrace,           OPT_TYPE_BOOLEAN, "debug stacktrace creation" },
+#if defined(ENABLE_DISASSEMBLER)
+       { "DisassembleStubs",          OPT_DisassembleStubs,          OPT_TYPE_BOOLEAN, "disassemble builtin and native stubs when generated" },
+#endif
 #if defined(ENABLE_GC_CACAO)
        { "GCDebugRootSet",            OPT_GCDebugRootSet,            OPT_TYPE_BOOLEAN, "GC: print root-set at collection" },
        { "GCStress",                  OPT_GCStress,                  OPT_TYPE_BOOLEAN, "GC: forced collection at every allocation" },
@@ -489,6 +495,12 @@ void options_xx(const char *name)
                opt_DebugStackTrace = enable;
                break;
 
+#if defined(ENABLE_DISASSEMBLER)
+       case OPT_DisassembleStubs:
+               opt_DisassembleStubs = enable;
+               break;
+#endif
+
 #if defined(ENABLE_GC_CACAO)
        case OPT_GCDebugRootSet:
                opt_GCDebugRootSet = enable;