aboutsummaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2019-10-11 17:13:02 -0700
committerAaron Patterson <tenderlove@ruby-lang.org>2019-12-11 11:07:15 -0800
commit7dbbba38a0a6acd41a43eb0c4fc416fe35e2345a (patch)
treec69d5ef4d75628420472ed31f65b34ed664658c9 /tool
parent79eb5e1acac2339c6ec71db723298bdfcd92b233 (diff)
downloadruby-7dbbba38a0a6acd41a43eb0c4fc416fe35e2345a.tar.gz
Make sure we don't push MOVED or NONE on the stack
Diffstat (limited to 'tool')
-rw-r--r--tool/ruby_vm/views/_insn_entry.erb2
1 files changed, 2 insertions, 0 deletions
diff --git a/tool/ruby_vm/views/_insn_entry.erb b/tool/ruby_vm/views/_insn_entry.erb
index cdadd93abc..90e1268d90 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 %>)
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));