Lines Matching defs:fun
128 JSHClass *JSFunction::GetOrCreateInitialJSHClass(JSThread *thread, const JSHandle<JSFunction> &fun)
130 JSTaggedValue protoOrHClass(fun->GetProtoOrHClass());
137 if (!fun->HasFunctionPrototype()) {
138 proto = JSHandle<JSTaggedValue>::Cast(NewJSFunctionPrototype(thread, fun));
140 thread->GetEcmaVM()->GetPGOProfiler()->ProfileClassRootHClass(fun.GetTaggedType(),
144 proto = JSHandle<JSTaggedValue>(thread, fun->GetProtoOrHClass());
150 fun->SetProtoOrHClass(thread, hclass);
153 thread->GetEcmaVM()->GetPGOProfiler()->ProfileClassRootHClass(fun.GetTaggedType(), hclass.GetTaggedType());
155 thread->GetEcmaVM()->GetPGOProfiler()->ProfileProtoTransitionClass(fun, hclass, proto);
211 void JSFunction::SetFunctionPrototypeOrInstanceHClass(const JSThread *thread, const JSHandle<JSFunction> &fun,
215 fun->SetProtoOrHClass(thread, protoHandle.GetTaggedValue());