Home
last modified time | relevance | path

Searched refs:GetPrototype (Results 1 – 25 of 54) sorted by relevance

123

/arkcompiler/ets_runtime/ecmascript/tests/
Dobject_factory_test.cpp88 …EXPECT_TRUE(cls->GetPrototype() == GetGlobal(thread)->GetObjectFunctionPrototype().GetTaggedValue(… in HWTEST_F_L0()
92 auto *prototype = cls->GetPrototype().GetTaggedObject(); in HWTEST_F_L0()
96 EXPECT_TRUE(prototype == newObjCls->GetPrototype().GetTaggedObject()); in HWTEST_F_L0()
98 EXPECT_TRUE(prototype != newObjCls->GetPrototype().GetTaggedObject()); in HWTEST_F_L0()
125 EXPECT_TRUE(cls->GetPrototype() == GetGlobal(thread)->GetFunctionPrototype().GetTaggedValue()); in HWTEST_F_L0()
Djs_hclass_test.cpp65 EXPECT_EQ(objectClass->GetPrototype(), JSTaggedValue::Null()); in HWTEST_F_L0()
142 …EXPECT_EQ(JSTaggedValue::SameValue(objectClass->GetPrototype(), cloneClass->GetPrototype()), true); in HWTEST_F_L0()
153 …EXPECT_EQ(JSTaggedValue::SameValue(objectClass->GetPrototype(), cloneClass->GetPrototype()), true); in HWTEST_F_L0()
347 EXPECT_EQ(newClass->GetPrototype(), funcPrototype.GetTaggedValue()); in HWTEST_F_L0()
430 EXPECT_EQ(objectClass->GetPrototype(), nullHandle.GetTaggedValue()); in HWTEST_F_L0()
432 EXPECT_EQ(objectClass->GetPrototype(), objectFuncPrototype.GetTaggedValue()); in HWTEST_F_L0()
Djs_forin_iterator_test.cpp56 EXPECT_TRUE(JSTaggedValue::GetPrototype(thread, JSHandle<JSTaggedValue>(grandfather)).IsNull()); in HWTEST_F_L0()
Djs_proxy_test.cpp324 …JSTaggedValue::SameValue(JSTaggedValue::GetPrototype(thread, targetHandle), proto.GetTaggedValue()… in HWTEST_F_L0()
332 …EXPECT_TRUE(JSTaggedValue::SameValue(JSProxy::GetPrototype(thread, proxyHandle), proto.GetTaggedVa… in HWTEST_F_L0()
343 …EXPECT_TRUE(JSTaggedValue::SameValue(JSProxy::GetPrototype(thread, proxyHandle2), JSTaggedValue::N… in HWTEST_F_L0()
369 …JSTaggedValue::SameValue(JSTaggedValue::GetPrototype(thread, targetHandle), proto.GetTaggedValue()… in HWTEST_F_L0()
Djs_object_test.cpp361 JSTaggedValue::GetPrototype(thread, JSHandle<JSTaggedValue>(grandfather))); in HWTEST_F_L0()
362 …JSHandle<JSTaggedValue> testFather(thread, JSTaggedValue::GetPrototype(thread, JSHandle<JSTaggedVa… in HWTEST_F_L0()
363 …JSHandle<JSTaggedValue> testSon(thread, JSTaggedValue::GetPrototype(thread, JSHandle<JSTaggedValue… in HWTEST_F_L0()
449 …EXPECT_EQ(JSTaggedValue::GetPrototype(thread, JSHandle<JSTaggedValue>(son)), father.GetTaggedValue… in HWTEST_F_L0()
450 …EXPECT_EQ(JSTaggedValue::GetPrototype(thread, JSHandle<JSTaggedValue>(father)), grandfather.GetTag… in HWTEST_F_L0()
451 …EXPECT_EQ(JSTaggedValue::GetPrototype(thread, JSHandle<JSTaggedValue>(grandfather)), JSTaggedValue… in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/
Djs_for_in_iterator.cpp44 JSTaggedValue proto = hclass->GetPrototype(); in CheckObjProto()
48 return hclass->GetPrototype().GetTaggedObject()->GetClass() == in CheckObjProto()
145 JSTaggedValue proto = JSTaggedValue::GetPrototype(thread, object); in NextInternal()
Dglobal_env.cpp55 JSObject::GetPrototype(JSHandle<JSObject>(GetStringFunction()))); in GetStringPrototypeFunctionByName()
Djs_proxy.h32 static JSTaggedValue GetPrototype(JSThread *thread, const JSHandle<JSProxy> &proxy);
Dobject_fast_operator-inl.h105 holder = hclass->GetPrototype(); in GetPropertyByName()
163 holder = hclass->GetPrototype(); in SetPropertyByName()
200 holder = hclass->GetPrototype(); in SetPropertyByName()
272 holder = JSObject::Cast(holder)->GetJSHClass()->GetPrototype(); in GetPropertyByIndex()
328 holder = JSObject::Cast(holder)->GetJSHClass()->GetPrototype(); in SetPropertyByIndex()
Djs_hclass.cpp519 JSTaggedValue proto = jshclass->GetPrototype(); in EnableProtoChangeMarker()
576 JSTaggedValue proto = user->GetPrototype(); in RegisterOnProtoChain()
609 if (!jshclass->GetPrototype().IsECMAObject()) { in UnregisterOnProtoChain()
619 JSTaggedValue proto = jshclass->GetPrototype(); in UnregisterOnProtoChain()
Djs_function.h125 return JSHClass::Cast(protoOrHClass.GetTaggedObject())->GetPrototype(); in GetFunctionPrototype()
135 proto = JSHClass::Cast(proto.GetTaggedObject())->GetPrototype(); in SetFunctionPrototype()
Djs_proxy.cpp50 JSTaggedValue JSProxy::GetPrototype(JSThread *thread, const JSHandle<JSProxy> &proxy) in GetPrototype() function in panda::ecmascript::JSProxy
71 return JSTaggedValue::GetPrototype(thread, targetHandle); in GetPrototype()
96 JSTaggedValue targetProto = JSTaggedValue::GetPrototype(thread, targetHandle); in GetPrototype()
158 JSTaggedValue targetProto = JSTaggedValue::GetPrototype(thread, targetHandle); in SetPrototype()
Djs_tagged_value.cpp822 objFunc->SetProtoOrHClass(thread, cachedJSHClass->GetPrototype()); in SetPrototype()
829 JSTaggedValue JSTaggedValue::GetPrototype(JSThread *thread, const JSHandle<JSTaggedValue> &obj) in GetPrototype() function in panda::ecmascript::JSTaggedValue
835 return JSProxy::GetPrototype(thread, JSHandle<JSProxy>(obj)); in GetPrototype()
837 return JSObject::GetPrototype(JSHandle<JSObject>(obj)); in GetPrototype()
1032 return JSTaggedValue::GetPrototype(thread, obj); in GetSuperBase()
Djs_hclass-inl.h231 SetPrototype(thread, jshclass->GetPrototype()); in Copy()
Djs_object.cpp1172 JSTaggedValue JSObject::GetPrototype(const JSHandle<JSObject> &obj) in GetPrototype() function in panda::ecmascript::JSObject
1175 return hclass->GetPrototype(); in GetPrototype()
1181 JSTaggedValue current = JSObject::GetPrototype(obj); in SetPrototype()
1199 …tempProtoHandle.Update(JSTaggedValue::GetPrototype(thread, JSHandle<JSTaggedValue>(tempProtoHandle… in SetPrototype()
1311 currentObj.Update(GetPrototype(currentObj)); in GetAllPropertyKeys()
1851 if (hclass->GetPrototype() != env->GetObjectFunctionPrototype().GetTaggedValue()) { in ToPropertyDescriptorFast()
1854 if (JSObject::Cast(hclass->GetPrototype().GetTaggedObject())->GetClass() != in ToPropertyDescriptorFast()
2138 ihc->SetPrototype(thread, oldHC->GetPrototype()); in CreateObjectFromProperties()
Dsubtyping_operator.cpp225 JSHandle<JSTaggedValue> prototype(thread, oldHClass->GetPrototype()); in TryMaintainTSSubtyping()
Dobject_operator.cpp262 JSTaggedValue proto = JSTaggedValue::GetPrototype(thread_, holder_); in GlobalLookupProperty()
284 JSTaggedValue proto = JSTaggedValue::GetPrototype(thread_, holder_); in LookupProperty()
/arkcompiler/ets_runtime/ecmascript/containers/tests/
Dcontainers_queue_test.cpp114 JSTaggedValue resultProto = JSTaggedValue::GetPrototype(thread, JSHandle<JSTaggedValue>(queue)); in HWTEST_F_L0()
Dcontainers_stack_test.cpp133 JSTaggedValue resultProto = JSTaggedValue::GetPrototype(thread, JSHandle<JSTaggedValue>(stack)); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/napi/test/
Djsnapi_tests.cpp391 Local<JSValueRef> protoType = function->GetPrototype(vm_); in HWTEST_F_L0()
395 protoType = object->GetPrototype(vm_); in HWTEST_F_L0()
399 protoType = native->GetPrototype(vm_); in HWTEST_F_L0()
793 …JSHandle<JSTaggedValue> mapPrototypeProto(thread_, JSTaggedValue::GetPrototype(thread_, mapPrototy… in HWTEST_F_L0()
798 JSHandle<JSTaggedValue> mapProto(thread_, JSTaggedValue::GetPrototype(thread_, map)); in HWTEST_F_L0()
817 …JSHandle<JSTaggedValue> sonPrototypeProto(thread_, JSTaggedValue::GetPrototype(thread_, sonPrototy… in HWTEST_F_L0()
820 JSHandle<JSTaggedValue> sonProto(thread_, JSTaggedValue::GetPrototype(thread_, map)); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/ic/
Dic_runtime.cpp52 JSTaggedValue proto = hclass->GetPrototype(); in UpdateLoadHandler()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_object.cpp454 return JSTaggedValue::GetPrototype(thread, JSHandle<JSTaggedValue>(obj)); in GetPrototypeOf()
732 msgValueHandle.Update(JSTaggedValue::GetPrototype(thread, msgValueHandle)); in IsPrototypeOf()
911 return JSTaggedValue::GetPrototype(thread, JSHandle<JSTaggedValue>(obj)); in ProtoGetter()
Dbuiltins_reflect.cpp194 return JSTaggedValue::GetPrototype(thread, val); in ReflectGetPrototypeOf()
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/
Dpgo_profiler.cpp131 auto superFuncValue = JSTaggedValue::GetPrototype(thread, ctorValue); in ProfileDefineClass()
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_object_test.cpp110 …JSTaggedValue resultProto = JSTaggedValue::GetPrototype(thread, JSHandle<JSTaggedValue>(jtHandle)); in HWTEST_F_L0()
129 …JSTaggedValue resultProtoTg = JSTaggedValue::GetPrototype(thread, JSHandle<JSTaggedValue>(jtHandle… in HWTEST_F_L0()
150 …JSTaggedValue resultProtoVn = JSTaggedValue::GetPrototype(thread, JSHandle<JSTaggedValue>(jtHandle… in HWTEST_F_L0()
210 JSTaggedValue resultProto = JSTaggedValue::GetPrototype(thread, jtHandle); in HWTEST_F_L0()

123