[llvm-commits] [vmkit] r51366 - /vmkit/trunk/lib/JnJVM/VMCore/JavaMetaJIT.cpp
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Wed May 21 00:47:17 PDT 2008
Author: geoffray
Date: Wed May 21 02:47:16 2008
New Revision: 51366
URL: http://llvm.org/viewvc/llvm-project?rev=51366&view=rev
Log:
Use the virtual table to make meta virtual calls.
Modified:
vmkit/trunk/lib/JnJVM/VMCore/JavaMetaJIT.cpp
Modified: vmkit/trunk/lib/JnJVM/VMCore/JavaMetaJIT.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/JnJVM/VMCore/JavaMetaJIT.cpp?rev=51366&r1=51365&r2=51366&view=diff
==============================================================================
--- vmkit/trunk/lib/JnJVM/VMCore/JavaMetaJIT.cpp (original)
+++ vmkit/trunk/lib/JnJVM/VMCore/JavaMetaJIT.cpp Wed May 21 02:47:16 2008
@@ -195,7 +195,7 @@
verifyNull(obj); \
JavaMethod* meth = obj->classOf->lookupMethod(name, type, false, true); \
\
- void* func = meth->compiledPtr();\
+ void* func = (((void***)obj)[0])[meth->offset];\
return ((FUNC_TYPE_VIRTUAL_AP)signature->virtualCallAP())(vm, func, obj, ap);\
}\
\
More information about the llvm-commits
mailing list