ruby-changes:59204
From: Aaron <ko1@a...>
Date: Thu, 12 Dec 2019 04:16:42 +0900 (JST)
Subject: [ruby-changes:59204] 7dbbba38a0 (master): Make sure we don't push MOVED or NONE on the stack
https://git.ruby-lang.org/ruby.git/commit/?id=7dbbba38a0 From 7dbbba38a0a6acd41a43eb0c4fc416fe35e2345a Mon Sep 17 00:00:00 2001 From: Aaron Patterson <tenderlove@r...> Date: Fri, 11 Oct 2019 17:13:02 -0700 Subject: Make sure we don't push MOVED or NONE on the stack diff --git a/tool/ruby_vm/views/_insn_entry.erb b/tool/ruby_vm/views/_insn_entry.erb index cdadd93..90e1268 100644 --- a/tool/ruby_vm/views/_insn_entry.erb +++ b/tool/ruby_vm/views/_insn_entry.erb @@ -64,6 +64,8 @@ INSN_ENTRY(<%= insn.name %>) https://github.com/ruby/ruby/blob/trunk/tool/ruby_vm/views/_insn_entry.erb#L64 INC_SP(INSN_ATTR(sp_inc)); % insn.rets.reverse_each.with_index do |ret, i| TOPN(<%= i %>) = <%= insn.cast_to_VALUE ret %>; + VM_ASSERT(!RB_TYPE_P(TOPN(<%= i %>), T_NONE)); + VM_ASSERT(!RB_TYPE_P(TOPN(<%= i %>), T_MOVED)); % end % end if (leaf) ADD_PC(INSN_ATTR(width)); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/