]> git.unchartedbackwaters.co.uk Git - francis/libjit.git/commitdiff
Rename _jit_cache_get_method() to _jit_cache_get_function()
authorAleksey Demakov <ademakov@gmail.com>
Sun, 29 Jul 2012 07:32:23 +0000 (11:32 +0400)
committerAleksey Demakov <ademakov@gmail.com>
Sun, 29 Jul 2012 07:32:23 +0000 (11:32 +0400)
ChangeLog
jit/jit-cache.c
jit/jit-cache.h
jit/jit-except.c
jit/jit-function.c
jit/jit-unwind.c

index ff44f8ae56ae599404eedc2e17caeae852f715dc..5f3b432b74f2d85c82a2b5a8436889bf10d6bae6 100644 (file)
--- 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  <ademakov@gmail.com>
 
index e813a15524fc834f75e685afedf4cf861706b4d7..deaedd8072e99d7801a5d3c0fdf8e3a0f032a4e0 100644 (file)
@@ -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))
index 8c853c2daea1cfa1893ae99ec415e84946557970..13dfd380260ef934339a3a38ae64a5e3d988c688 100644 (file)
@@ -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
index abde516b1eb9a3d4b9838fb03d3a46d03b245c10..91054e7e4ca634e8d0882f7d95de7f12369f2cac 100644 (file)
@@ -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);
index 0e4a6efdd87214faeaeb44cdb63ddc41cf434457..96897d11033169fec5f90060d0cbde8ae88cf00f 100644 (file)
@@ -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
 }
 
index 4e3619aae91ab0d69c560411dfc172216ae83e12..8e91fdf64d81628b106095188e413953ab1df304 100644 (file)
@@ -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;