JIT.
[ENABLE_JIT] (jit_asm_compile): Only for JIT.
* src/vm/jit/Makefile.am (SUBDIRS) [ENABLE_JIT]: Add allocator only
for JIT.
(libjit_la_SOURCES) [ENABLE_JIT]: Compile reg.[ch], replace.[ch] and
stack.[ch] only for JIT.
* src/cacaoh/headers.c [ENABLE_INTRP] (intrp_asm_abstractmethoderror):
Added.
Christian Thalinger
Edwin Steiner
- $Id: headers.c 5810 2006-10-20 13:54:54Z twisti $
+ $Id: headers.c 5814 2006-10-20 14:53:27Z twisti $
*/
void *asm_switchstackandcall(void *stack, void *func, void **stacktopsave, void * p) { return NULL; }
void asm_handle_builtin_exception(classinfo *c) {}
-void asm_abstractmethoderror(void) {}
#if defined(ENABLE_JIT)
+void asm_abstractmethoderror(void) {}
void asm_getclassvalues_atomic(vftbl_t *super, vftbl_t *sub, castinfo *out) {}
#endif
#if defined(ENABLE_INTRP)
+void intrp_asm_abstractmethoderror(void) {}
void intrp_asm_getclassvalues_atomic(vftbl_t *super, vftbl_t *sub, castinfo *out) {}
#endif
##
## Changes: Edwin Steiner
##
-## $Id: Makefile.am 5797 2006-10-18 15:27:42Z twisti $
+## $Id: Makefile.am 5814 2006-10-20 14:53:27Z twisti $
## Process this file with automake to produce Makefile.in
x86_64
SUBDIRS = \
- allocator \
tools \
verify
if ENABLE_JIT
-SUBDIRS += $(ARCH_DIR)
-ARCH_LIB = $(ARCH_DIR)/libarch.la
+SUBDIRS += \
+ allocator \
+ $(ARCH_DIR)
+
+ARCH_LIB = \
+ $(ARCH_DIR)/libarch.la
endif
if ENABLE_INTRP
-SUBDIRS += intrp
-INTRP_LIB = intrp/libintrp.la
+SUBDIRS += \
+ intrp
+
+INTRP_LIB = \
+ intrp/libintrp.la
endif
if ENABLE_IFCONV
-SUBDIRS += ifconv
-IFCONV_LIB = ifconv/libifconv.la
+SUBDIRS += \
+ ifconv
+
+IFCONV_LIB = \
+ ifconv/libifconv.la
endif
if ENABLE_INLINING
-SUBDIRS += inline
-INLINE_LIB = inline/libinline.la
+SUBDIRS += \
+ inline
+
+INLINE_LIB = \
+ inline/libinline.la
endif
if ENABLE_LOOP
-SUBDIRS += loop
-LOOP_LIB = loop/libloop.la
+SUBDIRS += \
+ loop
+
+LOOP_LIB = \
+ loop/libloop.la
endif
if ENABLE_PROFILING
-SUBDIRS += profile
-PROFILE_LIB = profile/libprofile.la
+SUBDIRS += \
+ profile
+
+PROFILE_LIB = \
+ profile/libprofile.la
+endif
+
+if USE_SCHEDULER
+SUBDIRS += \
+ schedule
+
+SCHEDULE_LIB = \
+ schedule/libschedule.la
+endif
+
+if ENABLE_SSA
+SUBDIRS += \
+ optimizing
+
+OPTIMIZING_LIB = \
+ optimizing/liboptimizing.la
endif
if ENABLE_THREADS
recompile.h
endif
-if USE_SCHEDULER
-SUBDIRS += schedule
-SCHEDULE_LIB = schedule/libschedule.la
-endif
+if ENABLE_JIT
+REG_SOURCES = \
+ reg.c \
+ reg.h
-if ENABLE_SSA
-SUBDIRS += optimizing
-OPTIMIZING_LIB = optimizing/liboptimizing.la
+REPLACE_SOURCES = \
+ replace.c \
+ replace.h
+
+STACK_SOURCES = \
+ stack.c \
+ stack.h
endif
if WITH_BINUTILS_DISASSEMBLER
jit.h \
parse.c \
parse.h \
- reg.c \
- reg.h \
$(RECOMPILE_SOURCES) \
- replace.c \
- replace.h \
+ $(REG_SOURCES) \
+ $(REPLACE_SOURCES) \
show.c \
show.h \
- stack.c \
- stack.h \
+ $(STACK_SOURCES) \
stacktrace.c \
stacktrace.h
Christian Thalinger
Christian Ullrich
- $Id: jit.c 5788 2006-10-16 08:53:13Z twisti $
+ $Id: jit.c 5814 2006-10-20 14:53:27Z twisti $
*/
void jit_init(void)
{
+#if defined(ENABLE_JIT)
/* initialize stack analysis subsystem */
(void) stack_init();
+#endif
/* initialize show subsystem */
*******************************************************************************/
+#if defined(ENABLE_JIT)
u1 *jit_asm_compile(methodinfo *m, u1 *mptr, u1 *sp, u1 *ra)
{
stackframeinfo sfi;
return entrypoint;
}
+#endif /* defined(ENABLE_JIT) */
/* jit_complement_condition ****************************************************