Searched refs:CjsModuleCache (Results 1 – 8 of 8) sorted by relevance
| /arkcompiler/ets_runtime/ecmascript/require/tests/ |
| D | js_cjs_module_cache_test.cpp | 62 …JSHandle<CjsModuleCache> cache = CjsModuleCache::Create(thread, CjsModuleCache::DEAULT_DICTIONART_… in HWTEST_F_L0() 68 JSHandle<CjsModuleCache> newCacheTested = CjsModuleCache::PutIfAbsentAndReset(thread, cache, in HWTEST_F_L0() 90 …JSHandle<CjsModuleCache> cache = CjsModuleCache::Create(thread, CjsModuleCache::DEAULT_DICTIONART_… in HWTEST_F_L0() 99 JSHandle<CjsModuleCache> newCache = CjsModuleCache::PutIfAbsentAndReset(thread, cache, in HWTEST_F_L0() 102 … JSHandle<CjsModuleCache> newCacheTested = CjsModuleCache::ResetModule(thread, newCache, fileName, in HWTEST_F_L0()
|
| D | js_cjs_module_test.cpp | 67 …JSHandle<CjsModuleCache> cache = CjsModuleCache::Create(thread, CjsModuleCache::DEAULT_DICTIONART_… in HWTEST_F_L0() 83 …cache = CjsModuleCache::PutIfAbsentAndReset(thread, cache, fileName1, JSHandle<JSTaggedValue>(modu… in HWTEST_F_L0() 84 …cache = CjsModuleCache::PutIfAbsentAndReset(thread, cache, fileName2, JSHandle<JSTaggedValue>(modu… in HWTEST_F_L0()
|
| /arkcompiler/ets_runtime/ecmascript/require/ |
| D | js_cjs_module_cache.h | 27 class CjsModuleCache : public TaggedHashTable<CjsModuleCache> { 29 using HashTable = TaggedHashTable<CjsModuleCache>; 31 static CjsModuleCache *Cast(TaggedObject *object) in Cast() 34 return reinterpret_cast<CjsModuleCache *>(object); in Cast() 77 …static JSHandle<CjsModuleCache> Create(JSThread *thread, int numberOfElements = DEFAULT_ELEMENTS_N… 127 static JSHandle<CjsModuleCache> PutIfAbsentAndReset(const JSThread *thread, 128 const JSHandle<CjsModuleCache> &dictionary, 131 static JSHandle<CjsModuleCache> ResetModule(const JSThread *thread, 132 const JSHandle<CjsModuleCache> &dictionary, 135 …static int ComputeCompactSize([[maybe_unused]] const JSHandle<CjsModuleCache> &table, int computeH… in ComputeCompactSize()
|
| D | js_cjs_module_cache.cpp | 23 JSHandle<CjsModuleCache> CjsModuleCache::PutIfAbsentAndReset(const JSThread *thread, in PutIfAbsentAndReset() 24 … const JSHandle<CjsModuleCache> &dictionary, in PutIfAbsentAndReset() 34 JSHandle<CjsModuleCache> newDictionary(HashTable::GrowHashTable(thread, dictionary)); in PutIfAbsentAndReset() 45 JSHandle<CjsModuleCache> CjsModuleCache::ResetModule(const JSThread *thread, in ResetModule() 46 const JSHandle<CjsModuleCache> &dictionary, in ResetModule()
|
| D | js_require_manager.cpp | 53 JSHandle<CjsModuleCache> moduleCache = JSHandle<CjsModuleCache>(thread, modCache); in InitializeCommonJS() 54 JSHandle<CjsModuleCache> newCache = CjsModuleCache::PutIfAbsentAndReset(thread, moduleCache, in InitializeCommonJS() 74 JSHandle<CjsModuleCache> executedCache = JSHandle<CjsModuleCache>(thread, executedCacheVal); in CollectExecutedExp() 75 JSHandle<CjsModuleCache> resetCache = CjsModuleCache::ResetModule(thread, executedCache, in CollectExecutedExp()
|
| D | js_cjs_module.cpp | 60 JSHandle<CjsModuleCache> moduleCache = JSHandle<CjsModuleCache>(thread, modCache); in SearchFromModuleCache() 86 JSHandle<CjsModuleCache> moduleCache = JSHandle<CjsModuleCache>(thread, modCache); in PutIntoCache() 88 …JSHandle<CjsModuleCache> newCache = CjsModuleCache::PutIfAbsentAndReset(thread, moduleCache, filen… in PutIntoCache()
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | ecma_vm.h | 81 class CjsModuleCache; variable
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins.cpp | 3556 JSHandle<JSTaggedValue> cache = JSHandle<JSTaggedValue>::Cast(CjsModuleCache::Create(thread_, in InitializeCjsModule() 3557 … CjsModuleCache::DEAULT_DICTIONART_CAPACITY)); in InitializeCjsModule()
|