Lines Matching defs:constpool
71 * | unshared constpool index |int32_t CacheLength |
73 * | shared constpool id |int32_t | |
103 static constexpr int32_t CONSTPOOL_TYPE_FLAG = INT32_MAX; // INT32_MAX : unshared constpool.
119 JSHandle<JSTaggedValue> constpool(vm->GetJSThread(), JSTaggedValue::Hole());
125 constpool = GetDeserializedConstantPool(vm, jsPandaFile, index);
132 if (constpool.GetTaggedValue().IsHole()) {
136 constpoolObj = JSHandle<ConstantPool>(constpool);
151 JSHandle<JSTaggedValue> constpool(vm->GetJSThread(), JSTaggedValue::Hole());
156 constpool = GetDeserializedConstantPool(vm, jsPandaFile, cpId);
163 if (constpool.GetTaggedValue().IsHole()) {
167 constpoolObj = JSHandle<ConstantPool>(constpool);
184 JSHandle<ConstantPool> constpool(vm->GetJSThread(), JSTaggedValue::Hole());
185 if (constpool.GetTaggedValue().IsHole()) {
187 constpool = factory->NewSConstantPool(constpoolSize);
190 constpool->SetJSPandaFile(jsPandaFile);
191 constpool->SetIndexHeader(mainIndex);
192 constpool->SetUnsharedConstpoolIndex(JSTaggedValue(0));
193 constpool->SetSharedConstpoolId(JSTaggedValue(cpId));
195 return constpool;
204 EcmaVM *vm, JSHandle<ConstantPool> constpool, int32_t cpId = 0)
207 uint32_t capacity = constpool->GetConstpoolLength();
214 JSTaggedValue val = constpool->GetObjectFromCache(i);
233 sconstpool->SetJSPandaFile(constpool->GetJSPandaFile());
234 sconstpool->SetIndexHeader(constpool->GetIndexHeader());
254 static bool CheckUnsharedConstpool(JSTaggedValue constpool)
256 int32_t index = ConstantPool::Cast(constpool.GetTaggedObject())->GetUnsharedConstpoolIndex();
455 JSThread *thread, const JSTaggedValue constpool, uint32_t index, JSTaggedValue value)
457 const ConstantPool *taggedPool = ConstantPool::Cast(constpool.GetTaggedObject());
458 JSHandle<ConstantPool> constpoolHandle(thread, constpool);
477 static JSTaggedValue GetMethodFromCache(JSThread *thread, JSTaggedValue constpool, uint32_t index)
479 const ConstantPool *taggedPool = ConstantPool::Cast(constpool.GetTaggedObject());
508 JSTaggedValue unsharedCp = thread->GetCurrentEcmaContext()->FindOrCreateUnsharedConstpool(constpool);
515 JSHandle<ConstantPool> constpoolHandle(thread, constpool);
530 static JSTaggedValue PUBLIC_API GetMethodFromCache(JSTaggedValue constpool, uint32_t index);
537 static JSTaggedValue GetClassLiteralFromCache(JSThread *thread, JSHandle<ConstantPool> constpool,
541 static JSHandle<TaggedArray> GetFieldLiteral(JSThread *thread, JSHandle<ConstantPool> constpool,
545 static JSTaggedValue GetLiteralFromCache(JSThread *thread, JSTaggedValue constpool, uint32_t index, CString entry)
549 const ConstantPool *taggedPool = ConstantPool::Cast(constpool.GetTaggedObject());
562 JSHandle<ConstantPool> constpoolHandle(thread, constpool);
644 static JSTaggedValue GetLiteralFromCache(JSTaggedValue constpool, uint32_t index, [[maybe_unused]] CString entry)
646 const ConstantPool *taggedPool = ConstantPool::Cast(constpool.GetTaggedObject());
657 static panda_file::File::EntityId GetIdFromCache(JSTaggedValue constpool, uint32_t index)
659 const ConstantPool *taggedPool = ConstantPool::Cast(constpool.GetTaggedObject());
665 static JSTaggedValue GetLiteralFromCache(JSThread *thread, JSTaggedValue constpool,
669 return GetLiteralFromCache<type>(thread, constpool, index, entry);
672 static JSTaggedValue PUBLIC_API GetStringFromCacheForJit(JSThread *thread, JSTaggedValue constpool, uint32_t index,
675 static JSTaggedValue PUBLIC_API GetStringFromCache(JSThread *thread, JSTaggedValue constpool, uint32_t index);