Browse Source

Rename _jit_cache_get_method() to _jit_cache_get_function()

cache-refactoring
Aleksey Demakov 12 years ago
parent
commit
d713e328c0
  1. 2
      ChangeLog
  2. 2
      jit/jit-cache.c
  3. 2
      jit/jit-cache.h
  4. 4
      jit/jit-except.c
  5. 6
      jit/jit-function.c
  6. 2
      jit/jit-unwind.c

2
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>

2
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))

2
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

4
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);

6
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
}

2
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;

Loading…
Cancel
Save