Lines Matching refs:EcmaContext
39 EcmaContext::EcmaContext(JSThread *thread)
48 EcmaContext *EcmaContext::Create(JSThread *thread)
50 LOG_ECMA(INFO) << "EcmaContext::Create";
51 auto context = new EcmaContext(thread);
56 bool EcmaContext::Destroy(EcmaContext *context)
66 bool EcmaContext::Initialize()
68 LOG_ECMA(DEBUG) << "EcmaContext::Initialize";
69 ECMA_BYTRACE_NAME(HITRACE_TAG_ARK, "EcmaContext::Initialize");
117 void EcmaContext::InitializeEcmaScriptRunStat()
148 void EcmaContext::ClearIcuCache(JSThread *thread)
156 icuFormatter = EcmaContext::IcuFormatter{};
160 void EcmaContext::SetRuntimeStatEnable(bool flag)
180 EcmaContext::~EcmaContext()
277 JSTaggedValue EcmaContext::InvokeEcmaAotEntrypoint(JSHandle<JSFunction> mainFunc, JSHandle<JSTaggedValue> &thisArg,
285 JSTaggedValue EcmaContext::ExecuteAot(size_t actualNumArgs, JSTaggedType *args,
300 Expected<JSTaggedValue, bool> EcmaContext::CommonInvokeEcmaEntrypoint(const JSPandaFile *jsPandaFile,
376 Expected<JSTaggedValue, bool> EcmaContext::InvokeEcmaEntrypoint(const JSPandaFile *jsPandaFile,
412 Expected<JSTaggedValue, bool> EcmaContext::InvokeEcmaEntrypointForHotReload(
437 void EcmaContext::CJSExecution(JSHandle<JSFunction> &func, JSHandle<JSTaggedValue> &thisArg,
488 void EcmaContext::LoadProtoTransitionTable(JSTaggedValue constpool)
495 void EcmaContext::ResetProtoTransitionTableOnConstpool(JSTaggedValue constpool)
501 JSTaggedValue EcmaContext::FindUnsharedConstpool(JSTaggedValue sharedConstpool)
511 JSTaggedValue EcmaContext::FindOrCreateUnsharedConstpool(JSTaggedValue sharedConstpool)
529 void EcmaContext::EraseUnusedConstpool(const JSPandaFile *jsPandaFile, int32_t index, int32_t constpoolIndex)
550 std::optional<std::reference_wrapper<CMap<int32_t, JSTaggedValue>>> EcmaContext::FindConstpools(
557 JSTaggedValue EcmaContext::FindConstpool(const JSPandaFile *jsPandaFile, panda_file::File::EntityId id)
564 JSTaggedValue EcmaContext::FindConstpool(const JSPandaFile *jsPandaFile, int32_t index)
573 JSTaggedValue EcmaContext::FindConstpoolFromContextCache(const JSPandaFile *jsPandaFile, int32_t index)
585 bool EcmaContext::HasCachedConstpool(const JSPandaFile *jsPandaFile) const
594 JSHandle<ConstantPool> EcmaContext::AddOrUpdateConstpool(const JSPandaFile *jsPandaFile,
603 void EcmaContext::AddContextConstpoolCache(const JSPandaFile *jsPandaFile,
615 void EcmaContext::SetUnsharedConstpool(JSHandle<ConstantPool> sharedConstpool, JSTaggedValue unsharedConstpool)
621 void EcmaContext::SetUnsharedConstpool(int32_t constpoolIndex, JSTaggedValue unsharedConstpool)
628 void EcmaContext::UpdateConstpoolWhenDeserialAI(const std::string& fileName,
646 JSTaggedValue EcmaContext::FindCachedConstpoolAndLoadAiIfNeeded(const JSPandaFile *jsPandaFile, int32_t index)
662 JSHandle<ConstantPool> EcmaContext::FindOrCreateConstPool(const JSPandaFile *jsPandaFile, panda_file::File::EntityId id)
686 void EcmaContext::CreateAllConstpool(const JSPandaFile *jsPandaFile)
706 JSHandle<JSTaggedValue> EcmaContext::GetAndClearEcmaUncaughtException() const
713 void EcmaContext::RelocateConstantString(const JSPandaFile *jsPandaFile)
721 JSHandle<JSTaggedValue> EcmaContext::GetEcmaUncaughtException() const
730 void EcmaContext::EnableUserUncaughtErrorHandler()
735 void EcmaContext::HandleUncaughtException(JSTaggedValue exception)
753 void EcmaContext::HandleUncaughtException()
763 void EcmaContext::PrintJSErrorInfo(JSThread *thread, const JSHandle<JSTaggedValue> &exceptionInfo)
803 bool EcmaContext::HasPendingJob()
813 bool EcmaContext::ExecutePromisePendingJob()
831 void EcmaContext::ClearBufferData()
837 void EcmaContext::SetGlobalEnv(GlobalEnv *global)
846 void EcmaContext::SetMicroJobQueue(job::MicroJobQueue *queue)
852 JSHandle<GlobalEnv> EcmaContext::GetGlobalEnv() const
857 JSHandle<job::MicroJobQueue> EcmaContext::GetMicroJobQueue() const
862 void EcmaContext::MountContext(JSThread *thread)
864 EcmaContext *context = EcmaContext::CreateAndInitialize(thread);
868 void EcmaContext::UnmountContext(JSThread *thread)
870 EcmaContext *context = thread->GetCurrentEcmaContext();
875 EcmaContext *EcmaContext::CreateAndInitialize(JSThread *thread)
877 EcmaContext *context = EcmaContext::Create(thread);
883 void EcmaContext::CheckAndDestroy(JSThread *thread, EcmaContext *context)
892 void EcmaContext::SetupRegExpResultCache()
897 void EcmaContext::SetupRegExpGlobalResult()
902 void EcmaContext::SetupNumberToStringResultCache()
907 void EcmaContext::SetupStringSplitResultCache()
912 void EcmaContext::SetupStringToListResultCache()
917 void EcmaContext::Iterate(const RootVisitor &v, const RootRangeVisitor &rv)
986 size_t EcmaContext::IterateHandle(const RootRangeVisitor &rangeVisitor)
1003 uintptr_t *EcmaContext::ExpandHandleStorage()
1023 void EcmaContext::ShrinkHandleStorage(int prevIndex)
1055 uintptr_t *EcmaContext::ExpandPrimitiveStorage()
1075 void EcmaContext::ShrinkPrimitiveStorage(int prevIndex)
1107 void EcmaContext::LoadStubFile()
1116 bool EcmaContext::LoadAOTFilesInternal(const std::string& aotFileName)
1140 bool EcmaContext::LoadAOTFiles(const std::string& aotFileName)
1146 bool EcmaContext::LoadAOTFiles(const std::string& aotFileName,
1154 void EcmaContext::PrintOptStat()
1161 void EcmaContext::DumpAOTInfo() const
1166 bool EcmaContext::JoinStackPushFastPath(JSHandle<JSTaggedValue> receiver)
1175 bool EcmaContext::JoinStackPush(JSHandle<JSTaggedValue> receiver)
1192 void EcmaContext::JoinStackPopFastPath(JSHandle<JSTaggedValue> receiver)
1202 void EcmaContext::JoinStackPop(JSHandle<JSTaggedValue> receiver)
1218 std::tuple<uint64_t, uint8_t *, int, kungfu::CalleeRegAndOffsetVec> EcmaContext::CalCallSiteInfo(
1225 void EcmaContext::AddSustainingJSHandle(SustainingJSHandle *sustainingHandle)
1232 void EcmaContext::RemoveSustainingJSHandle(SustainingJSHandle *sustainingHandle)
1239 void EcmaContext::ClearKeptObjects()
1248 void EcmaContext::AddToKeptObjects(JSHandle<JSTaggedValue> value)