* link_class_intern: #ifdef createcompilerstub call to support interpreter.
authortwisti <none@none>
Thu, 12 Jan 2006 21:08:00 +0000 (21:08 +0000)
committertwisti <none@none>
Thu, 12 Jan 2006 21:08:00 +0000 (21:08 +0000)
src/vm/linker.c

index 2822eb3ffd789ae655ddaa2ac43cef33cdff1d18..f4b255ddef9a16157d5be59b5ccfdd21a22ec357 100644 (file)
@@ -32,7 +32,7 @@
             Edwin Steiner
             Christian Thalinger
 
-   $Id: linker.c 4126 2006-01-10 20:55:41Z twisti $
+   $Id: linker.c 4148 2006-01-12 21:08:00Z twisti $
 
 */
 
@@ -749,8 +749,18 @@ static classinfo *link_class_intern(classinfo *c)
                /* Methods in ABSTRACT classes from interfaces maybe already have a   */
                /* stubroutine.                                                       */
 
-               if (!m->stubroutine)
-                       m->stubroutine = createcompilerstub(m);
+               if (!m->stubroutine) {
+#if defined(ENABLE_JIT)
+# if defined(ENABLE_INTRP)
+                       if (opt_intrp)
+                               m->stubroutine = intrp_createcompilerstub(m);
+                       else
+#endif
+                               m->stubroutine = createcompilerstub(m);
+#else
+                       m->stubroutine = intrp_createcompilerstub(m);
+#endif
+               }
 
                if (!(m->flags & ACC_STATIC))
                        v->table[m->vftblindex] = (methodptr) (ptrint) m->stubroutine;