+2007-02-10 Klaus Treichel <ktreichel@web.de>
+
+ * jit/jit-function.c: Use the on-demand compilation driver in
+ jit_function_apply too. Return the functions' entry point if the
+ function is allready compiled in jit_function_compile_entry.
+
2007-02-04 Aleksey Demakov <ademakov@gmail.com>
* include/jit/jit-common.h, include/jit/jit-context.h,
if(func->is_compiled && !(func->builder))
{
/* The function is already compiled, and we don't need to recompile */
+ *entry_point = func->entry_point;
return 1;
}
if(!(func->builder))
(jit_function_t func, jit_type_t signature, void **args, void *return_area)
{
struct jit_backtrace call_trace;
+#if defined(jit_redirector_size)
+ jit_on_demand_driver_func on_demand_driver;
+#endif
void *entry;
jit_jmp_buf jbuf;
}
else
{
+#if defined(jit_redirector_size)
+ on_demand_driver = func->context->on_demand_driver;
+ if(!on_demand_driver)
+ {
+ on_demand_driver = _jit_function_compile_on_demand;
+ }
+ entry = (*on_demand_driver)(func);
+#else
entry = _jit_function_compile_on_demand(func);
+#endif
}
/* Get the default signature if necessary */