[vmkit-commits] [vmkit] r52867 - in /vmkit/trunk: include/debug.h lib/N3/VMCore/CLIJit.cpp

Tilmann Scheller tilmann.scheller at googlemail.com
Sat Jun 28 06:42:56 PDT 2008


Author: tilmann
Date: Sat Jun 28 08:42:55 2008
New Revision: 52867

URL: http://llvm.org/viewvc/llvm-project?rev=52867&view=rev
Log:
remove N3 specific debug macros from debug.h
remove unnecessary bookkeeping of current class in compile() of CLIJit.cpp

Modified:
    vmkit/trunk/include/debug.h
    vmkit/trunk/lib/N3/VMCore/CLIJit.cpp

Modified: vmkit/trunk/include/debug.h
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/include/debug.h?rev=52867&r1=52866&r2=52867&view=diff

==============================================================================
--- vmkit/trunk/include/debug.h (original)
+++ vmkit/trunk/include/debug.h Sat Jun 28 08:42:55 2008
@@ -10,12 +10,6 @@
 #ifndef DEBUG_H
 #define DEBUG_H
 
-#define DEBUG 0
-#define N3_COMPILE 0 //2
-#define N3_EXECUTE 0
-#define DEBUG_LOAD 0 //2
-#define N3_LOAD 0 //1
-
 #define ESC "\033["
 #define COLOR_NORMAL ""
 #define END "m"

Modified: vmkit/trunk/lib/N3/VMCore/CLIJit.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/N3/VMCore/CLIJit.cpp?rev=52867&r1=52866&r2=52867&view=diff

==============================================================================
--- vmkit/trunk/lib/N3/VMCore/CLIJit.cpp (original)
+++ vmkit/trunk/lib/N3/VMCore/CLIJit.cpp Sat Jun 28 08:42:55 2008
@@ -1420,11 +1420,6 @@
   jit->compilingClass = cl; 
   jit->compilingMethod = meth;
 
-  // save current class in case of recursive calls to compile()
-  VMGenericClass* old = cl->assembly->currGenericClass;
-  // temporarily store the class being compiled in case it is a generic class
-  cl->assembly->currGenericClass = dynamic_cast<VMGenericClass*>(cl);
-  
   meth->getSignature();
   if (isInternal(meth->implFlags)) {
     return jit->compileNative();
@@ -1433,9 +1428,6 @@
   } else {
     return jit->compileFatOrTiny();
   }
-  
-  // restore saved class
-  cl->assembly->currGenericClass = old;
 }
 
 llvm::Function *VMMethod::compiledPtr() {





More information about the vmkit-commits mailing list