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

ruby-changes:51561

From: ko1 <ko1@a...>
Date: Thu, 28 Jun 2018 14:14:53 +0900 (JST)
Subject: [ruby-changes:51561] ko1:r63765 (trunk): remove assertion for hidden objects.

ko1	2018-06-27 19:36:49 +0900 (Wed, 27 Jun 2018)

  New Revision: 63765

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

  Log:
    remove assertion for hidden objects.
    
    * vm_insnhelper.h (PUSH): r63763 increase "PUSH()" op and it reveals that
      there are hidden objects (at least T_IMEMO/iseq objects) are located
      on VM stack. Remove this check and I'll revisit it later.

  Modified files:
    trunk/vm_insnhelper.h
Index: vm_insnhelper.h
===================================================================
--- vm_insnhelper.h	(revision 63764)
+++ vm_insnhelper.h	(revision 63765)
@@ -47,7 +47,7 @@ rb_obj_hidden_p(VALUE obj) https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.h#L47
     }
 }
 
-#define PUSH(x) (VM_ASSERT(!rb_obj_hidden_p(x)), SET_SV(x), INC_SP(1))
+#define PUSH(x) (SET_SV(x), INC_SP(1))
 #define TOPN(n) (*(GET_SP()-(n)-1))
 #define POPN(n) (DEC_SP(n))
 #define POP()   (DEC_SP(1))

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

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