* src/vm/jit/mips/emit.c (emit_branch): Implemented
[cacao.git] / src / vm / jit / codegen-common.cpp
index c4a4c64f827d70b9890f1a15028949df15b074a1..173c272c5b5d6eac1b21355ca05501e61a31d3fc 100644 (file)
@@ -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;