/arkcompiler/ets_runtime/ecmascript/compiler/aot_snapshot/ |
H A D | snapshot_constantpool_data.cpp | 39 JSHandle<JSTaggedValue> ihc = TryGetHClass(rootType, childType); in TryGetIHClass() local 40 if (ihc->IsUndefined()) { in TryGetIHClass() 42 ihc = TryGetHClassByPGOTypeLocation(loc); in TryGetIHClass() 43 if (ihc->IsUndefined()) { in TryGetIHClass() 44 ihc = TryGetHClassFromCached(properties, globalData); in TryGetIHClass() 47 return ihc; in TryGetIHClass() 128 JSHandle<JSTaggedValue> ihc, JSHandle<JSTaggedValue> chc) in CollectLiteralInfo() 159 if (!ihc->IsUndefined()) { in CollectLiteralInfo() 160 aotLiteralInfo->SetIhc(ihc.GetTaggedValue()); in CollectLiteralInfo() 186 bool BaseSnapshotInfo::CheckAOTIhcPropertiesForRep(JSThread *thread, const JSHandle<JSTaggedValue> &ihc, in CheckAOTIhcPropertiesForRep() argument 125 CollectLiteralInfo(JSHandle<TaggedArray> array, uint32_t constantPoolIndex, JSHandle<ConstantPool> snapshotConstantPool, const std::set<uint32_t> &skippedMethods, JSHandle<JSTaggedValue> ihc, JSHandle<JSTaggedValue> chc) CollectLiteralInfo() argument 250 JSHandle<JSTaggedValue> ihc = thread_->GlobalConstants()->GetHandledUndefined(); StoreDataToGlobalData() local 300 JSHandle<JSTaggedValue> ihc = undefinedHandle; StoreDataToGlobalData() local 348 JSHandle<JSTaggedValue> ihc = thread_->GlobalConstants()->GetHandledUndefined(); StoreDataToGlobalData() local 378 JSHandle<JSTaggedValue> ihc = thread_->GlobalConstants()->GetHandledUndefined(); StoreDataToGlobalData() local [all...] |
H A D | snapshot_constantpool_data.h | 83 JSHandle<JSTaggedValue> ihc, JSHandle<JSTaggedValue> chc); 88 static bool CheckAOTIhcPropertiesForRep(JSThread *thread, const JSHandle<JSTaggedValue> &ihc,
|
/arkcompiler/ets_runtime/ecmascript/compiler/pgo_type/ |
H A D | pgo_type_manager.cpp | 171 JSTaggedValue ihc = QueryHClass(protoTransType.ihcType, protoTransType.ihcType); in GenProtoTransitionInfo() local 175 if (ihc.IsUndefined() || baseIhc.IsUndefined() || transIhc.IsUndefined() || transPhc.IsUndefined()) { in GenProtoTransitionInfo() 180 JSHandle<JSTaggedValue>(thread_, ihc), in GenProtoTransitionInfo() 189 JSHandle<JSTaggedValue>(thread_, ihc), in GenProtoTransitionInfo()
|
H A D | pgo_type_parser.cpp | 258 auto ihc = ptManager_->QueryHClass(classType, classType); in GenerateHClassForPrototype() local 259 if (ihc.IsUndefined()) { in GenerateHClassForPrototype()
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | tagged_dictionary.cpp | 495 JSHandle<JSTaggedValue> ihc, in InsertTransitionItem() 501 int32_t entry1 = protoTransitionHandle->FindEntry(ihc.GetTaggedValue()); in InsertTransitionItem() 519 PointerToIndexDictionary::PutIfAbsent(thread, protoTransitionHandle, ihc, JSHandle<JSTaggedValue>(protoArray)); in InsertTransitionItem() 524 const JSThread *thread, JSHandle<JSTaggedValue> ihc, JSHandle<JSTaggedValue> baseIhc) const in FindTransitionByHClass() 526 ASSERT(ihc->IsJSHClass()); in FindTransitionByHClass() 529 int32_t entry1 = protoTransitionHandle->FindEntry(ihc.GetTaggedValue()); in FindTransitionByHClass() 531 LOG_ECMA(DEBUG) << "Selected ihc not found2!"; in FindTransitionByHClass() 494 InsertTransitionItem(const JSThread *thread, JSHandle<JSTaggedValue> ihc, JSHandle<JSTaggedValue> baseIhc, JSHandle<JSTaggedValue> transIhc, JSHandle<JSTaggedValue> transPhc) InsertTransitionItem() argument 523 FindTransitionByHClass( const JSThread *thread, JSHandle<JSTaggedValue> ihc, JSHandle<JSTaggedValue> baseIhc) const FindTransitionByHClass() argument
|
H A D | tagged_dictionary.h | 209 JSHandle<JSTaggedValue> ihc, 215 JSHandle<JSTaggedValue> ihc, 256 // [ihc, 258 // [base.ihc, 261 // [base.ihc(cloned),
|
H A D | js_object.h | 663 JSTaggedValue ihc = JSTaggedValue::Undefined()); 671 const JSHandle<JSHClass> &ihc); 673 const JSHandle<TaggedArray> &properties, uint32_t propsLen, const JSHandle<JSHClass> &ihc);
|
H A D | js_object.cpp | 2791 const JSHandle<JSHClass> &ihc) in CreateObjectFromPropertiesByIHClass() 2795 JSHandle<JSObject> obj = factory->NewOldSpaceObjLiteralByHClass(ihc); in CreateObjectFromPropertiesByIHClass() 2797 auto layout = LayoutInfo::Cast(ihc->GetLayout().GetTaggedObject()); in CreateObjectFromPropertiesByIHClass() 2808 const JSHandle<TaggedArray> &properties, uint32_t propsLen, const JSHandle<JSHClass> &ihc) in CheckPropertiesForRep() 2810 auto layout = LayoutInfo::Cast(ihc->GetLayout().GetTaggedObject()); in CheckPropertiesForRep() 2788 CreateObjectFromPropertiesByIHClass(const JSThread *thread, const JSHandle<TaggedArray> &properties, uint32_t propsLen, const JSHandle<JSHClass> &ihc) CreateObjectFromPropertiesByIHClass() argument 2807 CheckPropertiesForRep( const JSHandle<TaggedArray> &properties, uint32_t propsLen, const JSHandle<JSHClass> &ihc) CheckPropertiesForRep() argument
|
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/ |
H A D | pgo_profiler.cpp | 68 auto ihc = JSHClass::Cast(protoOrHClass.GetTaggedObject()); in ProfileDefineClass() local 69 SetRootProfileType(ihc, abcId, entityId, ProfileType::Kind::ClassId); in ProfileDefineClass() 70 protoOrHClass = ihc->GetProto(); in ProfileDefineClass() 124 JSTaggedType ihc = func->GetProtoTransRootHClass().GetRawData(); in ProfileProtoTransitionClass() local 125 if (JSTaggedValue(ihc).IsUndefined()) { in ProfileProtoTransitionClass() 130 [[maybe_unused]] bool success = transitionTable->TryInsertFakeParentItem(hclass.GetTaggedType(), ihc); in ProfileProtoTransitionClass() 131 ASSERT(success == true); // ihc wont conflict in ProfileProtoTransitionClass() 132 // record original ihc type in ProfileProtoTransitionClass() 133 ProfileClassRootHClass(func.GetTaggedType(), ihc, ProfileType::Kind::ClassId); in ProfileProtoTransitionClass() 134 // record transition ihc typ in ProfileProtoTransitionClass() 174 JSHandle<JSHClass> ihc = factory->NewEcmaHClass(JSObject::SIZE, JSType::JS_OBJECT, oldPrototype); ProfileProtoTransitionPrototype() local 1356 auto ihc = JSHClass::Cast(protoOrHClass.GetTaggedObject()); DumpDefineClass() local [all...] |
/arkcompiler/ets_runtime/ecmascript/stubs/ |
H A D | runtime_stubs-inl.h | 919 bool RuntimeStubs::ShouldUseAOTHClass(const JSHandle<JSTaggedValue> &ihc, in ShouldUseAOTHClass() argument 923 // In the case of incomplete data collection in PGO, AOT may not create ihc and chc at the same time. in ShouldUseAOTHClass() 925 return (!ihc->IsUndefined() || !chc->IsUndefined()) && !classLiteral->GetIsAOTUsed(); in ShouldUseAOTHClass() 948 JSMutableHandle<JSTaggedValue> ihc(thread, JSTaggedValue::Undefined()); in RuntimeCreateClassWithBuffer() 956 ihc.Update(aotLiteralInfo->GetIhc()); in RuntimeCreateClassWithBuffer() 973 if (ShouldUseAOTHClass(ihc, chc, classLiteral)) { in RuntimeCreateClassWithBuffer() 975 cls = ClassHelper::DefineClassWithIHClass(thread, base, extractor, lexenv, ihc, chc); in RuntimeCreateClassWithBuffer() 1157 JSHClass *ihc = JSHClass::Cast(protoOrHClass.GetTaggedObject()); local 1158 if (ihc->IsTS()) { 1159 JSHandle<JSHClass> ihcHandle(thread, ihc); [all...] |
H A D | runtime_stubs.h | 410 const JSHandle<JSTaggedValue>& ihc,
516 static inline bool ShouldUseAOTHClass(const JSHandle<JSTaggedValue> &ihc,
|
H A D | runtime_stubs.cpp | 3955 JSHandle<JSTaggedValue> ihc = GetHArg<JSTaggedValue>(argv, argc, 1); // 1: means the first parameter in DEF_RUNTIME_STUBS() local 3957 DefineFuncTryUseAOTHClass(thread, result, ihc, aotLiteralInfo); in DEF_RUNTIME_STUBS()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | stub_builder.cpp | 10123 DEFVARIABLE(ihc, VariableType::JS_ANY(), Undefined()); in DefineFunc() 10130 //AOT ihc infos always in unshareConstpool in DefineFunc() 10146 ihc = GetIhcFromAOTLiteralInfo(*val); in DefineFunc() 10173 BRANCH(TaggedIsUndefined(*ihc), &exit, &ihcNotUndefined); in DefineFunc() 10176 CallRuntime(glue, RTSTUB_ID(AOTEnableProtoChangeMarker), {*result, *ihc, *val}); in DefineFunc()
|