From: Aleksey Demakov Date: Sun, 29 Jul 2012 07:32:23 +0000 (+0400) Subject: Rename _jit_cache_get_method() to _jit_cache_get_function() X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=d713e328c07d69afa75bdefd85d8f40a9c279c8a;p=francis%2Flibjit.git Rename _jit_cache_get_method() to _jit_cache_get_function() --- diff --git a/ChangeLog b/ChangeLog index ff44f8a..5f3b432 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,8 @@ 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 diff --git a/jit/jit-cache.c b/jit/jit-cache.c index e813a15..deaedd8 100644 --- a/jit/jit-cache.c +++ b/jit/jit-cache.c @@ -681,7 +681,7 @@ _jit_cache_alloc_no_method(jit_cache_t cache, unsigned long size, unsigned long } 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)) diff --git a/jit/jit-cache.h b/jit/jit-cache.h index 8c853c2..13dfd38 100644 --- a/jit/jit-cache.h +++ b/jit/jit-cache.h @@ -106,7 +106,7 @@ void *_jit_cache_alloc_no_method * 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 diff --git a/jit/jit-except.c b/jit/jit-except.c index abde516..91054e7 100644 --- a/jit/jit-except.c +++ b/jit/jit-except.c @@ -400,7 +400,7 @@ jit_function_t jit_stack_trace_get_function 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; @@ -441,7 +441,7 @@ unsigned int jit_stack_trace_get_offset 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); diff --git a/jit/jit-function.c b/jit/jit-function.c index 0e4a6ef..96897d1 100644 --- a/jit/jit-function.c +++ b/jit/jit-function.c @@ -644,7 +644,7 @@ jit_function_t jit_function_from_closure(jit_context_t context, void *closure) { return 0; } - return _jit_cache_get_method(context->cache, closure); + return _jit_cache_get_function(context->cache, closure); } /*@ @@ -668,7 +668,7 @@ jit_function_t jit_function_from_pc } /* 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; @@ -748,7 +748,7 @@ jit_function_t jit_function_from_vtable_pointer(jit_context_t context, void *vta { return 0; } - return _jit_cache_get_method(context->cache, vtable_pointer); + return _jit_cache_get_function(context->cache, vtable_pointer); #endif } diff --git a/jit/jit-unwind.c b/jit/jit-unwind.c index 4e3619a..8e91fdf 100644 --- a/jit/jit-unwind.c +++ b/jit/jit-unwind.c @@ -169,7 +169,7 @@ jit_unwind_get_function(jit_unwind_context_t *unwind) { 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;