From c49d4cf79b8bc174ff56b4826b5e106942c0d875 Mon Sep 17 00:00:00 2001 From: Petrov Igor Date: Sat, 24 Sep 2022 14:23:14 +0300 Subject: [PATCH] [MM] Avoid virtual calls in barriers Signed-off-by: Petrov Igor --- runtime/js_object.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/js_object.cpp b/runtime/js_object.cpp index 2cbb9f167..756bd1484 100644 --- a/runtime/js_object.cpp +++ b/runtime/js_object.cpp @@ -1885,7 +1885,7 @@ void ECMAObject::SetHash(int32_t hash) TaggedArray *array = TaggedArray::Cast(value.GetHeapObject()); array->Set(thread, 0, JSTaggedValue(hash)); } else { - ObjectAccessor::SetDynPrimitive(thread, this, HASH_OFFSET, JSTaggedValue(hash).GetRawData()); + ObjectAccessor::SetDynPrimitive(this, HASH_OFFSET, JSTaggedValue(hash).GetRawData()); } } -- Gitee