summaryrefslogtreecommitdiff
path: root/blockinlining.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
commit59c061235f7bb39d6a33b7e2b7fb4e3db57305db (patch)
treea476f70e698a68b2cc583e8aa5925feecabbd196 /blockinlining.c
parent582da7dac70c7fd9c9927cd57587e0cebfebfb3d (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 'blockinlining.c')
-rw-r--r--blockinlining.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/blockinlining.c b/blockinlining.c
index 7da28157fd..c2878d933c 100644
--- a/blockinlining.c
+++ b/blockinlining.c
@@ -195,7 +195,7 @@ invoke_Integer_times_special_block(VALUE num)
th->cfp->lfp[0] = GC_GUARDED_PTR(&block);
argv[0] = INT2FIX(0);
argv[1] = num;
- val = vm_yield(th, 2, argv);
+ val = rb_yield_values(2, argv);
if (val == Qundef) {
return num;
}
@@ -314,7 +314,7 @@ invoke_Range_each_special_block(VALUE range,
th->cfp->lfp[0] = GC_GUARDED_PTR(&block);
argv[0] = beg;
argv[1] = end;
- val = vm_yield(th, 2, argv);
+ val = rb_yield_values(2, argv);
if (val == Qundef) {
return range;
}
@@ -444,7 +444,7 @@ invoke_Array_each_special_block(VALUE ary)
th->cfp->lfp[0] = GC_GUARDED_PTR(&block);
argv[0] = 0;
argv[1] = ary;
- val = vm_yield(th, 2, argv);
+ val = rb_yield_values(2, argv);
if (val == Qundef) {
return ary;
}