From ee457d92c2d99d85f61346ccd7dd3a6c21b294b6 Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 2 Jul 2007 12:49:35 +0000 Subject: * compile.c: rename iseq_translate_direct_threaded_code() to iseq_translate_threaded_code(). * eval_intern.h, yarvcore.h: mv EXEC_EVENT_HOOK() and exec_event_hooks() to yarvcore.h. * insnhelper.ci, vm.c: mv yarv_finish_insn_seq to vm.c. * insns.def (opt_call_c_function): fix to use RESTORE_REGS(). * iseq.c (rb_iseq_build_for_ruby2cext): fix to allocate iseq. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- compile.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'compile.c') diff --git a/compile.c b/compile.c index dadbcaddff..3bcce2871c 100644 --- a/compile.c +++ b/compile.c @@ -218,8 +218,8 @@ rb_iseq_compile(VALUE self, NODE *node) VALUE vm_eval(void *); -static int -iseq_translate_direct_threaded_code(rb_iseq_t *iseq) +int +iseq_translate_threaded_code(rb_iseq_t *iseq) { #if OPT_DIRECT_THREADED_CODE || OPT_CALL_THREADED_CODE @@ -690,8 +690,8 @@ iseq_setup(rb_iseq_t *iseq, LINK_ANCHOR *anchor) debugs("[compile step 4.3 (set_optargs_table)] \n"); set_optargs_table(iseq); - debugs("[compile step 5 (iseq_translate_direct_threaded_code)] \n"); - iseq_translate_direct_threaded_code(iseq); + debugs("[compile step 5 (iseq_translate_threaded_code)] \n"); + iseq_translate_threaded_code(iseq); if (CPDEBUG > 1) { VALUE str = ruby_iseq_disasm(iseq->self); -- cgit v1.2.3