+2011-09-03 Aleksey Demakov <ademakov@gmail.com>
+
+ * jit/jit-cache.h, jit/jit-cache.c (_jit_cache_get_method_list):
+ function removed.
+
2011-07-27 Aleksey Demakov <ademakov@gmail.com>
* jit/jit-config.h: added new file as central location for all
return num + FillMethodList(list + num, GetRight(node), nil, prev);
}
-void **_jit_cache_get_method_list(jit_cache_t cache)
-{
- void *prev;
- unsigned long num;
- void **list;
-
- /* Count the number of distinct methods in the tree */
- prev = 0;
- num = CountMethods(cache->head.right, &(cache->nil), &prev);
-
- /* Allocate a list to hold all of the method descriptors */
- list = (void **)jit_malloc((num + 1) * sizeof(void *));
- if(!list)
- {
- return 0;
- }
-
- /* Fill the list with methods and then return it */
- prev = 0;
- FillMethodList(list, cache->head.right, &(cache->nil), &prev);
- list[num] = 0;
- return list;
-}
-
/*
* Temporary structure for iterating over a method's debug list.
*/
*/
void *_jit_cache_get_end_method(jit_cache_t cache, void *pc);
-/*
- * Get a list of all method that are presently in the cache.
- * The list is terminated by a NULL, and must be free'd with
- * "jit_free". Returns NULL if out of memory.
- */
-void **_jit_cache_get_method_list(jit_cache_t cache);
-
/*
* Get the native offset that is associated with a bytecode
* offset within a method. The value "start" indicates the