Home
last modified time | relevance | path

Searched refs:CString (Results 1 – 25 of 259) sorted by relevance

1234567891011

/arkcompiler/ets_runtime/ecmascript/module/
Dmodule_path_helper.h131 …static CString PUBLIC_API ConcatFileNameWithMerge(JSThread *thread, const JSPandaFile *jsPandaFile,
132CString &baseFileName, CString recordName, CString requestName);
133 …static void ParseAbcPathAndOhmUrl(EcmaVM *vm, const CString &inputFileName, CString &outBaseFileNa…
134 CString &outEntryPoint);
135 …static CString ConcatUnifiedOhmUrl(const CString &bundleName, const CString &pkgname, const CStrin…
136 const CString &path, const CString &version);
137 static CString ConcatUnifiedOhmUrl(const CString &bundleName, const CString &normalizedpath,
138 const CString &version);
139 static CString ConcatPreviewTestUnifiedOhmUrl(const CString &bundleName, const CString &pkgname,
140 const CString &path, const CString &version);
[all …]
Dmodule_path_helper.cpp21 CString ModulePathHelper::ConcatFileNameWithMerge(JSThread *thread, const JSPandaFile *jsPandaFile, in ConcatFileNameWithMerge()
22 CString &baseFileName, CString recordName, CString requestName) in ConcatFileNameWithMerge()
39CString entryPoint = TranslateExpressionInputWithEts(thread, jsPandaFile, baseFileName, requestNam… in ConcatFileNameWithMerge()
47 CString entryPoint = ParseThirdPartyPackage(jsPandaFile, recordName, requestName); in ConcatFileNameWithMerge()
57 CString ModulePathHelper::ConcatMergeFileNameToNormalized(JSThread *thread, const JSPandaFile *jsPa… in ConcatMergeFileNameToNormalized()
58 CString &baseFileName, const CString &recordName, CString requestName) in ConcatMergeFileNameToNormalized()
60 CString prefix(1, PathHelper::NORMALIZED_OHMURL_TAG); in ConcatMergeFileNameToNormalized()
68 CString inputPath = requestName; in ConcatMergeFileNameToNormalized()
69CString entryPoint = ConcatImportFileNormalizedOhmurlWithRecordName(thread, jsPandaFile, baseFileN… in ConcatMergeFileNameToNormalized()
86 CString ModulePathHelper::ConcatImportFileNormalizedOhmurlWithRecordName(JSThread *thread, in ConcatImportFileNormalizedOhmurlWithRecordName()
[all …]
Djs_module_manager.h64 JSHandle<SourceTextModule> GetImportedModule(const CString &referencing);
65 JSHandle<SourceTextModule> PUBLIC_API HostGetImportedModule(const CString &referencing);
67 bool IsLocalModuleLoaded(const CString& referencing);
68 bool IsSharedModuleLoaded(const CString &referencing);
69 bool IsModuleLoaded(const CString &referencing);
71 bool IsEvaluatedModule(const CString &referencing);
72 bool IsInstantiatedModule(const CString &referencing);
73 bool IsLocalModuleInstantiated(const CString &referencing);
75 …JSHandle<JSTaggedValue> ResolveNativeModule(const CString &moduleRequest, const CString &baseFileN…
77 …JSTaggedValue> HostResolveImportedModule(const void *buffer, size_t size, const CString &filename);
[all …]
Djs_shared_module_manager.h55 … JSHandle<JSTaggedValue> ResolveImportedModule(JSThread *thread, const CString &referencingModule,
58 …JSTaggedValue> PUBLIC_API ResolveImportedModuleWithMerge(JSThread *thread, const CString &fileName,
59 … const CString &recordName, bool executeFromJob);
63 bool SearchInSModuleManager(JSThread *thread, const CString &recordName);
65 void InsertInSModuleManager(JSThread *thread, const CString &recordName,
73 const CString &entryPoint, ClassKind classKind = ClassKind::NON_SENDABLE);
78 inline void AddResolveImportedSModule(const CString &recordName, JSTaggedValue module) in AddResolveImportedSModule()
83 inline void UpdateResolveImportedSModule(const CString &recordName, JSTaggedValue module) in UpdateResolveImportedSModule()
98 …JSHandle<JSTaggedValue> ResolveSharedImportedModuleWithMerge(JSThread *thread, const CString &file…
99 const CString &recordName, const JSPandaFile *jsPandaFile, JSRecordInfo *recordInfo);
[all …]
Dnapi_module_loader.cpp23 JSHandle<JSTaggedValue> NapiModuleLoader::LoadModuleNameSpaceWithModuleInfo(EcmaVM *vm, CString &re… in LoadModuleNameSpaceWithModuleInfo()
24 CString &modulePath) in LoadModuleNameSpaceWithModuleInfo()
28 CString moduleStr = ModulePathHelper::GetModuleNameWithPath(modulePath); in LoadModuleNameSpaceWithModuleInfo()
29 CString abcFilePath = ModulePathHelper::ConcatPandaFilePath(moduleStr); in LoadModuleNameSpaceWithModuleInfo()
35 CString msg = "Load file with filename '" + abcFilePath + in LoadModuleNameSpaceWithModuleInfo()
52 JSHandle<JSTaggedValue> NapiModuleLoader::LoadModuleNameSpaceWithPath(JSThread *thread, CString &ab… in LoadModuleNameSpaceWithPath()
53 CString &requestPath, CString &modulePath, const JSPandaFile *pandaFile) in LoadModuleNameSpaceWithPath()
61 CString entryPoint = ModulePathHelper::ConcatFileNameWithMerge(thread, pandaFile, in LoadModuleNameSpaceWithPath()
67 CString msg = "Load file with filename '" + abcFilePath + in LoadModuleNameSpaceWithPath()
79CString msg = "cannot find record '" + entryPoint + "' in basefileName " + abcFilePath + "," + in LoadModuleNameSpaceWithPath()
[all …]
Dmodule_data_extractor.h40 … const CString &descriptor, const CString &moduleFilename,
44 … const CString &moduleFilename, const CString &recordName);
45 …static JSHandle<JSTaggedValue> ParseNativeModule(JSThread *thread, const CString &moduleRequestNam…
46 … const CString &baseFileName, ModuleTypes moduleType);
47 …static JSTaggedValue JsonParse(JSThread *thread, const JSPandaFile *jsPandaFile, CString entryPoin…
Dnapi_module_loader.h23 … static JSHandle<JSTaggedValue> LoadModuleNameSpaceWithModuleInfo(EcmaVM *vm, CString &requestPath,
24 CString &modulePath);
25 … static JSHandle<JSTaggedValue> LoadModuleNameSpaceWithPath(JSThread *thread, CString &abcFilePath,
26 CString &requestPath, CString &modulePath, const JSPandaFile *pandaFile);
Djs_module_source_text.h94 static CString ReplaceModuleThroughFeature(JSThread *thread, const CString &requestName);
164 static std::pair<bool, ModuleTypes> CheckNativeModule(const CString &moduleRequestName);
167 const CString &soPath, const CString &moduleName);
169 const CString &soPath, const CString &moduleName, const CString &requestName);
171 const CString &moduleRequestName);
186 inline static CString GetResolveErrorReason(const JSHandle<JSTaggedValue> &resolution) in GetResolveErrorReason()
253 inline CString GetEcmaModuleFilenameString() const in GetEcmaModuleFilenameString()
255 CString *fileName = reinterpret_cast<CString *>(GetEcmaModuleFilename()); in GetEcmaModuleFilenameString()
257 return CString(); in GetEcmaModuleFilenameString()
262 inline CString GetEcmaModuleRecordNameString() const in GetEcmaModuleRecordNameString()
[all …]
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Djs_pandafile_executor.h32 std::pair<CString, CString> ParseEntryPointWithUnifiedRules(EcmaVM *vm, const CString &filename,
34 static std::pair<CString, CString> ParseAbcEntryPoint(JSThread *thread, const CString &filename,
36 static Expected<JSTaggedValue, bool> ExecuteFromFile(JSThread *thread, const CString &name,
37 CString entry, bool needUpdate = false,
39 …cted<JSTaggedValue, bool> ExecuteFromAbsolutePathAbcFile(JSThread *thread, const CString &filename,
43 … static Expected<JSTaggedValue, bool> ExecuteFromAbcFile(JSThread *thread, const CString &filename,
47 … std::string_view entryPoint, const CString &filename = "",
50 … const CString &filename = "", bool needUpdate = false);
51 …<JSTaggedValue, bool> CommonExecuteBuffer(JSThread *thread, bool isBundle, const CString &filename,
52 … const CString &entry, const void *buffer, size_t size,
[all …]
Djs_pandafile.h47 CString npmPackageName;
89 JSPandaFile(const panda_file::File *pf, const CString &descriptor);
95 const std::shared_ptr<CString> &methodNamePtr) in TranslateClassesTask()
106 std::shared_ptr<CString> methodNamePtr_;
109 const CString &GetJSPandaFileDesc() const in GetJSPandaFileDesc()
114 CString PUBLIC_API GetNormalizedFileDesc() const;
116 void SetHapPath(const CString &hapPath) in SetHapPath()
121 const CString &GetJSPandaFileHapPath() const in GetJSPandaFileHapPath()
126 static CString PUBLIC_API GetNormalizedFileDesc(const CString &desc);
140 CString GetRecordName(EntityId methodId);
[all …]
Djs_pandafile_executor.cpp28 std::pair<CString, CString> JSPandaFileExecutor::ParseAbcEntryPoint(JSThread *thread, const CString in ParseAbcEntryPoint()
31 CString name; in ParseAbcEntryPoint()
32 CString entry; in ParseAbcEntryPoint()
37 CString normalName = PathHelper::NormalizePath(filename); in ParseAbcEntryPoint()
44 CString assetPath = vm->GetAssetPath(); in ParseAbcEntryPoint()
47 CString assetPath = vm->GetAssetPath(); in ParseAbcEntryPoint()
54 Expected<JSTaggedValue, bool> JSPandaFileExecutor::ExecuteFromFile(JSThread *thread, const CString in ExecuteFromFile()
55 CString entry, bool needUpdate, bool executeFromJob) in ExecuteFromFile()
63 CString msg = "jsPandaFile is nullptr"; in ExecuteFromFile()
81 CString msg = "Cannot find module '" + entry + "' , which is application Entry Point"; in ExecuteFromFile()
[all …]
Djs_pandafile_manager.h36 …std::shared_ptr<JSPandaFile> LoadJSPandaFile(JSThread *thread, const CString &filename, std::strin…
39 …std::shared_ptr<JSPandaFile> LoadJSPandaFile(JSThread *thread, const CString &filename, std::strin…
43 std::shared_ptr<JSPandaFile> LoadJSPandaFileSecure(JSThread *thread, const CString &filename,
47 std::shared_ptr<JSPandaFile> OpenJSPandaFile(const CString &filename);
49 std::shared_ptr<JSPandaFile> OpenJSPandaFile(const CString &filename, const CString &desc);
51 …_ptr<JSPandaFile> OpenJSPandaFileFromBuffer(uint8_t *buffer, size_t size, const CString &filename);
53 std::shared_ptr<JSPandaFile> NewJSPandaFile(const panda_file::File *pf, const CString &desc);
61 bool CheckFilePath(JSThread *thread, const CString &fileName);
95 std::shared_ptr<JSPandaFile> FindJSPandaFileByNormalizedName(const CString &normalizedName);
97 std::shared_ptr<JSPandaFile> FindJSPandaFile(const CString &filename);
[all …]
/arkcompiler/ets_runtime/ecmascript/base/
Dpath_helper.h40 static CString NormalizePath(const CString &fileName);
41 static CString ResolveDirPath(const CString &fileName);
47 inline static void DeleteNamespace(CString &moduleName) in DeleteNamespace()
50 if (pos == CString::npos) { in DeleteNamespace()
60 inline static CString GetHarName(const CString &moduleName) in GetHarName()
63 ASSERT(pos != CString::npos); in GetHarName()
71 inline static void AdaptOldIsaRecord(CString &recordName) in AdaptOldIsaRecord()
74 if (pos != CString::npos) { in AdaptOldIsaRecord()
76 if (pos != CString::npos) { in AdaptOldIsaRecord()
86 inline static CString GetStrippedModuleName(const CString &moduleRequestName) in GetStrippedModuleName()
[all …]
Dpath_helper.cpp22 CString PathHelper::NormalizePath(const CString &fileName) in NormalizePath()
24 if (fileName.empty() || (fileName.find(DOUBLE_SLASH_TAG) == CString::npos && in NormalizePath()
25 fileName.find(CURRENT_DIREATORY_TAG) == CString::npos && in NormalizePath()
29 CString res = ""; in NormalizePath()
32 CVector<CString> elems; in NormalizePath()
34 while (curr != CString::npos) { in NormalizePath()
36 CString elem = fileName.substr(prev, curr - prev); in NormalizePath()
63 CString PathHelper::ResolveDirPath(const CString &fileName) in ResolveDirPath()
68 return CString(); in ResolveDirPath()
Dfast_json_stringifier.h46 CString SerializeObjectKey(const JSHandle<JSTaggedValue> &key, bool hasContent);
59 bool AppendJsonString(bool hasContent, CVector<std::pair<CString, int>> &strCache, int index);
60 bool FastAppendJsonString(bool hasContent, CString &key);
62 CVector<std::pair<CString, int>> &strCache);
64 … CVector<std::pair<CString, int>> &strCache, uint32_t &cacheIndex,
67 CVector<std::pair<CString, int>> &strCache);
69 CVector<std::pair<CString, int>> &strCache);
71 CVector<std::pair<CString, int>> &strCache);
73 CVector<std::pair<CString, int>> &strCache);
75 CVector<std::pair<CString, int>> &strCache);
[all …]
/arkcompiler/ets_runtime/ecmascript/module/tests/
Decma_module_test.cpp159 CString localName = "foo"; in HWTEST_F_L0()
160 CString exportName = "bar"; in HWTEST_F_L0()
161 CString value = "hello world"; in HWTEST_F_L0()
192 CString exportLocalName = "*default*"; in HWTEST_F_L0()
193 CString exportName = "default"; in HWTEST_F_L0()
194 CString exportValue = "hello world"; in HWTEST_F_L0()
225 CString localName1 = "foo"; in HWTEST_F_L0()
226 CString localName2 = "foo2"; in HWTEST_F_L0()
227 CString localName3 = "foo3"; in HWTEST_F_L0()
228 CString exportName1 = "bar"; in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/mem/
Dc_string.h30 using CString = std::basic_string<char, std::char_traits<char>, CAddressAllocator<char>>; variable
35 using argument_type = panda::ecmascript::CString;
38 size_t operator()(const CString &str) const noexcept in operator()
49 long CStringToL(const CString &str);
50 int64_t CStringToLL(const CString &str);
51 uint64_t CStringToULL(const CString &str);
52 float CStringToF(const CString &str);
53 double CStringToD(const CString &str);
55 CString ConvertToString(const std::string &str);
56 std::string PUBLIC_API ConvertToStdString(const CString &str);
[all …]
Dc_string.cpp25 long CStringToL(const CString &str) in CStringToL()
33 int64_t CStringToLL(const CString &str) in CStringToLL()
41 uint64_t CStringToULL(const CString &str) in CStringToULL()
49 float CStringToF(const CString &str) in CStringToF()
58 double CStringToD(const CString &str) in CStringToD()
68 CString ConvertToString(T sp) in ConvertToString()
70 CString res; in ConvertToString()
87 CString ConvertToString(const std::string &str) in ConvertToString()
89 CString res; in ConvertToString()
97 CString ConvertToString(const EcmaString *s, StringConvertedUsage usage, bool cesu8) in ConvertToString()
[all …]
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/
Dstring_hashmap.cpp21 CString *StringHashMap::FindOrInsertString(const CString *cstr) in FindOrInsertString()
30 vm_->GetNativeAreaAllocator())->New<CString>(cstr->c_str()); in FindOrInsertString()
38 StringId StringHashMap::GetStringId(const CString *cstr) const in GetStringId()
44 CString *StringHashMap::GetStringByKey(StringKey key) const in GetStringByKey()
53 std::pair<uint64_t, CString *> StringHashMap::GetStringAndIdPair(StringKey key) const in GetStringAndIdPair()
62 StringId StringHashMap::InsertStrAndGetStringId(const CString &cstrArg) in InsertStrAndGetStringId()
64 CString *cstr = const_cast<CString *>(&cstrArg); in InsertStrAndGetStringId()
72 vm_->GetNativeAreaAllocator())->New<CString>(cstr->c_str()); in InsertStrAndGetStringId()
80 StringKey StringHashMap::GenerateStringKey(const CString *cstr) const in GenerateStringKey()
82 return std::hash<CString>{} (*cstr); in GenerateStringKey()
[all …]
Dstring_hashmap.h44 StringId GetStringId(const CString *cstr) const;
55 CString *GetStringByKey(StringKey key) const;
56 std::pair<uint64_t, CString *> GetStringAndIdPair(StringKey key) const;
57 StringId InsertStrAndGetStringId(const CString &cstrArg);
66 CString *GetString(const CString &cstr);
69 StringKey GenerateStringKey(const CString *cstr) const;
70 CString *FindOrInsertString(const CString *cstr);
79 CUnorderedMap<StringKey, CString *> hashmap_;
/arkcompiler/ets_runtime/ecmascript/patch/
Dpatch_loader.h54 CString recordName;
55 CString className;
56 CString methodName;
60 return std::hash<CString>{}(patchMethodIndex.recordName) ^ in operator()
61 …std::hash<CString>{}(patchMethodIndex.className) ^ std::hash<CString>{}(patchMethodIndex.methodNam… in operator()
74 CString patchFileName;
82 CUnorderedSet<CString> replacedRecordNames;
84 CUnorderedMap<EntityId, CString> replacedPatchMethods;
108 const CMap<uint32_t, CString> &baseClassInfo);
109 static PatchErrorCode UnloadPatchInternal(JSThread *thread, const CString &patchFileName,
[all …]
Dquick_fix_manager.h43 void SetCurrentBaseFileName(CString fileName);
44 CString GetBaseFileName(const JSHandle<SourceTextModule> &module);
52 CUnorderedSet<CString> ParseStackInfo(const CString &stackInfo);
55 CMap<CString, PatchInfo> methodInfos_ {};
60 CMap<uint32_t, CString> baseClassInfo_ {};
61 CString currentBaseFileName_;
62 std::set<CString> checkedFiles_ {};
/arkcompiler/ets_runtime/ecmascript/
Decma_vm.h236 void PushToDeregisterModuleList(const CString &module);
237 void RemoveFromDeregisterModuleList(CString module);
238 bool ContainInDeregisterModuleList(CString module);
415 void SetPkgNameList(const CMap<CString, CString> &list) in SetPkgNameList() argument
420 CMap<CString, CString> GetPkgNameList() const in GetPkgNameList()
425 inline CString GetPkgName(const CString &moduleName) const in GetPkgName()
435 inline CMap<CString, CMap<CString, CVector<CString>>> GetPkgContextInfoLit() const in GetPkgContextInfoLit()
440 inline CString GetPkgNameWithAlias(const CString &alias) const in GetPkgNameWithAlias()
449 void SetPkgAliasList(const CMap<CString, CString> &list) in SetPkgAliasList() argument
454 CMap<CString, CString> GetPkgAliasList() const in GetPkgAliasList()
[all …]
Ddump.cpp48 CString JSHClass::DumpJSType(JSType type) in DumpJSType()
441 CString ret = "unknown type "; in DumpJSType()
506 CString string = ConvertToString(str); in DumpStringClass()
1262 CString string = ConvertToString(EcmaString::Cast(obj)); in DumpHeapObjectType()
1267 CString addrStr = CString(address.str()); in DumpHeapObjectType()
1275 CString addrStr = CString(address.str()); in DumpHeapObjectType()
1823 vec.emplace_back(CString("NextIndex"), JSTaggedValue(GetNextIndex())); in DumpForSnapshot()
1824 vec.emplace_back(CString("IterationKind"), JSTaggedValue(static_cast<int>(GetIterationKind()))); in DumpForSnapshot()
1945 vec.emplace_back(CString("NextIndex"), JSTaggedValue(GetNextIndex())); in DumpForSnapshot()
1946 vec.emplace_back(CString("IterationKind"), JSTaggedValue(static_cast<int>(GetIterationKind()))); in DumpForSnapshot()
[all …]
/arkcompiler/ets_runtime/ecmascript/jit/
Djit_dfx.cpp70CString path = CString("/data/storage/ark-profile/jit_dfx_") + ToCString(threadId) + CString(".log… in OpenLogFile()
72 CString path = CString("jit_dfx_") + ToCString(threadId) + CString(".log"); in OpenLogFile()
100 CString methodInfo = method->GetRecordNameStr() + "." + CString(method->GetMethodName()); in DumpBytecodeInst()
134 CString prefixStr = isEntry ? CString("JitCodeEntry:") : CString("JitCodeExit :"); in TraceJitCode()
135 CString methodInfo = method->GetRecordNameStr() + "." + CString(method->GetMethodName()); in TraceJitCode()
136 static CString blackSpace(" "); in TraceJitCode()
137 CString prefix; in TraceJitCode()

1234567891011