From 6505994d58424b52deb5fc3fc6769b0710011436 Mon Sep 17 00:00:00 2001 From: Alexander Markov Date: Tue, 31 Oct 2017 22:01:08 +0000 Subject: [PATCH] [VM] Correct return type of _setHash Change-Id: I3f02d584d30fc7a2f3bd93858eaf77abe3c9f5b7 Reviewed-on: https://dart-review.googlesource.com/17720 Reviewed-by: Vyacheslav Egorov Commit-Queue: Alexander Markov --- runtime/lib/object_patch.dart | 2 +- runtime/vm/compiler/method_recognizer.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/lib/object_patch.dart b/runtime/lib/object_patch.dart index ad811df57c0..a31639fe253 100644 --- a/runtime/lib/object_patch.dart +++ b/runtime/lib/object_patch.dart @@ -5,7 +5,7 @@ // part of "core_patch.dart"; int _getHash(obj) native "Object_getHash"; -int _setHash(obj, hash) native "Object_setHash"; +void _setHash(obj, hash) native "Object_setHash"; @patch class Object { diff --git a/runtime/vm/compiler/method_recognizer.h b/runtime/vm/compiler/method_recognizer.h index 9f87824e419..dc790d02ecf 100644 --- a/runtime/vm/compiler/method_recognizer.h +++ b/runtime/vm/compiler/method_recognizer.h @@ -193,7 +193,7 @@ namespace dart { V(_TwoByteString, ==, TwoByteString_equality, Bool, 0x4719e83f) \ V(_Type, get:hashCode, Type_getHashCode, Smi, 0x18d0dde0) \ V(::, _getHash, Object_getHash, Smi, 0x2827856d) \ - V(::, _setHash, Object_setHash, Object, 0x302d1fe8) \ + V(::, _setHash, Object_setHash, Dynamic, 0x54cb3fbc) \ #define CORE_INTEGER_LIB_INTRINSIC_LIST(V) \