From 3a049596f7f21da323a06b325cec83134a66fef4 Mon Sep 17 00:00:00 2001 From: Aleksey Demakov Date: Fri, 30 Sep 2011 12:23:47 +0700 Subject: [PATCH] removed _jit_cache_new_region() function --- ChangeLog | 5 +++++ jit/jit-cache.c | 40 ---------------------------------------- jit/jit-cache.h | 6 ------ 3 files changed, 5 insertions(+), 46 deletions(-) diff --git a/ChangeLog b/ChangeLog index ef88bac..9078bc2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-09-30 Aleksey Demakov + + * jit/jit-cache.h, jit/jit-cache.c (_jit_cache_new_region): + function removed. + 2011-09-03 Aleksey Demakov * jit/jit-cache.h, jit/jit-cache.c (_jit_cache_get_method_list): diff --git a/jit/jit-cache.c b/jit/jit-cache.c index 77c52ec..7351445 100644 --- a/jit/jit-cache.c +++ b/jit/jit-cache.c @@ -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) diff --git a/jit/jit-cache.h b/jit/jit-cache.h index aa180ae..ea04bee 100644 --- a/jit/jit-cache.h +++ b/jit/jit-cache.h @@ -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. */ -- 2.47.3