Lines Matching defs:constpool

488 void EcmaContext::LoadProtoTransitionTable(JSTaggedValue constpool)
490 JSTaggedValue protoTransitionTable = ConstantPool::Cast(constpool.GetTaggedObject())->GetProtoTransTableInfo();
495 void EcmaContext::ResetProtoTransitionTableOnConstpool(JSTaggedValue constpool)
497 ConstantPool::Cast(constpool.GetTaggedObject())->SetProtoTransTableInfo(thread_, JSTaggedValue::Undefined());
500 // just find unshared constpool, not create
505 // unshared constpool index is default INT32_MAX.
517 // unshared constpool index is default INT32_MAX.
531 // unshared constpool index is default INT32_MAX.
595 JSHandle<ConstantPool> constpool,
598 constpool = Runtime::GetInstance()->AddOrUpdateConstpool(jsPandaFile, constpool, index);
599 AddContextConstpoolCache(jsPandaFile, constpool, index);
600 return constpool;
604 JSHandle<ConstantPool> constpool,
612 constpoolMap.insert({index, constpool.GetTaggedValue()});
648 JSTaggedValue constpool = FindConstpoolFromContextCache(jsPandaFile, index);
649 if (!constpool.IsHole()) {
650 return constpool;
652 constpool = Runtime::GetInstance()->FindConstpool(jsPandaFile, index);
653 if (!constpool.IsHole()) {
654 AddContextConstpoolCache(jsPandaFile, JSHandle<ConstantPool>(thread_, constpool), index);
656 // Getting the cached constpool in runtime means the ai data has not been loaded in current thread.
659 return constpool;
666 JSTaggedValue constpool = FindCachedConstpoolAndLoadAiIfNeeded(jsPandaFile, index);
667 if (constpool.IsHole()) {
679 // For aot, after getting the cached shared constpool,
680 // worker thread need to create and bind the correspoding unshared constpool.
681 FindOrCreateUnsharedConstpool(constpool);
683 return JSHandle<ConstantPool>(thread_, constpool);
699 JSHandle<ConstantPool> constpool = factory_->NewConstantPool(constpoolSize);
700 constpool->SetJSPandaFile(jsPandaFile);
701 constpool->SetIndexHeader(&header);
702 SetUnsharedConstpool(sconstpool, constpool.GetTaggedValue());