From b658e3992dfb26f330c06c8cdcd2b04b52aed0fd Mon Sep 17 00:00:00 2001 From: lifansheng Date: Thu, 21 Apr 2022 19:53:39 +0800 Subject: [PATCH] modify CI fail Change-Id: I1ef18da0aa27ecfa6da69c45ab6790beba82cdf6 Signed-off-by: lifansheng --- ecmascript/ic/tests/ic_runtime_stub_test.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ecmascript/ic/tests/ic_runtime_stub_test.cpp b/ecmascript/ic/tests/ic_runtime_stub_test.cpp index 023a396e..4c68e7b9 100644 --- a/ecmascript/ic/tests/ic_runtime_stub_test.cpp +++ b/ecmascript/ic/tests/ic_runtime_stub_test.cpp @@ -55,7 +55,7 @@ public: TestHelper::DestroyEcmaVMWithScope(instance, scope); } - PandaVM *instance {nullptr}; + EcmaVM *instance {nullptr}; EcmaHandleScope *scope {nullptr}; JSThread *thread {nullptr}; }; @@ -209,7 +209,7 @@ HWTEST_F_L0(ICRuntimeStubTest, TryStoreICAndLoadIC_ByName) TaggedObject *handleTaggedObject = handleFirstObjClassVal.GetWeakReferentUnChecked(); JSHClass *handleNewObjClass = static_cast(handleTaggedObject); JSHandle handleNewObj = factory->NewJSObject(JSHandle(thread, handleNewObjClass)); - + JSHandle handleArr = factory->NewTaggedArray(1); handleArr->Set(thread, 0, JSTaggedValue::Undefined()); JSHandle handleBoxValue(thread, JSTaggedValue::Undefined()); @@ -316,7 +316,7 @@ HWTEST_F_L0(ICRuntimeStubTest, StoreICWithHandler) ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); JSHandle env = thread->GetEcmaVM()->GetGlobalEnv(); JSHandle objFun = env->GetObjectFunction(); - + JSHandle keyHandle(factory->NewFromASCII("key")); JSHandle boxHandler = factory->NewPropertyBox(keyHandle); JSHandle setter = factory->NewJSFunction(env, reinterpret_cast(TestSetter)); @@ -373,7 +373,7 @@ HWTEST_F_L0(ICRuntimeStubTest, LoadICWithHandler) ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); JSHandle env = thread->GetEcmaVM()->GetGlobalEnv(); JSHandle objFun = env->GetObjectFunction(); - + JSHandle keyHandle(factory->NewFromASCII("key")); JSHandle valueHandle(thread, JSTaggedValue(1)); JSHandle boxHandler = factory->NewPropertyBox(keyHandle); @@ -416,7 +416,7 @@ HWTEST_F_L0(ICRuntimeStubTest, Prototype_StoreAndLoad) ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); JSHandle env = thread->GetEcmaVM()->GetGlobalEnv(); JSHandle objFun = env->GetObjectFunction(); - + JSHandle cellValue = factory->NewProtoChangeMarker(); EXPECT_TRUE(!cellValue->GetHasChanged()); @@ -492,7 +492,7 @@ HWTEST_F_L0(ICRuntimeStubTest, StoreWithTransition) array_size_t arrayLength = bitOffset + 2U; JSHandle handleTaggedArr = factory->NewTaggedArray(arrayLength); handleObj->SetProperties(thread, handleTaggedArr.GetTaggedValue()); - + JSHandle handleTransitionHandler = factory->NewTransitionHandler(); handleTransitionHandler->SetTransitionHClass(thread, JSTaggedValue(hclass)); handleTransitionHandler->SetHandlerInfo(thread, JSTaggedValue(handler));