]> git.unchartedbackwaters.co.uk Git - francis/libjit.git/commitdiff
removed _jit_cache_new_region() function
authorAleksey Demakov <ademakov@gmail.com>
Fri, 30 Sep 2011 05:23:47 +0000 (12:23 +0700)
committerAleksey Demakov <ademakov@gmail.com>
Fri, 30 Sep 2011 05:23:47 +0000 (12:23 +0700)
ChangeLog
jit/jit-cache.c
jit/jit-cache.h

index ef88bac1fc30f9c925edb82bea212b1193e72be7..9078bc258e216505a1322f93d554e0ed6bb3fea1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-09-30  Aleksey Demakov  <ademakov@gmail.com>
+
+       * jit/jit-cache.h, jit/jit-cache.c (_jit_cache_new_region):
+       function removed.
+
 2011-09-03  Aleksey Demakov  <ademakov@gmail.com>
 
        * jit/jit-cache.h, jit/jit-cache.c (_jit_cache_get_method_list):
index 77c52eccb2411dbd55dac4edfafc42af53bebaff..7351445914e21ac147d46d7119252115adc6f4d7 100644 (file)
@@ -974,46 +974,6 @@ void _jit_cache_mark_bytecode(jit_cache_posn *posn, unsigned long offset)
                                    (long)(posn->ptr - posn->cache->start));
 }
 
-void _jit_cache_new_region(jit_cache_posn *posn, void *cookie)
-{
-       jit_cache_method_t method;
-       jit_cache_method_t newMethod;
-
-       /* Fetch the current method information block */
-       method = posn->cache->method;
-       if(!method)
-       {
-               return;
-       }
-
-       /* If the current region starts here, then simply update it */
-       if(method->start == posn->ptr)
-       {
-               method->cookie = cookie;
-               return;
-       }
-
-       /* Close off the current method region */
-       method->end = posn->ptr;
-
-       /* Allocate a new method region block and initialise it */
-       newMethod = (jit_cache_method_t)
-               _jit_cache_alloc(posn, sizeof(struct jit_cache_method));
-       if(!newMethod)
-       {
-               return;
-       }
-       newMethod->method = method->method;
-       newMethod->cookie = cookie;
-       newMethod->start = posn->ptr;
-       newMethod->end = posn->ptr;
-
-       /* Attach the new region to the cache */
-       newMethod->left = 0;
-       newMethod->right = method;
-       posn->cache->method = newMethod;
-}
-
 void _jit_cache_set_cookie(jit_cache_posn *posn, void *cookie)
 {
        if(posn->cache->method)
index aa180ae3ef8ddd726908d2b6ecfd3eee49fd3cff..ea04bee375a49cd4c34d30ea0426aae6d68eeba2 100644 (file)
@@ -131,12 +131,6 @@ void _jit_cache_align(jit_cache_posn *posn, int align, int diff, int nop);
  */
 void _jit_cache_mark_bytecode(jit_cache_posn *posn, unsigned long offset);
 
-/*
- * Change to a new exception region within the current method.
- * The cookie will typically be NULL if no exception region.
- */
-void _jit_cache_new_region(jit_cache_posn *posn, void *cookie);
-
 /*
  * Set the exception region cookie for the current region.
  */