* src/vm/jit/mips/emit.c (emit_branch): Implemented
[cacao.git] / src / vm / jit / codegen-common.cpp
index 4f6b62418855870b28cab17aba9eb0cffaef74c0..173c272c5b5d6eac1b21355ca05501e61a31d3fc 100644 (file)
@@ -58,7 +58,7 @@
 #include "toolbox/logging.h"
 
 #include "native/llni.h"
-#include "native/localref.h"
+#include "native/localref.hpp"
 #include "native/native.hpp"
 
 #include "threads/thread.hpp"
@@ -136,7 +136,13 @@ void codegen_setup(jitdata *jd)
 
        /* initialize members */
 
-       cd->flags        = 0;
+       // Set flags as requested.
+       if (opt_AlwaysEmitLongBranches) {
+               cd->flags = CODEGENDATA_FLAG_LONGBRANCHES;
+       }
+       else {
+               cd->flags = 0;
+       }
 
        cd->mcodebase    = (u1*) DumpMemory::allocate(MCODEINITSIZE);
        cd->mcodeend     = cd->mcodebase + MCODEINITSIZE;