Home
last modified time | relevance | path

Searched refs:PropertiesCache (Results 1 - 10 of 10) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/ic/
H A Dproperties_cache.h28 class PropertiesCache { class
105 PropertiesCache() in PropertiesCache() function in panda::ecmascript::PropertiesCache
113 ~PropertiesCache() = default;
/arkcompiler/ets_runtime/ecmascript/ic/tests/
H A Dproperties_cache_test.cpp52 * @tc.desc: Creating PropertiesCache through "GetPropertiesCache" function,Set two values through "Set" function,
67 PropertiesCache *handleProCache = thread->GetPropertiesCache(); in HWTEST_F_L0()
75 EXPECT_EQ(handleProCache->Get(FuncHClass, handleKey10.GetTaggedValue()), -1); // PropertiesCache::NOT_FOUND in HWTEST_F_L0()
83 EXPECT_EQ(handleProCache->Get(FuncHClass, handleSymbol.GetTaggedValue()), -1); // PropertiesCache::NOT_FOUND in HWTEST_F_L0()
89 * @tc.desc: Creating PropertiesCache through "GetPropertiesCache" function,Set two values through "Set" function,
102 PropertiesCache *handleProCache = thread->GetPropertiesCache(); in HWTEST_F_L0()
107 EXPECT_EQ(handleProCache->Get(FuncHClass, handleKey.GetTaggedValue()), -1); // PropertiesCache::NOT_FOUND in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/
H A Dlayout_info-inl.h126 PropertiesCache *cache = thread->GetPropertiesCache();
128 if (index == PropertiesCache::NOT_FOUND) {
H A Decma_context.h553 PropertiesCache *GetPropertiesCache() const in GetPropertiesCache()
671 PropertiesCache *propertiesCache_ {nullptr};
H A Djs_thread.h48 class PropertiesCache;
457 PUBLIC_API PropertiesCache *GetPropertiesCache() const;
H A Djs_thread.cpp1067 PropertiesCache *JSThread::GetPropertiesCache() const in GetPropertiesCache()
H A Decma_context.cpp71 propertiesCache_ = new PropertiesCache(); in Initialize()
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dstub_builder-inl.h3873 PtrAdd(cache, PtrMul(ZExtInt32ToPtr(hash), IntPtr(PropertiesCache::PropertyKey::GetPropertyKeySize()))); in SetToPropertiesCache()
3874 StoreWithoutBarrier(VariableType::JS_POINTER(), prop, IntPtr(PropertiesCache::PropertyKey::GetHclassOffset()), cls); in SetToPropertiesCache()
3875 StoreWithoutBarrier(VariableType::JS_ANY(), prop, IntPtr(PropertiesCache::PropertyKey::GetKeyOffset()), key); in SetToPropertiesCache()
3876 StoreWithoutBarrier(VariableType::INT32(), prop, IntPtr(PropertiesCache::PropertyKey::GetResultsOffset()), result); in SetToPropertiesCache()
3889 return Int32And(Int32Xor(clsHash, keyHash), Int32(PropertiesCache::CACHE_LENGTH_MASK)); in HashFromHclassAndKey()
H A Dstub_builder.cpp354 BRANCH(Int32Equal(index, Int32(PropertiesCache::NOT_FOUND)), &notFind, &find); in FindElementWithCache()
358 BRANCH(Int32Equal(*result, Int32(PropertiesCache::NOT_FOUND)), &exit, &setCache); in FindElementWithCache()
379 DEFVARIABLE(result, VariableType::INT32(), Int32(PropertiesCache::NOT_FOUND)); in GetIndexFromPropertiesCache()
385 PtrAdd(cache, PtrMul(ZExtInt32ToPtr(hash), IntPtr(PropertiesCache::PropertyKey::GetPropertyKeySize()))); in GetIndexFromPropertiesCache()
386 size_t propHclassOffset = PropertiesCache::PropertyKey::GetHclassOffset(); in GetIndexFromPropertiesCache()
387 size_t propKeyOffset = PropertiesCache::PropertyKey::GetKeyOffset(); in GetIndexFromPropertiesCache()
394 result = Load(VariableType::INT32(), prop, IntPtr(PropertiesCache::PropertyKey::GetResultsOffset())); in GetIndexFromPropertiesCache()
/arkcompiler/ets_runtime/ecmascript/stubs/
H A Druntime_stubs.cpp3127 PropertiesCache *cache = thread->GetPropertiesCache(); in FindElementWithCache()
3129 if (index == PropertiesCache::NOT_FOUND) { in FindElementWithCache()

Completed in 46 milliseconds