Store the cache position data in jit_gencode struct.
* jit/jit-rules.h, jit/jit-rules.c: (_jit_gen_check_space)
(_jit_gen_alloc): add.
+ * jit/jit-cache.h, jit/jit-cache.c (_jit_cache_get_function):
+ rename from _jit_cache_get_method.
2012-02-11 Aleksey Demakov <ademakov@gmail.com>
}
jit_function_t
-_jit_cache_get_method(jit_cache_t cache, void *pc)
+_jit_cache_get_function(jit_cache_t cache, void *pc)
{
jit_cache_method_t node = cache->head.right;
while(node != &(cache->nil))
* program counter. Returns NULL if the PC is not associated
* with a method within the cache.
*/
-jit_function_t _jit_cache_get_method(jit_cache_t cache, void *pc);
+jit_function_t _jit_cache_get_function(jit_cache_t cache, void *pc);
#ifdef __cplusplus
jit_cache_t cache = _jit_context_get_cache(context);
if(cache)
{
- return _jit_cache_get_method(cache, trace->items[posn]);
+ return _jit_cache_get_function(cache, trace->items[posn]);
}
}
return 0;
jit_cache_t cache = _jit_context_get_cache(context);
if(cache)
{
- jit_function_t func = _jit_cache_get_method(cache, trace->items[posn]);
+ jit_function_t func = _jit_cache_get_function(cache, trace->items[posn]);
if (func)
{
return _jit_function_get_bytecode(func, trace->items[posn], 0);
{
return 0;
}
- return _jit_cache_get_method(context->cache, closure);
+ return _jit_cache_get_function(context->cache, closure);
}
/*@
}
/* Get the function and the exception handler cookie */
- func = _jit_cache_get_method(context->cache, pc);
+ func = _jit_cache_get_function(context->cache, pc);
if(!func)
{
return 0;
{
return 0;
}
- return _jit_cache_get_method(context->cache, vtable_pointer);
+ return _jit_cache_get_function(context->cache, vtable_pointer);
#endif
}
{
jit_cache_t cache = _jit_context_get_cache(unwind->context);
void *pc = jit_unwind_get_pc(unwind);
- unwind->cache = _jit_cache_get_method(cache, pc);
+ unwind->cache = _jit_cache_get_function(cache, pc);
}
return (jit_function_t) unwind->cache;