Home
last modified time | relevance | path

Searched refs:cache (Results 1 – 25 of 27) sorted by relevance

12

/ark/runtime_core/libpandafile/tests/
Dpanda_cache_test.cpp39 PandaCache cache; in TEST() local
41 ASSERT_EQ(cache.GetMethodFromCache(id1), nullptr); in TEST()
44 cache.SetMethodCache(id1, method1); in TEST()
45 ASSERT_EQ(cache.GetMethodFromCache(id1), method1); in TEST()
49 cache.SetMethodCache(id2, method2); in TEST()
50 ASSERT_EQ(cache.GetMethodFromCache(id2), method2); in TEST()
55 PandaCache cache; in TEST() local
58 ASSERT_EQ(cache.GetFieldFromCache(new_id1), nullptr); in TEST()
61 cache.SetFieldCache(new_id1, field1); in TEST()
62 ASSERT_EQ(cache.GetFieldFromCache(new_id1), field1); in TEST()
[all …]
/ark/ts2abc/ts2panda/src/base/
DvregisterCache.ts94 private cache: CacheItem[] = []; property in VregisterCache
101 this.cache[i] = new CacheItem(handler);
108 return this.cache[index];
113 let cache = pandaGen.getVregisterCache();
114 let cacheItem = cache.getCache(index);
/ark/runtime_core/verification/job_queue/
Dindex_table_cache.h44 auto it = cache.find(std::make_pair(pf, std::make_pair(type_idx, ptr))); in GetFromCache()
45 if (it == cache.end()) { in GetFromCache()
62 …auto &ref = cache.emplace(std::make_pair(pf, std::make_pair(type_idx, ptr)), std::move(table)).fir… in AddToCache()
68 Cache cache;
Djob_queue.cpp42 CacheOfRuntimeThings *JobQueue::cache = nullptr; member in panda::verifier::JobQueue
75 cache = new (mem::AllocatorAdapter<CacheOfRuntimeThings>().allocate(1)) CacheOfRuntimeThings {}; in Initialize()
77 cache->FastAPI().InitializePandaAssemblyRootClasses(); in Initialize()
136 cache->~CacheOfRuntimeThings(); in Destroy()
137 mem::AllocatorAdapter<CacheOfRuntimeThings>().deallocate(cache, 1); in Destroy()
176 return *cache; in GetCache()
DJobQueue.cmake15 ${VERIFICATION_SOURCES_DIR}/job_queue/cache.cpp
Djob_queue.h92 static CacheOfRuntimeThings *cache; variable
Dcache.h436 …explicit FastAPIClass(CacheOfRuntimeThings &cache) : data_ {cache.data_}, core_lang_ctx {cache.cor… in FastAPIClass() argument
/ark/ts2abc/ts2panda/src/pass/
DcacheExpander.ts29 let cache = pandaGen.getVregisterCache();
31 let item = cache.getCache(i);
/ark/js_runtime/ecmascript/builtins/
Dbuiltins_regexp.cpp1661 …id RegExpExecResultCache::AddResultInCache(JSThread *thread, JSHandle<RegExpExecResultCache> cache, in AddResultInCache() argument
1677 uint32_t entry = hash & (cache->GetCacheLength() - 1); in AddResultInCache()
1679 if (cache->Get(index) == JSTaggedValue::Undefined()) { in AddResultInCache()
1680 cache->SetCacheCount(thread, cache->GetCacheCount() + 1); in AddResultInCache()
1681 cache->SetEntry(thread, entry, patternValue, flagsValue, inputValue, lastIndexValue); in AddResultInCache()
1682 cache->UpdateResultArray(thread, entry, resultArray.GetTaggedValue(), type); in AddResultInCache()
1683 } else if (cache->Match(entry, patternValue, flagsValue, inputValue)) { in AddResultInCache()
1684 cache->UpdateResultArray(thread, entry, resultArray.GetTaggedValue(), type); in AddResultInCache()
1686 uint32_t entry2 = (entry + 1) & (cache->GetCacheLength() - 1); in AddResultInCache()
1688 if (cache->GetCacheLength() < DEFAULT_CACHE_NUMBER) { in AddResultInCache()
[all …]
Dbuiltins_regexp.h118 static void AddResultInCache(JSThread *thread, JSHandle<RegExpExecResultCache> cache,
123 static void GrowRegexpCache(JSThread *thread, JSHandle<RegExpExecResultCache> cache);
/ark/js_runtime/ecmascript/
Dlayout_info-inl.h111 PropertiesCache *cache = thread->GetPropertiesCache(); in FindElementWithCache() local
112 int index = cache->Get(cls, key); in FindElementWithCache()
115 cache->Set(cls, key, index); in FindElementWithCache()
Djs_for_in_iterator.cpp129 JSHandle<TaggedArray> cache(thread, enumCache); in FastGetAllEnumKeys() local
130 uint32_t length = cache->GetLength(); in FastGetAllEnumKeys()
144 JSTaggedValue key = cache->Get(i); in FastGetAllEnumKeys()
/ark/js_runtime/
D.gitignore13 .cache
DREADME.md34 │ ├─ ic # Inline cache module
/ark/runtime_core/
D.gitignore15 .cache
/ark/runtime_core/verification/
Dverification.gni57 "$ark_root/verification/job_queue/cache.cpp",
65 verifier_cache_sources = [ "$ark_root/verification/cache/results_cache.cpp" ]
DVerification.cmake24 include(${VERIFICATION_SOURCES_DIR}/cache/Cache.cmake)
/ark/ts2abc/ts2panda/scripts/
Dnpm-install.sh28 npm cache clean -f
/ark/runtime_core/verification/cache/
DCache.cmake15 ${VERIFICATION_SOURCES_DIR}/cache/results_cache.cpp
/ark/runtime_core/verification/gen/templates/
Djob_fill_gen.h.erb22 bool ResolveIdentifiersForJob(CacheOfRuntimeThings& cache, Job& job, const uint8_t* start, const ui…
32 …LOG(DEBUG, VERIFIER) << "JOBFILL: Filling Job cache for method '" << job.JobCachedMethod().name <<…
62 auto cache_api = cache.FastAPI();
/ark/ts2abc/ts2panda/src/
DregAllocator.ts282 let cache = pandaGen.getVregisterCache();
292 let cacheItem = cache.getCache(i);
/ark/runtime_core/docs/
Dmemory-management-SW-requirements.md39 - GC for code cache (optional)
/ark/js_runtime/ecmascript/base/
Djson_stringifier.cpp698 JSHandle<TaggedArray> cache(thread_, enumCache); in SerializeKeys() local
699 uint32_t length = cache->GetLength(); in SerializeKeys()
701 JSTaggedValue key = cache->Get(i); in SerializeKeys()
/ark/js_runtime/docs/
Doverview.md44 …ntime directly uses the type information to statically generate an inline cache to accelerate byte…
/ark/runtime_core/runtime/interpreter/
Dinterpreter-inl.h2667 auto cache = this->GetThread()->GetInterpreterCache(); in ResolveMethod() local
2669 …auto *res = cache->template Get<Method>(this->GetInst().GetAddress(), this->GetFrame()->GetMethod(… in ResolveMethod()
2682 cache->Set(this->GetInst().GetAddress(), method, this->GetFrame()->GetMethod()); in ResolveMethod()
2689 auto cache = this->GetThread()->GetInterpreterCache(); in ResolveField() local
2691 …auto *res = cache->template Get<Field>(this->GetInst().GetAddress(), this->GetFrame()->GetMethod()… in ResolveField()
2709 cache->Set(this->GetInst().GetAddress(), field, this->GetFrame()->GetMethod()); in ResolveField()
2716 auto cache = this->GetThread()->GetInterpreterCache(); in ResolveType() local
2718 …auto *res = cache->template Get<Class>(this->GetInst().GetAddress(), this->GetFrame()->GetMethod()… in ResolveType()
2735 cache->Set(this->GetInst().GetAddress(), klass, this->GetFrame()->GetMethod()); in ResolveType()
3345 auto cache = this->GetThread()->GetInterpreterCache(); in InitializeObject() local
[all …]

12