From 0a40bcb20b27058f760ce855fc1860a540c49f43 Mon Sep 17 00:00:00 2001 From: ko1 Date: Sat, 10 Oct 2015 21:22:54 +0000 Subject: * vm_eval.c, internal.h (rb_yield_1): added for performance which doesn't check Qundef. * numeric.c (int_dotimes): use rb_yield_1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- internal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'internal.h') diff --git a/internal.h b/internal.h index 00fbabbf93..232218634d 100644 --- a/internal.h +++ b/internal.h @@ -1192,6 +1192,7 @@ typedef void rb_check_funcall_hook(int, VALUE, ID, int, const VALUE *, VALUE); VALUE rb_check_funcall_with_hook(VALUE recv, ID mid, int argc, const VALUE *argv, rb_check_funcall_hook *hook, VALUE arg); VALUE rb_catch_protect(VALUE t, rb_block_call_func *func, VALUE data, int *stateptr); +VALUE rb_yield_1(VALUE val); /* vm_insnhelper.c */ VALUE rb_equal_opt(VALUE obj1, VALUE obj2); -- cgit v1.2.3