File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
src/main/java/org/truffleruby/core/kernel Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -933,7 +933,6 @@ protected boolean isFrozen(Object self,
933
933
@ CoreMethod (names = "hash" )
934
934
public abstract static class HashNode extends CoreMethodArrayArgumentsNode {
935
935
936
-
937
936
public static HashNode create () {
938
937
return KernelNodesFactory .HashNodeFactory .create (null );
939
938
}
@@ -965,17 +964,12 @@ protected long hashBignum(RubyBignum value) {
965
964
return HashOperations .hashBignum (value , getContext (), this );
966
965
}
967
966
968
- @ Specialization
969
- protected int hash (Nil self ) {
967
+ @ Specialization ( guards = "!isRubyBignum(self)" )
968
+ protected int hash (ImmutableRubyObject self ) {
970
969
return System .identityHashCode (self );
971
970
}
972
971
973
972
@ Specialization
974
- protected int hashEncoding (RubyEncoding self ) {
975
- return System .identityHashCode (self );
976
- }
977
-
978
- @ Specialization (guards = "!isRubyBignum(self)" )
979
973
protected int hash (RubyDynamicObject self ) {
980
974
return System .identityHashCode (self );
981
975
}
You can’t perform that action at this time.
0 commit comments