Fix "all stubs" interpreter
The "all stubs" interpreter is the recommended starting point for
anyone creating a "fast" interpreter on a new CPU. This cleans
up some minor bit rot in the code and documentation.
Bug 3452689
Change-Id: I6bc3b0b5da11955d842d5fc5f16cb1a2209d4a89
diff --git a/vm/mterp/cstubs/entry.c b/vm/mterp/cstubs/entry.c
index af31a3d..4fe0d2c 100644
--- a/vm/mterp/cstubs/entry.c
+++ b/vm/mterp/cstubs/entry.c
@@ -30,9 +30,8 @@
*/
changeInterp = setjmp(jmpBuf) -1;
if (changeInterp >= 0) {
- Thread* threadSelf = dvmThreadSelf();
LOGVV("mterp threadid=%d returning %d\n",
- threadSelf->threadId, changeInterp);
+ dvmThreadSelf()->threadId, changeInterp);
return changeInterp;
}
@@ -64,6 +63,7 @@
u2 inst = /*glue->*/pc[0];
Handler handler = (Handler) gDvmMterpHandlers[inst & 0xff];
+ (void) gDvmMterpHandlerNames; /* avoid gcc "defined but not used" */
LOGVV("handler %p %s\n",
handler, (const char*) gDvmMterpHandlerNames[inst & 0xff]);
(*handler)(glue);