OSDN Git Service

JNI direct buffer function speedup, part 2.
authorAndy McFadden <fadden@android.com>
Fri, 24 Jul 2009 00:47:18 +0000 (17:47 -0700)
committerAndy McFadden <fadden@android.com>
Fri, 24 Jul 2009 00:53:05 +0000 (17:53 -0700)
commit8e5c78470229fd2f5474574081eaa4a2286aafea
tree521f4754d97cdea94c5d9da208f043025851f7c0
parent828311c1293ba533065895cc375abb143e14b69a
JNI direct buffer function speedup, part 2.

This converts the three direct buffer functions from JNI to internal VM
calls.  As a bonus, we grab PlatformAddress.osaddr directly instead of
retrieving it with PlatformAddress.toLong().

We're still calling through getEffectiveAddress(), which is where most
of the complexity lies.

Nudged a couple of comments.
vm/CheckJni.c
vm/Globals.h
vm/Jni.c
vm/JniInternal.h
vm/interp/Stack.c