summaryrefslogtreecommitdiffstats
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-24 17:50:17 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-24 17:50:17 +0000
commitbbe04d374ae361408c469882a8f1e6ba41ebb9a2 (patch)
treea476f70e698a68b2cc583e8aa5925feecabbd196 /vm_insnhelper.c
parentfb56786f5ab62316b65c9af96aac50604d5397bf (diff)
downloadruby-bbe04d374ae361408c469882a8f1e6ba41ebb9a2.tar.gz
ruby-bbe04d374ae361408c469882a8f1e6ba41ebb9a2.tar.xz
ruby-bbe04d374ae361408c469882a8f1e6ba41ebb9a2.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@16576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 6fb867a9b..495213525 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);