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 */
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;
enum {
OPT_DebugStackFrameInfo,
OPT_DebugStackTrace,
+ OPT_DisassembleStubs,
OPT_GCDebugRootSet,
OPT_GCStress,
OPT_MaxPermSize,
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" },
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;