From 59c061235f7bb39d6a33b7e2b7fb4e3db57305db Mon Sep 17 00:00:00 2001 From: ko1 Date: Sat, 24 May 2008 17:50:17 +0000 Subject: * 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 --- vm_insnhelper.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'vm_insnhelper.c') diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 6fb867a9b9..495213525e 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -100,7 +100,7 @@ vm_pop_frame(rb_thread_t *th) static inline int vm_callee_setup_arg(rb_thread_t *th, const rb_iseq_t * iseq, - int orig_argc, VALUE * orig_argv, rb_block_t **block) + int orig_argc, VALUE * orig_argv, const rb_block_t **block) { const int m = iseq->argc; @@ -426,8 +426,8 @@ vm_method_missing(rb_thread_t *th, ID id, VALUE recv, } static inline void -vm_setup_method(rb_thread_t * const th, rb_control_frame_t * const cfp, - const int argc, rb_block_t *blockptr, const VALUE flag, +vm_setup_method(rb_thread_t *th, rb_control_frame_t *cfp, + const int argc, const rb_block_t *blockptr, const VALUE flag, const VALUE iseqval, const VALUE recv, const VALUE klass) { rb_iseq_t *iseq; @@ -648,7 +648,7 @@ block_proc_is_lambda(const VALUE procval) } static inline VALUE -vm_yield_with_cfunc(rb_thread_t *th, rb_block_t *block, +vm_yield_with_cfunc(rb_thread_t *th, const rb_block_t *block, VALUE self, int argc, const VALUE *argv) { NODE *ifunc = (NODE *) block->iseq; @@ -679,7 +679,7 @@ vm_yield_with_cfunc(rb_thread_t *th, rb_block_t *block, static inline int vm_yield_setup_args(rb_thread_t * const th, const rb_iseq_t *iseq, int orig_argc, VALUE *argv, - rb_block_t *blockptr, int lambda) + const rb_block_t *blockptr, int lambda) { if (0) { /* for debug */ printf(" argc: %d\n", orig_argc); -- cgit v1.2.3