From 8ac9a04cb40208274511227dc7da65118e86ad4a Mon Sep 17 00:00:00 2001 From: lifansheng Date: Sat, 11 Sep 2021 20:21:09 +0800 Subject: [PATCH 1/2] modify host_test Signed-off-by: lifansheng --- ecmascript/ic/ic_runtime.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/ecmascript/ic/ic_runtime.cpp b/ecmascript/ic/ic_runtime.cpp index e5b0b4c705..f30a899092 100644 --- a/ecmascript/ic/ic_runtime.cpp +++ b/ecmascript/ic/ic_runtime.cpp @@ -162,7 +162,6 @@ JSTaggedValue LoadICRuntime::LoadMiss(JSHandle receiver, JSHandle #endif // do not cache element if (!op.IsFastMode() && op.IsFound()) { - icAccessor_.SetAsMega(); return result.GetTaggedValue(); } @@ -184,7 +183,6 @@ JSTaggedValue StoreICRuntime::StoreMiss(JSHandle receiver, JSHand if (found) { SlowRuntimeStub::TryUpdateGlobalRecord(thread_, key.GetTaggedValue(), value.GetTaggedValue()); RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread_); - icAccessor_.SetAsMega(); return JSTaggedValue::Undefined(); } } -- Gitee From 0e196664e55e84a5b6c4ec36ed88ac86b0599320 Mon Sep 17 00:00:00 2001 From: lifansheng Date: Sat, 11 Sep 2021 20:34:31 +0800 Subject: [PATCH 2/2] modify host_test Signed-off-by: lifansheng --- ecmascript/ic/ic_runtime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecmascript/ic/ic_runtime.cpp b/ecmascript/ic/ic_runtime.cpp index f30a899092..33b3161800 100644 --- a/ecmascript/ic/ic_runtime.cpp +++ b/ecmascript/ic/ic_runtime.cpp @@ -141,7 +141,6 @@ JSTaggedValue LoadICRuntime::LoadMiss(JSHandle receiver, JSHandle bool found = false; JSTaggedValue res = SlowRuntimeStub::LdGlobalRecord(thread_, key.GetTaggedValue(), &found); if (found) { - icAccessor_.SetAsMega(); return res; } } @@ -162,6 +161,7 @@ JSTaggedValue LoadICRuntime::LoadMiss(JSHandle receiver, JSHandle #endif // do not cache element if (!op.IsFastMode() && op.IsFound()) { + icAccessor_.SetAsMega(); return result.GetTaggedValue(); } -- Gitee