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));