summaryrefslogtreecommitdiff
path: root/tool/ruby_vm
diff options
context:
space:
mode:
Diffstat (limited to 'tool/ruby_vm')
-rw-r--r--tool/ruby_vm/models/bare_instructions.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/tool/ruby_vm/models/bare_instructions.rb b/tool/ruby_vm/models/bare_instructions.rb
index f2690501fc..2d6db2849e 100644
--- a/tool/ruby_vm/models/bare_instructions.rb
+++ b/tool/ruby_vm/models/bare_instructions.rb
@@ -69,9 +69,11 @@ class RubyVM::BareInstructions
return @variables \
. values \
. group_by {|h| h[:type] } \
+ . sort_by {|t, v| t } \
. map {|t, v| [t, v.map {|i| i[:name] }.sort ] } \
- . map {|t, v| sprintf("%s %s", t, v.join(', ')) } \
- . sort
+ . map {|t, v|
+ sprintf("MAYBE_UNUSED(%s) %s", t, v.join(', '))
+ }
end
def preamble
@@ -127,8 +129,7 @@ class RubyVM::BareInstructions
generate_attribute 'rb_num_t', 'retn', rets.size
generate_attribute 'rb_num_t', 'width', width
generate_attribute 'rb_num_t', 'sp_inc', rets.size - pops.size
- generate_attribute 'bool', 'handles_frame', \
- opes.any? {|o| /CALL_INFO/ =~ o[:type] }
+ generate_attribute 'bool', 'handles_frame', false
end
def typesplit a