Experimental x86 Jit trace selection
Experimental support for trace selection for x86 host mode operation.
Not enabled by default. Turned on by setting WITH_HOST_DALVIK true
and WITH_JIT true. When enabled, profiles during x86 fast interpreter
operation, selects hot traces and "compiles" traces consisting of jumps
back to the interpreter.
First in a series of experimental x86 support checkins.
Change-Id: I0e423ec58a7bf01f226cb486f55de2841fab1002
diff --git a/vm/compiler/Compiler.c b/vm/compiler/Compiler.c
index 8dd8adc..fe42f4c 100644
--- a/vm/compiler/Compiler.c
+++ b/vm/compiler/Compiler.c
@@ -627,6 +627,11 @@
compileOK = dvmCompilerDoWork(&work);
}
if (aborted || !compileOK) {
+#if 0 // for x86 JIT testing
+ dvmJitSetCodeAddr(work.pc,
+ dvmCompilerGetInterpretTemplate(),
+ work.result.instructionSet);
+#endif
dvmCompilerArenaReset();
} else if (!work.result.discardResult &&
work.result.codeAddress) {