[vmkit-commits] [vmkit] r61881 - /vmkit/trunk/lib/JnJVM/VMCore/Jnjvm.cpp

Nicolas Geoffray nicolas.geoffray at lip6.fr
Wed Jan 7 12:30:51 PST 2009


Author: geoffray
Date: Wed Jan  7 14:30:51 2009
New Revision: 61881

URL: http://llvm.org/viewvc/llvm-project?rev=61881&view=rev
Log:
Also add the method pointers in the module.


Modified:
    vmkit/trunk/lib/JnJVM/VMCore/Jnjvm.cpp

Modified: vmkit/trunk/lib/JnJVM/VMCore/Jnjvm.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/JnJVM/VMCore/Jnjvm.cpp?rev=61881&r1=61880&r2=61881&view=diff

==============================================================================
--- vmkit/trunk/lib/JnJVM/VMCore/Jnjvm.cpp (original)
+++ vmkit/trunk/lib/JnJVM/VMCore/Jnjvm.cpp Wed Jan  7 14:30:51 2009
@@ -1051,13 +1051,14 @@
   upcalls = bootstrapLoader->upcalls;
 
   throwable = upcalls->newThrowable;
-  
+ 
   for (std::vector<JavaString*>::iterator i = loader->strings.begin(),
        e = loader->strings.end(); i != e; ++i) {
     hashStr.insert(*i);
   }
 
   ClassMap* classes = bootstrapLoader->getClasses();
+  JnjvmModule* M = bootstrapLoader->getModule();
   for (ClassMap::iterator i = classes->map.begin(), e = classes->map.end();
        i != e; ++i) {
     CommonClass* cl = i->second;
@@ -1068,6 +1069,7 @@
         JavaMethod& meth = C->virtualMethods[i];
         if (!isAbstract(meth.access) && meth.code) {
           addMethodInFunctionMap(&meth, meth.code);
+          M->setMethod(&meth, meth.code, "");
         }
       }
       
@@ -1075,6 +1077,7 @@
         JavaMethod& meth = C->staticMethods[i];
         if (!isAbstract(meth.access) && meth.code) {
           addMethodInFunctionMap(&meth, meth.code);
+          M->setMethod(&meth, meth.code, "");
         }
       }
     }





More information about the vmkit-commits mailing list