[llvm-commits] [vmkit] r51382 - in /vmkit/trunk/lib/JnJVM/VMCore: JavaInitialise.cpp JavaTypes.cpp JavaTypes.h VirtualTables.cpp
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Wed May 21 09:03:59 PDT 2008
Author: geoffray
Date: Wed May 21 11:03:58 2008
New Revision: 51382
URL: http://llvm.org/viewvc/llvm-project?rev=51382&view=rev
Log:
Make AssessorDesc a non-gc class.
Modified:
vmkit/trunk/lib/JnJVM/VMCore/JavaInitialise.cpp
vmkit/trunk/lib/JnJVM/VMCore/JavaTypes.cpp
vmkit/trunk/lib/JnJVM/VMCore/JavaTypes.h
vmkit/trunk/lib/JnJVM/VMCore/VirtualTables.cpp
Modified: vmkit/trunk/lib/JnJVM/VMCore/JavaInitialise.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/JnJVM/VMCore/JavaInitialise.cpp?rev=51382&r1=51381&r2=51382&view=diff
==============================================================================
--- vmkit/trunk/lib/JnJVM/VMCore/JavaInitialise.cpp (original)
+++ vmkit/trunk/lib/JnJVM/VMCore/JavaInitialise.cpp Wed May 21 11:03:58 2008
@@ -46,13 +46,10 @@
INIT(CommonClass);
INIT(Class);
INIT(ClassArray);
- INIT(JavaMethod);
- INIT(JavaField);
INIT(JavaCond);
INIT(LockObj);
INIT(JavaObject);
INIT(JavaThread);
- INIT(AssessorDesc);
INIT(Typedef);
INIT(Signdef);
INIT(ThreadSystem);
@@ -67,8 +64,6 @@
INIT(jnjvm::TypeMap);
INIT(JavaIsolate);
INIT(JavaString);
- INIT(CacheNode);
- INIT(Enveloppe);
#ifdef SERVICE_VM
INIT(ServiceDomain);
#endif
Modified: vmkit/trunk/lib/JnJVM/VMCore/JavaTypes.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/JnJVM/VMCore/JavaTypes.cpp?rev=51382&r1=51381&r2=51382&view=diff
==============================================================================
--- vmkit/trunk/lib/JnJVM/VMCore/JavaTypes.cpp (original)
+++ vmkit/trunk/lib/JnJVM/VMCore/JavaTypes.cpp Wed May 21 11:03:58 2008
@@ -57,7 +57,7 @@
Jnjvm* vm, uint8 nid,
const char* assocName, ClassArray* cl,
arrayCtor_t ctor) {
- AssessorDesc* res = vm_new(vm, AssessorDesc)();
+ AssessorDesc* res = new AssessorDesc();
res->numId = nid;
res->doTrace = dt;
res->byteId = bid;
@@ -136,25 +136,14 @@
0, 0,
(arrayCtor_t)ArrayObject::acons);
- mvm::Object::pushRoot((mvm::Object*)dParg);
- mvm::Object::pushRoot((mvm::Object*)dPard);
- mvm::Object::pushRoot((mvm::Object*)dVoid);
- mvm::Object::pushRoot((mvm::Object*)dBool);
- mvm::Object::pushRoot((mvm::Object*)dByte);
- mvm::Object::pushRoot((mvm::Object*)dChar);
- mvm::Object::pushRoot((mvm::Object*)dShort);
- mvm::Object::pushRoot((mvm::Object*)dInt);
- mvm::Object::pushRoot((mvm::Object*)dFloat);
- mvm::Object::pushRoot((mvm::Object*)dLong);
- mvm::Object::pushRoot((mvm::Object*)dDouble);
- mvm::Object::pushRoot((mvm::Object*)dTab);
- mvm::Object::pushRoot((mvm::Object*)dRef);
}
-void AssessorDesc::print(mvm::PrintBuffer* buf) const {
+const char* AssessorDesc::printString() const {
+ mvm::PrintBuffer *buf= mvm::PrintBuffer::alloc();
buf->write("AssessorDescriptor<");
buf->write(asciizName);
buf->write(">");
+ return buf->contents()->cString();
}
static void typeError(const UTF8* name, short int l) {
Modified: vmkit/trunk/lib/JnJVM/VMCore/JavaTypes.h
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/JnJVM/VMCore/JavaTypes.h?rev=51382&r1=51381&r2=51382&view=diff
==============================================================================
--- vmkit/trunk/lib/JnJVM/VMCore/JavaTypes.h (original)
+++ vmkit/trunk/lib/JnJVM/VMCore/JavaTypes.h Wed May 21 11:03:58 2008
@@ -43,7 +43,7 @@
typedef JavaArray* (*arrayCtor_t)(uint32 len, CommonClass* cl, Jnjvm* vm);
-class AssessorDesc : public mvm::Object {
+class AssessorDesc {
public:
static VirtualTable *VT;
static const char I_TAB;
@@ -98,8 +98,7 @@
static void initialise(Jnjvm* vm);
- virtual void print(mvm::PrintBuffer* buf) const;
- virtual void TRACER;
+ const char* printString() const;
static void analyseIntern(const UTF8* name, uint32 pos,
uint32 meth, AssessorDesc*& ass,
Modified: vmkit/trunk/lib/JnJVM/VMCore/VirtualTables.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/JnJVM/VMCore/VirtualTables.cpp?rev=51382&r1=51381&r2=51382&view=diff
==============================================================================
--- vmkit/trunk/lib/JnJVM/VMCore/VirtualTables.cpp (original)
+++ vmkit/trunk/lib/JnJVM/VMCore/VirtualTables.cpp Wed May 21 11:03:58 2008
@@ -49,7 +49,6 @@
INIT(LockObj);
INIT(JavaObject);
INIT(JavaThread);
- INIT(AssessorDesc);
INIT(Typedef);
INIT(Signdef);
INIT(ThreadSystem);
@@ -87,7 +86,6 @@
#define ARRAYTRACER(name) \
void name::TRACER { \
- classOf->MARK_AND_TRACE; \
lockObj->MARK_AND_TRACE; \
}
@@ -175,9 +173,6 @@
pendingException->MARK_AND_TRACE;
}
-void AssessorDesc::TRACER {
-}
-
void Typedef::TRACER {
}
More information about the llvm-commits
mailing list