| /arkcompiler/ets_frontend/es2panda/util/ |
| D | symbolTable.h | 26 static const std::string FIRST_LEVEL_SEPERATOR; 27 static const std::string SECOND_LEVEL_SEPERATOR; 30 std::string recordName; 31 std::string funcInternalName; 32 std::string funcHash; 33 ArenaMap<uint32_t, std::pair<std::string, int>> lexenv; // lexenv: <slot, <name, type>> 34 ArenaMap<std::string, std::string> classHash; 40 SymbolTable(const std::string &inputSymbolTable, const std::string &dumpSymbolTable) in SymbolTable() 48 void WriteSymbolTable(const std::string &content); 49 ArenaUnorderedMap<std::string, OriginFunctionInfo> *GetOriginFunctionInfo() in GetOriginFunctionInfo() [all …]
|
| D | patchFix.h | 45 …l generateSymbolFile, bool generatePatch, PatchFixKind patchFixKind, const std::string &recordName, in PatchFix() 68 uint32_t GetSlotIdFromSymbolTable(const std::string &variableName); 69 void AllocSlotfromPatchEnv(const std::string &variableName); 70 uint32_t GetPatchLexicalIdx(const std::string &variableName); 73 …void ProcessModule(const std::string &recordName, std::vector<panda::pandasm::LiteralArray::Litera… 74 … void ProcessJsonContentRecord(const std::string &recordName, const std::string &jsonFileContent); 75 … void CheckAndRestoreSpecialFunctionName(uint32_t globalIndexForSpecialFunc, std::string &funcName, 76 std::string recordName); 85 void CollectFunctionsWithDefinedClasses(std::string funcName, std::string className); 86 …std::vector<std::pair<std::string, std::string>> GenerateFunctionAndClassHash(panda::pandasm::Func… [all …]
|
| /arkcompiler/runtime_core/disassembler/tests/ |
| D | instructions_test.cpp.in | 17 #include <string> 31 d.Disassemble(std::string(DISASM_BIN_DIR) + "empty_record.bc"); 34 EXPECT_TRUE(ss.str().find(".language PandaAssembly") != std::string::npos); 42 d.Disassemble(std::string(DISASM_BIN_DIR) + "instructions.bc"); 48 ASSERT_TRUE(beg_g != std::string::npos && end_g != std::string::npos) << "function g not found"; 50 … std::string body_g = ss.str().substr(beg_g + strlen("g() {"), end_g - (beg_g + strlen("g() {"))); 52 EXPECT_TRUE(body_g.find("\tmov v0, v1") != std::string::npos); 53 EXPECT_TRUE(body_g.find("\tmov.64 v2, v3") != std::string::npos); 54 EXPECT_TRUE(body_g.find("\tmov.obj v4, v5") != std::string::npos); 56 EXPECT_TRUE(body_g.find("\tmovi v0, 0xffffffffffffffff") != std::string::npos); [all …]
|
| /arkcompiler/ets_frontend/es2panda/aot/ |
| D | options.h | 78 const std::string &CompilerOutput() const in CompilerOutput() 83 const std::string &SourceFile() const in SourceFile() 88 const std::string &RecordName() const in RecordName() 93 const std::string &ErrorMsg() const in ErrorMsg() 113 std::string ExtractContentFromBase64Input(const std::string &inputBase64String); 115 const std::string &compilerProtoOutput() const in compilerProtoOutput() 120 const std::string &NpmModuleEntryList() const in NpmModuleEntryList() 125 const std::unordered_map<std::string, std::string> &OutputFiles() const in OutputFiles() 130 bool CollectInputFilesFromFileList(const std::string &input, const std::string &inputExtension); 131 bool CollectInputFilesFromFileDirectory(const std::string &input, const std::string &extension); [all …]
|
| /arkcompiler/toolchain/tooling/base/ |
| D | pt_script.h | 32 …PtScript(ScriptId scriptId, const std::string &fileName, const std::string &url, const std::string… 45 const std::string &GetFileName() const in GetFileName() 50 void SetFileName(const std::string &fileName) in SetFileName() 55 const std::string &GetUrl() const in GetUrl() 60 void SetUrl(const std::string &url) in SetUrl() 65 const std::string &GetHash() const in GetHash() 70 void SetHash(const std::string &hash) in SetHash() 75 const std::string &GetScriptSource() const in GetScriptSource() 80 void SetScriptSource(const std::string &scriptSource) in SetScriptSource() 85 const std::string &GetSourceMapUrl() const in GetSourceMapUrl() [all …]
|
| D | pt_types.h | 47 using BreakpointId = std::string; 58 if (lineStart == std::string::npos) { in ParseBreakpointId() 62 if (columnStart == std::string::npos) { in ParseBreakpointId() 66 if (urlStart == std::string::npos) { in ParseBreakpointId() 69 std::string lineStr = id.substr(lineStart + 1, columnStart - lineStart - 1); in ParseBreakpointId() 70 std::string columnStr = id.substr(columnStart + 1, urlStart - columnStart - 1); in ParseBreakpointId() 71 std::string url = id.substr(urlStart + 1); in ParseBreakpointId() 81 std::string url_ {}; 106 const std::string &GetUrl() const in GetUrl() 111 const std::string &GetCondition() const in GetCondition() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | compiler_log.h | 40 explicit CompilerLog(const std::string &logOpt); 103 …void SetMethodLog(const std::string &fileName, const std::string &methodName, AotMethodLogList *lo… 104 void SetStubLog(const std::string &stubName, MethodLogList *logList); 105 void AddCompiledMethod(const std::string& name, const CString& recordName); 106 void RemoveCompiledMethod(const std::string& name, const CString& recordName); 108 void AddMethodTime(const std::string& name, uint32_t id, double time); 109 void AddPassTime(const std::string& name, double time); 112 std::set<std::pair<std::string, CString>> &mismatchMethodSet); 114 std::map<std::string, int> nameIndex_; 142 std::map<std::string, double> timePassMap_ {}; [all …]
|
| D | debug_info.h | 31 void AddFuncDebugInfo(const std::string &name); 32 const std::string &GetComment(const std::string &funcName, size_t index) const; 39 comments_ = new ChunkVector<std::string>(chunk_); in FuncDebugInfo() 50 const std::string &Name() const in Name() 55 void SetName(const std::string &n) in SetName() 60 size_t Add(const std::string &str) in Add() 66 const std::string &GetComment(size_t index) in GetComment() 75 static const std::string &EmptyComment() in EmptyComment() 81 static std::string EMPTY_COMMENT; 83 std::string name_; [all …]
|
| D | compiler_log.cpp | 19 CompilerLog::CompilerLog(const std::string &logOpt) in CompilerLog() 21 … outputCIR_ = (logOpt.find("cir") != std::string::npos) || (logOpt.find("0") != std::string::npos); in CompilerLog() 22 …outputLLIR_ = (logOpt.find("llir") != std::string::npos) || (logOpt.find("1") != std::string::npos… in CompilerLog() 23 … outputASM_ = (logOpt.find("asm") != std::string::npos) || (logOpt.find("2") != std::string::npos); in CompilerLog() 24 …outputType_ = (logOpt.find("type") != std::string::npos) || (logOpt.find("3") != std::string::npos… in CompilerLog() 25 allMethod_ = logOpt.find("all") != std::string::npos; in CompilerLog() 26 …cerMethod_ = (logOpt.find("all") == std::string::npos) && (logOpt.find("cer") != std::string::npos… in CompilerLog() 27 …noneMethod_ = (logOpt.find("all") == std::string::npos) && (logOpt.find("cer") == std::string::npo… in CompilerLog() 30 void CompilerLog::SetMethodLog(const std::string &fileName, in SetMethodLog() 31 const std::string &methodName, AotMethodLogList *logList) in SetMethodLog() [all …]
|
| /arkcompiler/runtime_core/libark_defect_scan_aux/include/ |
| D | module_record.h | 24 std::string module_request_; 25 std::string import_name_; 26 std::string local_name_; 30 std::string export_name_; 31 std::string module_request_; 32 std::string import_name_; 33 std::string local_name_; 42 void SetRequestModules(std::vector<std::string> &request_modules); 49 const std::string &GetImportInternalNameByIndex(size_t index) const; 50 const std::string &GetImportNamespaceNameByIndex(size_t index) const; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_file_path.cpp | 19 std::string JSFilePath::GetBaseName(const std::string &filePath) in GetBaseName() 22 if (beginPos != std::string::npos) { in GetBaseName() 31 std::string JSFilePath::GetFileName(const std::string &filePath) in GetFileName() 34 if (beginPos != std::string::npos) { in GetFileName() 40 if (endPos != std::string::npos) { in GetFileName() 47 std::string JSFilePath::GetFileExtension(const std::string &filePath) in GetFileExtension() 50 if (beginPos != std::string::npos) { in GetFileExtension() 57 std::string JSFilePath::GetHapName(const JSPandaFile *jsPandaFile) in GetHapName() 59 std::string jsPandaFileDesc = jsPandaFile->GetJSPandaFileDesc().c_str(); in GetHapName() 60 if (jsPandaFileDesc.find(JSPandaFile::MERGE_ABC_NAME) == std::string::npos) { in GetHapName() [all …]
|
| D | ecma_string-inl.h | 30 auto string = vm->GetFactory()->AllocNonMovableLineStringObject(EcmaString::SIZE); in CreateEmptyString() local 31 string->SetLength(0, true); in CreateEmptyString() 32 string->SetRawHashcode(0); in CreateEmptyString() 33 return string; in CreateEmptyString() 44 EcmaString *string = nullptr; in CreateFromUtf8() local 47 string = CreateConstantString(vm, utf8Data, utf8Len, canBeCompress, type, idOffset); in CreateFromUtf8() 49 string = CreateLineStringWithSpaceType(vm, utf8Len, true, type); in CreateFromUtf8() 50 ASSERT(string != nullptr); in CreateFromUtf8() 52 if (memcpy_s(string->GetDataUtf8Writable(), utf8Len, utf8Data, utf8Len) != EOK) { in CreateFromUtf8() 59 string = CreateLineStringWithSpaceType(vm, utf16Len, false, type); in CreateFromUtf8() [all …]
|
| D | js_runtime_options.h | 29 using arg_list_t = std::vector<std::string>; 60 extern const std::string PUBLIC_API COMMON_HELP_HEAD_MSG; 61 extern const std::string PUBLIC_API STUB_HELP_HEAD_MSG; 62 extern const std::string PUBLIC_API COMPILER_HELP_HEAD_MSG; 63 extern const std::string PUBLIC_API HELP_OPTION_MSG; 182 std::string GetStubFile() const in GetStubFile() 187 void SetStubFile(std::string value) in SetStubFile() 207 std::string GetAOTOutputFile() const in GetAOTOutputFile() 212 void SetAOTOutputFile(const std::string& value) in SetAOTOutputFile() 222 std::string GetTargetTriple() const in GetTargetTriple() [all …]
|
| /arkcompiler/toolchain/tooling/test/ |
| D | runtime_impl_test.cpp | 55 std::string result = ""; in HWTEST_F_L0() 56 std::function<void(const void*, const std::string &)> callback = in HWTEST_F_L0() 57 [&result]([[maybe_unused]] const void *ptr, const std::string &temp) {result = temp;}; in HWTEST_F_L0() 61 std::string msg = std::string() + R"({"id":0,"method":"Rumtime.test","params":{}})"; in HWTEST_F_L0() 64 ASSERT_TRUE(result.find("unknown method: test") != std::string::npos); in HWTEST_F_L0() 66 msg = std::string() + R"({"id":0,"method":"Rumtime.enable","params":{}})"; in HWTEST_F_L0() 78 std::string result = ""; in HWTEST_F_L0() 79 std::function<void(const void*, const std::string &)> callback = in HWTEST_F_L0() 80 [&result]([[maybe_unused]] const void *ptr, const std::string &temp) {result = temp;}; in HWTEST_F_L0() 85 std::string msg = std::string() + R"({"id":0,"method":"Rumtime.enable","params":{}})"; in HWTEST_F_L0() [all …]
|
| D | profiler_impl_test.cpp | 89 ASSERT_TRUE(response.GetMessage().find("Stop is failure") != std::string::npos); in HWTEST_F_L0() 131 … std::string msg = std::string() + R"({"id":0,"method":"Debugger.requestMemoryDump","params":{}})"; in HWTEST_F_L0() 164 std::string result = ""; in HWTEST_F_L0() 165 std::function<void(const void*, const std::string &)> callback = in HWTEST_F_L0() 166 [&result]([[maybe_unused]] const void *ptr, const std::string &temp) { result = temp; }; in HWTEST_F_L0() 170 std::string msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{}})"; in HWTEST_F_L0() 173 ASSERT_TRUE(result.find("Unknown method: Test") != std::string::npos); in HWTEST_F_L0() 174 msg = std::string() + R"({"id":0,"method":"Debugger.disable","params":{}})"; in HWTEST_F_L0() 186 std::string result = ""; in HWTEST_F_L0() 187 std::function<void(const void*, const std::string &)> callback = in HWTEST_F_L0() [all …]
|
| D | debugger_impl_test.cpp | 55 std::string outStrForCallbackCheck = ""; in HWTEST_F_L0() 56 std::function<void(const void*, const std::string &)> callback = in HWTEST_F_L0() 57 … [&outStrForCallbackCheck]([[maybe_unused]] const void *ptr, const std::string &inStrOfReply) { in HWTEST_F_L0() 64 std::string strFilename = "filename"; in HWTEST_F_L0() 83 std::string outStrForCallbackCheck = ""; in HWTEST_F_L0() 84 std::function<void(const void*, const std::string &)> callback = in HWTEST_F_L0() 85 … [&outStrForCallbackCheck]([[maybe_unused]] const void *ptr, const std::string &inStrOfReply) { in HWTEST_F_L0() 93 std::string msg = std::string() + in HWTEST_F_L0() 113 std::string outStrForCallbackCheck = ""; in HWTEST_F_L0() 114 std::function<void(const void*, const std::string &)> callback = in HWTEST_F_L0() [all …]
|
| D | tracing_impl_test.cpp | 64 std::vector<std::string> categories = {}; in HWTEST_F_L0() 73 std::string syncId; in HWTEST_F_L0() 83 std::string dumpGuid; in HWTEST_F_L0() 100 std::string result = ""; in HWTEST_F_L0() 101 std::function<void(const void*, const std::string &)> callback = in HWTEST_F_L0() 102 [&result]([[maybe_unused]] const void *ptr, const std::string &temp) { result = temp; }; in HWTEST_F_L0() 106 std::string msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{}})";; in HWTEST_F_L0() 109 ASSERT_TRUE(result.find("Unknown method: Test") != std::string::npos); in HWTEST_F_L0() 110 msg = std::string() + R"({"id":0,"method":"Debugger.end","params":{}})"; in HWTEST_F_L0() 117 ASSERT_TRUE(result.find("End not support now.") != std::string::npos); in HWTEST_F_L0() [all …]
|
| D | protocol_handler_test.cpp | 53 std::string result = ""; in HWTEST_F_L0() 54 std::function<void(const void*, const std::string &)> callback = in HWTEST_F_L0() 55 [&result]([[maybe_unused]] const void *ptr, const std::string &temp) { result = temp; }; in HWTEST_F_L0() 57 std::string msg = std::string() + R"({"id":0,"method":"Tracing.Test","params":{}})"; in HWTEST_F_L0() 60 ASSERT_TRUE(result.find("Unknown method: Test") != std::string::npos); in HWTEST_F_L0() 65 std::string result = ""; in HWTEST_F_L0() 66 std::function<void(const void*, const std::string &)> callback = in HWTEST_F_L0() 67 [&result]([[maybe_unused]] const void *ptr, const std::string &temp) { result = temp; }; in HWTEST_F_L0() 69 std::string msg = std::string() + R"({"id":0,"method":"Tracing.Test","params":{}})"; in HWTEST_F_L0() 79 std::string result = ""; in HWTEST_F_L0() [all …]
|
| D | heapprofiler_impl_test.cpp | 152 std::string result = ""; in HWTEST_F_L0() 153 std::function<void(const void*, const std::string &)> callback = in HWTEST_F_L0() 154 [&result]([[maybe_unused]] const void *ptr, const std::string &temp) {result = temp;}; in HWTEST_F_L0() 158 std::string msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{}})"; in HWTEST_F_L0() 161 ASSERT_TRUE(result.find("Unknown method: Test") != std::string::npos); in HWTEST_F_L0() 162 msg = std::string() + R"({"id":0,"method":"Debugger.disable","params":{}})"; in HWTEST_F_L0() 174 std::string result = ""; in HWTEST_F_L0() 175 std::function<void(const void*, const std::string &)> callback = in HWTEST_F_L0() 176 [&result]([[maybe_unused]] const void *ptr, const std::string &temp) {result = temp;}; in HWTEST_F_L0() 180 std::string msg = std::string() + R"({"id":0,"method":"HeapProfiler.disable","params":{}})"; in HWTEST_F_L0() [all …]
|
| /arkcompiler/runtime_core/assembler/ |
| D | mangling.h | 33 inline std::string DeMangleName(const std::string &name) in DeMangleName() 36 if (iter != std::string::npos) { in DeMangleName() 42 inline std::string MangleFunctionName(const std::string &name, const std::vector<pandasm::Function:… in MangleFunctionName() 45 std::string mangle_name {name}; in MangleFunctionName() 48 mangle_name += p.type.GetName() + std::string(MANGLE_SEPARATOR); in MangleFunctionName() 50 mangle_name += return_type.GetName() + std::string(MANGLE_SEPARATOR); in MangleFunctionName() 55 inline std::string MangleFieldName(const std::string &name, const pandasm::Type &type) in MangleFieldName() 57 std::string mangle_name {name}; in MangleFieldName() 59 mangle_name += type.GetName() + std::string(MANGLE_SEPARATOR); in MangleFieldName() 63 inline std::string GetFunctionSignatureFromName(std::string name, in GetFunctionSignatureFromName() [all …]
|
| /arkcompiler/runtime_core/disassembler/ |
| D | accumulators.h | 26 using LabelTable = std::map<size_t, std::string>; 30 std::string method_info; 32 std::vector<std::string> instructions_info; 40 std::string record_info; 42 std::vector<std::string> fields_info; 46 std::map<std::string, RecordInfo> records_info; 47 std::map<std::string, MethodInfo> methods_info; 50 using AnnotationList = std::vector<std::pair<std::string, std::string>>; 54 std::map<std::string, AnnotationList> field_annotations; 58 std::map<std::string, AnnotationList> method_annotations; [all …]
|
| /arkcompiler/ets_frontend/merge_abc/src/ |
| D | options.h | 33 const std::string &protoPathInput() const in protoPathInput() 38 const std::string &protoBinSuffix() const in protoBinSuffix() 43 const std::string &outputFileName() const in outputFileName() 48 const std::string &outputFilePath() const in outputFilePath() 53 const std::string &ErrorMsg() const in ErrorMsg() 60 std::string errorMsg_; 61 std::string protoBinSuffix_ {"protoBin"}; 62 std::string protoPathInput_; 63 std::string outputFileName_ {"modules.abc"}; 64 std::string outputFilePath_;
|
| D | mergeProgram.h | 26 static bool GetProtoFiles(const std::string &protoBinPath, const std::string &protoBinSuffix, 27 std::vector<std::string> &directoryFiles); 28 static bool AppendProtoFiles(const std::string &filePath, const std::string &protoBinSuffix, 29 std::vector<std::string> &protoFiles); 30 static bool CollectProtoFiles(std::string &input, const std::string &protoBinSuffix, 31 std::vector<std::string> &protoFiles);
|
| /arkcompiler/toolchain/inspector/ |
| D | connect_inspector.h | 31 void StartServer(const std::string& componentName); 33 void StopServer([[maybe_unused]] const std::string& componentName); 35 void SendMessage(const std::string& message); 37 void StoreMessage(int32_t instanceId, const std::string& message); 39 void SendLayoutMessage(const std::string& message); 41 void StoreInspectorInfo(const std::string& jsonTreeStr, const std::string& jsonSnapshotStr); 57 std::string tree; 58 std::string snapShot; 66 std::string componentName_; 67 std::unordered_map<int32_t, std::string> infoBuffer_; [all …]
|
| /arkcompiler/runtime_core/libpandabase/utils/ |
| D | json_builder.cpp | 22 using panda::helpers::string::Format; 25 void JsonEscape(std::ostream &os, std::string_view string) in JsonEscape() argument 29 while (!string.empty()) { in JsonEscape() 31 …std::find_if(string.begin(), string.end(), [](char ch) { return ch == '"' || ch == '\\' || ch < ' … in JsonEscape() 32 auto pos = iter - string.begin(); in JsonEscape() 34 os << string.substr(0, pos); in JsonEscape() 36 if (iter == string.end()) { in JsonEscape() 66 string.remove_prefix(pos + 1); in JsonEscape()
|