#include <stdio.h>
#include <stdlib.h>
-#include "mm/memory.h"
-
-#include "native/jni.h"
+#include "mm/memory.hpp"
#include "vm/options.h"
#include "vm/os.hpp"
bool showstack = false;
bool opt_showdisassemble = false; /* generate disassembler listing */
-bool opt_shownops = false;
bool opt_showddatasegment = false; /* generate data segment listing */
bool opt_showintermediate = false; /* generate intermediate code listing */
bool checkbounds = true; /* check array bounds */
-bool opt_noieee = false; /* don't implement ieee compliant floats */
bool checksync = true; /* do synchronization */
#if defined(ENABLE_LOOP)
bool opt_loops = false; /* optimize array accesses in loops */
/* Debugging options which can be turned off. */
+bool opt_AlwaysEmitLongBranches = false;
int opt_DebugExceptions = 0;
int opt_DebugFinalizer = 0;
int opt_DebugLocalReferences = 0;
/* Debugging options which can be turned off. */
+ OPT_AlwaysEmitLongBranches,
OPT_DebugExceptions,
OPT_DebugFinalizer,
OPT_DebugLocalReferences,
/* Debugging options which can be turned off. */
+ { "AlwaysEmitLongBranches", OPT_AlwaysEmitLongBranches, OPT_TYPE_BOOLEAN, "Always emit long-branches." },
{ "DebugExceptions", OPT_DebugExceptions, OPT_TYPE_BOOLEAN, "debug exceptions" },
{ "DebugFinalizer", OPT_DebugFinalizer, OPT_TYPE_BOOLEAN, "debug finalizer thread" },
{ "DebugLocalReferences", OPT_DebugLocalReferences, OPT_TYPE_BOOLEAN, "print debug information for local reference tables" },
/* Debugging options which can be turned off. */
+ case OPT_AlwaysEmitLongBranches:
+ opt_AlwaysEmitLongBranches = enable;
+ break;
+
case OPT_DebugExceptions:
opt_DebugExceptions = enable;
break;