mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
Make leaf const in VM generator
Assigning to `leaf` in insns.def would give undesirable results.
This commit is contained in:
parent
26e4887eed
commit
a785e6c356
@ -24,7 +24,7 @@ INSN_ENTRY(<%= insn.name %>)
|
||||
<%= ope[:decl] %> = (<%= ope[:type] %>)GET_OPERAND(<%= i + 1 %>);
|
||||
% end
|
||||
# define INSN_ATTR(x) <%= insn.call_attribute(' ## x ## ') %>
|
||||
bool leaf = INSN_ATTR(leaf);
|
||||
const bool leaf = INSN_ATTR(leaf);
|
||||
% insn.pops.reverse_each.with_index.reverse_each do |pop, i|
|
||||
<%= pop[:decl] %> = <%= insn.cast_from_VALUE pop, "TOPN(#{i})"%>;
|
||||
% end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user