From 0d0fc55122f7e64cf4d491c4a5f4bb941f29ec65 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 18 Jul 2014 02:10:37 +0000 Subject: enum.c: optimize any? object allocations for Array and Hash * enum.c (enum_any): optimize object allocations for Array and Hash when `each` is not redefined, always false if empty and the case without a block. [fix GH-617] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_core.h | 1 + 1 file changed, 1 insertion(+) (limited to 'vm_core.h') diff --git a/vm_core.h b/vm_core.h index ff54c2928d..ca93e22722 100644 --- a/vm_core.h +++ b/vm_core.h @@ -341,6 +341,7 @@ enum ruby_basic_operators { BOP_NEQ, BOP_MATCH, BOP_FREEZE, + BOP_EACH, BOP_LAST_ }; -- cgit v1.2.3