/ark/runtime_core/libpandafile/tests/ |
D | panda_cache_test.cpp | 39 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/ |
D | vregisterCache.ts | 94 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/ |
D | index_table_cache.h | 44 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;
|
D | job_queue.cpp | 42 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()
|
D | JobQueue.cmake | 15 ${VERIFICATION_SOURCES_DIR}/job_queue/cache.cpp
|
D | job_queue.h | 92 static CacheOfRuntimeThings *cache; variable
|
D | cache.h | 436 …explicit FastAPIClass(CacheOfRuntimeThings &cache) : data_ {cache.data_}, core_lang_ctx {cache.cor… in FastAPIClass() argument
|
/ark/ts2abc/ts2panda/src/pass/ |
D | cacheExpander.ts | 29 let cache = pandaGen.getVregisterCache(); 31 let item = cache.getCache(i);
|
/ark/js_runtime/ecmascript/builtins/ |
D | builtins_regexp.cpp | 1661 …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 …]
|
D | builtins_regexp.h | 118 static void AddResultInCache(JSThread *thread, JSHandle<RegExpExecResultCache> cache, 123 static void GrowRegexpCache(JSThread *thread, JSHandle<RegExpExecResultCache> cache);
|
/ark/js_runtime/ecmascript/ |
D | layout_info-inl.h | 111 PropertiesCache *cache = thread->GetPropertiesCache(); in FindElementWithCache() local 112 int index = cache->Get(cls, key); in FindElementWithCache() 115 cache->Set(cls, key, index); in FindElementWithCache()
|
D | js_for_in_iterator.cpp | 129 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 | .gitignore | 13 .cache
|
D | README.md | 34 │ ├─ ic # Inline cache module
|
/ark/runtime_core/ |
D | .gitignore | 15 .cache
|
/ark/runtime_core/verification/ |
D | verification.gni | 57 "$ark_root/verification/job_queue/cache.cpp", 65 verifier_cache_sources = [ "$ark_root/verification/cache/results_cache.cpp" ]
|
D | Verification.cmake | 24 include(${VERIFICATION_SOURCES_DIR}/cache/Cache.cmake)
|
/ark/ts2abc/ts2panda/scripts/ |
D | npm-install.sh | 28 npm cache clean -f
|
/ark/runtime_core/verification/cache/ |
D | Cache.cmake | 15 ${VERIFICATION_SOURCES_DIR}/cache/results_cache.cpp
|
/ark/runtime_core/verification/gen/templates/ |
D | job_fill_gen.h.erb | 22 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/ |
D | regAllocator.ts | 282 let cache = pandaGen.getVregisterCache(); 292 let cacheItem = cache.getCache(i);
|
/ark/runtime_core/docs/ |
D | memory-management-SW-requirements.md | 39 - GC for code cache (optional)
|
/ark/js_runtime/ecmascript/base/ |
D | json_stringifier.cpp | 698 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/ |
D | overview.md | 44 …ntime directly uses the type information to statically generate an inline cache to accelerate byte…
|
/ark/runtime_core/runtime/interpreter/ |
D | interpreter-inl.h | 2667 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 …]
|