X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fvm%2Foptions.c;h=5a6f5c29f89afa645dff5dcab7b1016e15b1cebc;hb=673c27ae77ba384b360bf54a030066c3a7629729;hp=cd38e8a71bce928bf11d3a28e4f15e3ce3fe15e0;hpb=764c260d3eda92f79291ee760e43ab131239da3b;p=cacao.git diff --git a/src/vm/options.c b/src/vm/options.c index cd38e8a71..5a6f5c29f 100644 --- a/src/vm/options.c +++ b/src/vm/options.c @@ -157,6 +157,7 @@ int opt_ThreadStackSize = 0; /* Debugging options which can be turned off. */ bool opt_AlwaysEmitLongBranches = false; +bool opt_AlwaysMmapFirstPage = false; int opt_CompileAll = 0; char* opt_CompileMethod = NULL; char* opt_CompileSignature = NULL; @@ -198,6 +199,7 @@ int opt_RegallocSpillAll = 0; #if defined(ENABLE_REPLACEMENT) int opt_TestReplacement = 0; #endif +int opt_TraceBuiltinCalls = 0; int opt_TraceCompilerCalls = 0; int opt_TraceExceptions = 0; int opt_TraceHPI = 0; @@ -233,6 +235,7 @@ enum { /* Debugging options which can be turned off. */ OPT_AlwaysEmitLongBranches, + OPT_AlwaysMmapFirstPage, OPT_CompileAll, OPT_CompileMethod, OPT_CompileSignature, @@ -262,6 +265,7 @@ enum { OPT_ProfileMemoryUsageGNUPlot, OPT_RegallocSpillAll, OPT_TestReplacement, + OPT_TraceBuiltinCalls, OPT_TraceCompilerCalls, OPT_TraceExceptions, OPT_TraceHPI, @@ -292,6 +296,7 @@ option_t options_XX[] = { /* Debugging options which can be turned off. */ { "AlwaysEmitLongBranches", OPT_AlwaysEmitLongBranches, OPT_TYPE_BOOLEAN, "Always emit long-branches." }, + { "AlwaysMmapFirstPage", OPT_AlwaysMmapFirstPage, OPT_TYPE_BOOLEAN, "Always mmap memory page at address 0x0." }, { "CompileAll", OPT_CompileAll, OPT_TYPE_BOOLEAN, "compile all methods, no execution" }, { "CompileMethod", OPT_CompileMethod, OPT_TYPE_VALUE, "compile only a specific method" }, { "CompileSignature", OPT_CompileSignature, OPT_TYPE_VALUE, "specify signature for a specific method" }, @@ -333,6 +338,7 @@ option_t options_XX[] = { #if defined(ENABLE_REPLACEMENT) { "TestReplacement", OPT_TestReplacement, OPT_TYPE_BOOLEAN, "activate all replacement points during code generation" }, #endif + { "TraceBuiltinCalls", OPT_TraceBuiltinCalls, OPT_TYPE_BOOLEAN, "trace calls to VM builtin functions" }, { "TraceCompilerCalls", OPT_TraceCompilerCalls, OPT_TYPE_BOOLEAN, "trace JIT compiler calls" }, { "TraceExceptions", OPT_TraceExceptions, OPT_TYPE_BOOLEAN, "trace Exception throwing" }, { "TraceHPI", OPT_TraceHPI, OPT_TYPE_BOOLEAN, "Trace Host Porting Interface (HPI)" }, @@ -633,6 +639,10 @@ void options_xx(JavaVMInitArgs *vm_args) opt_AlwaysEmitLongBranches = enable; break; + case OPT_AlwaysMmapFirstPage: + opt_AlwaysMmapFirstPage = enable; + break; + case OPT_CompileAll: opt_CompileAll = enable; opt_run = false; @@ -791,6 +801,10 @@ void options_xx(JavaVMInitArgs *vm_args) break; #endif + case OPT_TraceBuiltinCalls: + opt_TraceBuiltinCalls = enable; + break; + case OPT_TraceCompilerCalls: opt_TraceCompilerCalls = enable; break; @@ -872,7 +886,7 @@ void options_xx(JavaVMInitArgs *vm_args) #endif default: - printf("Unknown -XX option: %s\n", name); + fprintf(stderr, "Unknown -XX option: %s\n", name); break; } }