bare_instructions.rb: sort attributes [ci skip]

This enhances stability of the generated source code (namely
insns_info.inc) across attribute insertion / deletion.  It does
not change the compiled binary at all; just a bit of readability.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shyouhei 2018-10-29 02:07:52 +00:00
Родитель 437dd8815b
Коммит 08e47ab98a
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -58,7 +58,9 @@ class RubyVM::BareInstructions
end
def attributes
return @attrs.values
return @attrs \
. sort_by {|k, _| k } \
. map {|_, v| v }
end
def width