1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Make sure we don't push MOVED or NONE on the stack

This commit is contained in:
Aaron Patterson 2019-10-11 17:13:02 -07:00
parent 79eb5e1aca
commit 7dbbba38a0
No known key found for this signature in database
GPG key ID: 953170BCB4FFAFC6

View file

@ -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));