diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-24 17:50:17 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-24 17:50:17 +0000 |
commit | 59c061235f7bb39d6a33b7e2b7fb4e3db57305db (patch) | |
tree | a476f70e698a68b2cc583e8aa5925feecabbd196 /compile.c | |
parent | 582da7dac70c7fd9c9927cd57587e0cebfebfb3d (diff) |
* eval_method.c: renamed from vm_method.c. "vm_method.c" is included
by "vm.c".
* vm_eval.c: added. Some codes are moved from "eval.c"
* common.mk: fix for above changes.
* compile.c: make a vm_eval(0)
* eval.c, eval_error.c, eval_intern.h, eval_jump.c, proc.c, vm.c,
id.c, id.h, vm_core.h, vm_dump.c, vm_evalbody.c, vm_insnhelper.c,
blockinlining.c: fix for above changes. and do some refactoring.
this changes improve rb_yield() performance.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -26,12 +26,8 @@ #define va_init_list(a,b) va_start(a) #endif -/* iseq.c */ VALUE iseq_load(VALUE self, VALUE data, VALUE parent, VALUE opt); -/* vm.c */ -VALUE vm_eval(void *); - /* types */ typedef struct iseq_link_element { @@ -294,12 +290,11 @@ int iseq_translate_threaded_code(rb_iseq_t *iseq) { #if OPT_DIRECT_THREADED_CODE || OPT_CALL_THREADED_CODE - + extern const void **vm_get_insns_address_table(void); #if OPT_DIRECT_THREADED_CODE - const void *const *table = (const void **)vm_eval(0); + const void * const *table = vm_get_insns_address_table(); #else - extern const void *const *get_insns_address_table(); - const void *const *table = get_insns_address_table(); + const void * const *table = vm_get_insns_address_table(); #endif int i; |