mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
437dd8815b
commit
08e47ab98a
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue