aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_proc.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-05 17:51:10 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-05 17:51:10 +0000
commit0d2346f9a1bec6824863404cb371492336c673e4 (patch)
tree530e371b108e4a193b9859aad5e1f1c95ee24392 /test/ruby/test_proc.rb
parent1d3d8d89fc68fdc4de82482f57a9c97ed05abe5c (diff)
downloadruby-0d2346f9a1bec6824863404cb371492336c673e4.tar.gz
Speedup `Proc#call` [Feature #14318]
* vm_insnhelper.c (vm_call_opt_call): do same process of `yield` instead of invoking `Proc`. * vm_insnhelper.c (vm_invoke_block): invoke given block handler instead of using a block handler in the current frame. Also do not check blcok handler here (caller should check it). * insns.def (invokeblock): catch up this fix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_proc.rb')
0 files changed, 0 insertions, 0 deletions