[前][次][番号順一覧][スレッド一覧]

ruby-changes:53131

From: ko1 <ko1@a...>
Date: Wed, 24 Oct 2018 11:40:20 +0900 (JST)
Subject: [ruby-changes:53131] ko1:r65345 (trunk): newhashfromarray should be a leaf insn.

ko1	2018-10-24 11:40:13 +0900 (Wed, 24 Oct 2018)

  New Revision: 65345

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65345

  Log:
    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.

  Modified files:
    trunk/insns.def
Index: insns.def
===================================================================
--- insns.def	(revision 65344)
+++ insns.def	(revision 65345)
@@ -518,6 +518,7 @@ newhashfromarray https://github.com/ruby/ruby/blob/trunk/insns.def#L518
 (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);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]