Home
last modified time | relevance | path

Searched refs:std (Results 1 – 25 of 1692) sorted by relevance

12345678910>>...68

/arkcompiler/runtime_core/assembler/
Dmeta.h48 Error(std::string msg, Type type) : msg_(std::move(msg)), type_(type) {} in Error()
53 std::string GetMessage() const in GetMessage()
64 std::string msg_;
72 std::optional<Error> SetAttribute(std::string_view attribute) in SetAttribute()
84 void RemoveAttribute(const std::string &attribute) in RemoveAttribute()
91 bool GetAttribute(const std::string &attribute) const in GetAttribute()
96 std::optional<Error> SetAttributeValue(std::string_view attribute, std::string_view value) in SetAttributeValue()
108 std::vector<std::string> GetAttributeValues(const std::string &attribute) const in GetAttributeValues()
118 std::optional<std::string> GetAttributeValue(const std::string &attribute) const in GetAttributeValue()
128 const std::unordered_set<std::string> &GetBoolAttributes() const in GetBoolAttributes()
[all …]
Dassembly-function.h42 std::string whole_line;
43 std::string exception_record;
44 std::string try_begin_label;
45 std::string try_end_label;
46 std::string catch_begin_label;
47 std::string catch_end_label;
51 std::unordered_map<std::string_view, size_t> try_catch_labels;
52 std::unordered_map<std::string, std::vector<const CatchBlock *>> try_catch_map;
53 std::vector<std::string> try_catch_order;
54 TryCatchInfo(std::unordered_map<std::string_view, size_t> &labels, in TryCatchInfo()
[all …]
/arkcompiler/toolchain/tooling/base/
Dpt_returns.h26 std::unique_ptr<PtJson> ToJson() const override in ToJson()
41 std::unique_ptr<PtJson> ToJson() const override;
53 …explicit SetBreakpointByUrlReturns(const std::string &id, std::vector<std::unique_ptr<Location>> l… in SetBreakpointByUrlReturns()
54 : id_(id), locations_(std::move(locations)) in SetBreakpointByUrlReturns()
58 std::unique_ptr<PtJson> ToJson() const override;
65 std::string id_ {};
66 std::vector<std::unique_ptr<Location>> locations_ {};
71 …explicit GetPossibleAndSetBreakpointByUrlReturns(std::vector<std::unique_ptr<BreakpointReturnInfo>… in GetPossibleAndSetBreakpointByUrlReturns()
72 : locations_(std::move(locations)) in GetPossibleAndSetBreakpointByUrlReturns()
76 std::unique_ptr<PtJson> ToJson() const override;
[all …]
Dpt_types.h35 virtual std::unique_ptr<PtJson> ToJson() const = 0;
47 using BreakpointId = std::string;
51 … return "id:" + std::to_string(metaData.line_) + ":" + std::to_string(metaData.column_) + ":" + in ToString()
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()
72 metaData->line_ = std::stoi(lineStr); in ParseBreakpointId()
[all …]
Dpt_events.h33 virtual std::string GetName() const = 0;
44 std::unique_ptr<PtJson> ToJson() const override;
46 std::string GetName() const override in GetName()
67 BreakpointResolved &SetLocation(std::unique_ptr<Location> location) in SetLocation()
69 location_ = std::move(location); in SetLocation()
78 std::unique_ptr<Location> location_ {nullptr};
85 std::unique_ptr<PtJson> ToJson() const override;
87 std::string GetName() const override in GetName()
92 const std::vector<std::unique_ptr<CallFrame>> *GetCallFrames() const in GetCallFrames()
97 Paused &SetCallFrames(std::vector<std::unique_ptr<CallFrame>> callFrames) in SetCallFrames()
[all …]
/arkcompiler/toolchain/tooling/test/
Dpt_returns_test.cpp55 std::unique_ptr<RemoteObject> result = std::make_unique<RemoteObject>(); in HWTEST_F_L0()
57 std::unique_ptr<EvaluateOnCallFrameReturns> evaluateOnCallFrameReturns in HWTEST_F_L0()
58 = std::make_unique<EvaluateOnCallFrameReturns>(std::move(result)); in HWTEST_F_L0()
61 std::unique_ptr<PtJson> tmpJson; in HWTEST_F_L0()
67 std::unique_ptr<GetScriptSourceReturns> getScriptSourceReturns = std::make_unique in HWTEST_F_L0()
71 std::unique_ptr<PtJson> tmpJson; in HWTEST_F_L0()
77 auto result = std::vector<std::unique_ptr<SearchMatch>>(); in HWTEST_F_L0()
78 std::unique_ptr<SearchMatch> tmpResult = std::make_unique<SearchMatch>(); in HWTEST_F_L0()
81 result.emplace_back(std::move(tmpResult)); in HWTEST_F_L0()
82 std::unique_ptr<SearchInContentReturns> searchInContentReturns in HWTEST_F_L0()
[all …]
Ddebugger_returns_test.cpp66 std::unique_ptr<EnableReturns> enableReturns = std::make_unique<EnableReturns>(100U); in HWTEST_F_L0()
69 std::string debuggerId; in HWTEST_F_L0()
76 auto locations = std::vector<std::unique_ptr<Location>>(); in HWTEST_F_L0()
77 std::unique_ptr<Location> location = std::make_unique<Location>(); in HWTEST_F_L0()
79 locations.emplace_back(std::move(location)); in HWTEST_F_L0()
80 std::unique_ptr<SetBreakpointByUrlReturns> setBreakpointByUrlReturns in HWTEST_F_L0()
81 = std::make_unique<SetBreakpointByUrlReturns>("11", std::move(locations)); in HWTEST_F_L0()
83 std::string id; in HWTEST_F_L0()
87 std::unique_ptr<PtJson> locationsJson; in HWTEST_F_L0()
95 std::unique_ptr<RemoteObject> result = std::make_unique<RemoteObject>(); in HWTEST_F_L0()
[all …]
Ddebugger_impl_test.cpp55 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()
60 auto runtimeImpl = std::make_unique<RuntimeImpl>(ecmaVm, protocolChannel); in HWTEST_F_L0()
61 auto debuggerImpl = std::make_unique<DebuggerImpl>(ecmaVm, protocolChannel, runtimeImpl.get()); 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()
88 auto runtimeImpl = std::make_unique<RuntimeImpl>(ecmaVm, protocolChannel); in HWTEST_F_L0()
[all …]
Dprofiler_impl_test.cpp55 auto profiler = std::make_unique<ProfilerImpl>(ecmaVm, channel); in HWTEST_F_L0()
64 auto profiler = std::make_unique<ProfilerImpl>(ecmaVm, channel); in HWTEST_F_L0()
74 auto profiler = std::make_unique<ProfilerImpl>(ecmaVm, channel); in HWTEST_F_L0()
76 std::unique_ptr<Profile> profile; in HWTEST_F_L0()
86 auto profiler = std::make_unique<ProfilerImpl>(ecmaVm, channel); in HWTEST_F_L0()
87 std::unique_ptr<Profile> profile; in HWTEST_F_L0()
89 ASSERT_TRUE(response.GetMessage().find("Stop is failure") != std::string::npos); in HWTEST_F_L0()
97 auto profiler = std::make_unique<ProfilerImpl>(ecmaVm, channel); in HWTEST_F_L0()
106 auto profiler = std::make_unique<ProfilerImpl>(ecmaVm, channel); in HWTEST_F_L0()
114 auto profiler = std::make_unique<ProfilerImpl>(ecmaVm, channel); in HWTEST_F_L0()
[all …]
Dtracing_impl_test.cpp55 auto tracing = std::make_unique<TracingImpl>(ecmaVm, channel); in HWTEST_F_L0()
63 auto tracing = std::make_unique<TracingImpl>(ecmaVm, channel); in HWTEST_F_L0()
64 std::vector<std::string> categories = {}; in HWTEST_F_L0()
72 auto tracing = std::make_unique<TracingImpl>(ecmaVm, channel); in HWTEST_F_L0()
73 std::string syncId; in HWTEST_F_L0()
81 auto tracing = std::make_unique<TracingImpl>(ecmaVm, channel); in HWTEST_F_L0()
82 auto params = std::make_unique<RequestMemoryDumpParams>(); in HWTEST_F_L0()
83 std::string dumpGuid; in HWTEST_F_L0()
85 DispatchResponse response = tracing->RequestMemoryDump(std::move(params), dumpGuid, success); in HWTEST_F_L0()
92 auto tracing = std::make_unique<TracingImpl>(ecmaVm, channel); in HWTEST_F_L0()
[all …]
Druntime_impl_test.cpp55 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()
59 auto runtimeImpl = std::make_unique<RuntimeImpl>(ecmaVm, channel); in HWTEST_F_L0()
60 …auto dispatcherImpl = std::make_unique<RuntimeImpl::DispatcherImpl>(channel, std::move(runtimeImpl… 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()
[all …]
Dheapprofiler_impl_test.cpp56 auto heapProfiler = std::make_unique<HeapProfilerImpl>(ecmaVm, channel); in HWTEST_F_L0()
65 auto heapProfiler = std::make_unique<HeapProfilerImpl>(ecmaVm, channel); in HWTEST_F_L0()
74 auto heapProfiler = std::make_unique<HeapProfilerImpl>(ecmaVm, channel); in HWTEST_F_L0()
83 auto heapProfiler = std::make_unique<HeapProfilerImpl>(ecmaVm, channel); in HWTEST_F_L0()
92 auto heapProfiler = std::make_unique<HeapProfilerImpl>(ecmaVm, channel); in HWTEST_F_L0()
103 auto heapProfiler = std::make_unique<HeapProfilerImpl>(ecmaVm, channel); in HWTEST_F_L0()
104 std::unique_ptr<GetObjectByHeapObjectIdParams> params; in HWTEST_F_L0()
105 std::unique_ptr<RemoteObject> remoteObjectResult; in HWTEST_F_L0()
114 auto heapProfiler = std::make_unique<HeapProfilerImpl>(ecmaVm, channel); in HWTEST_F_L0()
115 std::unique_ptr<SamplingHeapProfile> profile; in HWTEST_F_L0()
[all …]
/arkcompiler/runtime_core/assembler/extensions/
Decmascript_meta.h25 std::string GetBase() const override in GetBase()
35 std::vector<std::string> GetInterfaces() const override in GetInterfaces()
51 bool IsAnnotationRecordAttribute([[maybe_unused]] std::string_view attribute) const override in IsAnnotationRecordAttribute()
56 bool IsAnnotationIdAttribute([[maybe_unused]] std::string_view attribute) const override in IsAnnotationIdAttribute()
61 … bool IsAnnotationElementNameAttribute([[maybe_unused]] std::string_view attribute) const override in IsAnnotationElementNameAttribute()
66 … bool IsAnnotationElementTypeAttribute([[maybe_unused]] std::string_view attribute) const override in IsAnnotationElementTypeAttribute()
71 …bool IsAnnotationElementArrayComponentTypeAttribute([[maybe_unused]] std::string_view attribute) c… in IsAnnotationElementArrayComponentTypeAttribute()
76 … bool IsAnnotationElementValueAttribute([[maybe_unused]] std::string_view attribute) const override in IsAnnotationElementValueAttribute()
81 std::optional<Error> Validate(std::string_view attribute) const override;
83std::optional<Error> Validate(std::string_view attribute, std::string_view value) const override;
[all …]
/arkcompiler/toolchain/tooling/agent/
Druntime_impl.h37 std::unique_ptr<RemoteObject> *outRemoteObject,
38 std::optional<std::unique_ptr<ExceptionDetails>> *outExceptionDetails);
42 std::vector<std::unique_ptr<PropertyDescriptor>> *outPropertyDesc,
43 std::optional<std::vector<std::unique_ptr<InternalPropertyDescriptor>>> *outInternalDescs,
44 std::optional<std::vector<std::unique_ptr<PrivatePropertyDescriptor>>> *outPrivateProps,
45 std::optional<std::unique_ptr<ExceptionDetails>> *outExceptionDetails);
49 DispatcherImpl(ProtocolChannel *channel, std::unique_ptr<RuntimeImpl> runtime) in DispatcherImpl()
50 : DispatcherBase(channel), runtime_(std::move(runtime)) {} in DispatcherImpl()
63 std::unique_ptr<RuntimeImpl> runtime_ {};
78 const char* name, std::vector<std::unique_ptr<PropertyDescriptor>> *outPropertyDesc);
[all …]
/arkcompiler/ets_frontend/es2panda/util/
DsymbolTable.h26 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 …]
Ddumper.cpp19 void Dumper::DumpLiterals(std::map<std::string, panda::pandasm::LiteralArray> const &literalTable) in DumpLiterals()
21 std::cout << "======> literal array buffer <======" << std::endl; in DumpLiterals()
23 std::cout << "------------------------------------" << std::endl; in DumpLiterals()
24 std::cout << "slot " << it.first << std::endl; in DumpLiterals()
27 std::cout << "{" << std::endl; in DumpLiterals()
28 std::cout << " index: " << count++ << std::endl; in DumpLiterals()
29 std::cout << " tag: " << in DumpLiterals()
30 … unsigned(static_cast<std::underlying_type<panda::panda_file::LiteralTag>::type>(literal.tag_)) << in DumpLiterals()
31 std::endl; in DumpLiterals()
32 std::visit([](auto&& element) { in DumpLiterals()
[all …]
DsymbolTable.cpp22 const std::string SymbolTable::FIRST_LEVEL_SEPERATOR = "|";
23 const std::string SymbolTable::SECOND_LEVEL_SEPERATOR = ";";
30std::cerr << "Failed to read symbol table: " << symbolTable_ << ". Stop generating patch" << std::… in Initialize()
35 std::fstream fs; in Initialize()
37 std::ios_base::out | std::ios_base::trunc); in Initialize()
39 std::cerr << "Failed to create output symbol table: " << dumpSymbolTable_ << std::endl; in Initialize()
48 void SymbolTable::ReadRecordHashFunctionNames(std::string recordName, std::string funcInternalName, in ReadRecordHashFunctionNames()
49 std::string specialFuncIndex) in ReadRecordHashFunctionNames()
55 std::unordered_map<std::string, std::string> functionIndexNameMap {}; in ReadRecordHashFunctionNames()
62std::unordered_map<std::string, std::string> functionIndexNameMap {{specialFuncIndex, funcInternal… in ReadRecordHashFunctionNames()
[all …]
DpatchFix.h42 …using LiteralBuffers = ArenaVector<std::pair<int32_t, std::vector<panda::pandasm::LiteralArray::Li…
45 …PatchFix(bool generateSymbolFile, bool generatePatch, PatchFixKind patchFixKind, const std::string… 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);
[all …]
/arkcompiler/ets_runtime/ecmascript/quick_fix/
Dmain.cpp35 const std::string TEST_ENTRY_POINT = "test";
36 const std::string RETEST_ENTRY_POINT = "retest";
49 std::string GetHelper() in GetHelper()
51 std::string str; in GetHelper()
60std::chrono::duration_cast<std::chrono::nanoseconds>(std::chrono::system_clock::now().time_since_e… in Main()
66 std::cout << GetHelper(); in Main()
71 std::string files = argv[argc - 1]; in Main()
73 std::cout << "The last argument must be abc file" << std::endl; in Main()
74 std::cout << GetHelper(); in Main()
82 std::cout << GetHelper(); in Main()
[all …]
/arkcompiler/runtime_core/libark_defect_scan_aux/include/
Dabc_file.h47 using FuncInstPair = std::pair<const Function *, Inst>;
48 using ResolveResult = std::tuple<const void *, std::string, ResolveType>;
52 static std::unique_ptr<const AbcFile> Open(std::string_view abc_filename);
56 const std::string &GetAbcFileName() const;
60 const Function *GetFunctionByName(std::string_view func_name) const;
61 const Function *GetExportFunctionByExportName(std::string_view export_func_name) const;
63 const Class *GetClassByName(std::string_view class_name) const;
64 const Class *GetExportClassByExportName(std::string_view export_class_name) const;
68 std::string GetInternalNameByExportName(std::string_view export_name) const;
70 std::string GetImportNameByExportName(std::string_view export_name) const;
[all …]
Dmodule_record.h24 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_;
38 explicit ModuleRecord(std::string_view module_filename) : module_filename_(module_filename) {} in ModuleRecord()
41 void SetModuleFilename(std::string_view module_filename);
42 void SetRequestModules(std::vector<std::string> &request_modules);
[all …]
/arkcompiler/ets_frontend/ts2panda/ts2abc/
Dmain.cpp23 int Preprocess(const panda::ts2abc::Options &options, const panda::PandArgParser &argParser, std::s… in Preprocess()
24 std::string &data, const std::string &usage) in Preprocess()
26 std::string input; in Preprocess()
31 std::cerr << "Incorrect args number" << std::endl; in Preprocess()
32 std::cerr << "Usage example: ts2abc test.json test.abc"<< std::endl; in Preprocess()
33 std::cerr << usage << std::endl; in Preprocess()
34 std::cerr << argParser.GetHelpString(); in Preprocess()
44 std::cerr << usage << std::endl; in Preprocess()
45 std::cerr << argParser.GetHelpString(); in Preprocess()
53 const std::string &usage) in HandleNpmEntries()
[all …]
/arkcompiler/runtime_core/disassembler/
Daccumulators.h26 using LabelTable = std::map<size_t, std::string>;
27 using IdList = std::vector<panda::panda_file::File::EntityId>;
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;
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/
Dcompiler_log.h40 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 …]
/arkcompiler/runtime_core/libpandabase/tests/
Dbit_helpers_test.cpp27 EXPECT_TRUE((std::is_same_v<UnsignedTypeHelperT<0>, uint8_t>)); in TEST()
28 EXPECT_TRUE((std::is_same_v<UnsignedTypeHelperT<1>, uint8_t>)); in TEST()
29 EXPECT_TRUE((std::is_same_v<UnsignedTypeHelperT<8>, uint8_t>)); in TEST()
31 EXPECT_TRUE((std::is_same_v<UnsignedTypeHelperT<9>, uint16_t>)); in TEST()
32 EXPECT_TRUE((std::is_same_v<UnsignedTypeHelperT<16>, uint16_t>)); in TEST()
34 EXPECT_TRUE((std::is_same_v<UnsignedTypeHelperT<17>, uint32_t>)); in TEST()
35 EXPECT_TRUE((std::is_same_v<UnsignedTypeHelperT<32>, uint32_t>)); in TEST()
37 EXPECT_TRUE((std::is_same_v<UnsignedTypeHelperT<33>, uint64_t>)); in TEST()
38 EXPECT_TRUE((std::is_same_v<UnsignedTypeHelperT<64>, uint64_t>)); in TEST()
40 EXPECT_TRUE((std::is_same_v<UnsignedTypeHelperT<65>, void>)); in TEST()
[all …]

12345678910>>...68