summaryrefslogtreecommitdiff
path: root/insns.def
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-24 02:40:13 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-24 02:40:13 (GMT)
commit6fa2b5e8d481045e222649661e0311e26f30c123 (patch)
tree9bd18a23307507502b295749c7d6b4e434c10033 /insns.def
parent434207e84da3ba5208d5e29baa153c3e017170b1 (diff)
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
Diffstat (limited to 'insns.def')
-rw-r--r--insns.def1
1 files changed, 1 insertions, 0 deletions
diff --git a/insns.def b/insns.def
index c485f22..629a2f1 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);