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
@ -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…
x
Reference in New Issue
Block a user