From 6fa2b5e8d481045e222649661e0311e26f30c123 Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 24 Oct 2018 02:40:13 +0000 Subject: newhashfromarray should be a leaf insn. * insns.def (newhashfromarray): `rb_hash_bulk_insert()` can call Ruby methods like #hash so that it should not be a leaf insn. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- insns.def | 1 + 1 file changed, 1 insertion(+) diff --git a/insns.def b/insns.def index c485f22dd0..629a2f1bc9 100644 --- a/insns.def +++ b/insns.def @@ -518,6 +518,7 @@ newhashfromarray (rb_num_t num, VALUE ary) () (VALUE hash) +// attr bool leaf = false; /* rb_hash_bulk_insert() can call methods. */ { VM_ASSERT(num * 2 == (rb_num_t)RARRAY_LEN(ary)); hash = rb_hash_new_with_size(num); -- cgit v1.2.3