Home
last modified time | relevance | path

Searched full:std (Results 1 – 25 of 1996) sorted by relevance

12345678910>>...80

/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()
129 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 …]
Dassembly-emitter.h37 std::unordered_map<uint32_t, std::string> methods;
38 std::unordered_map<uint32_t, std::string> fields;
39 std::unordered_map<uint32_t, std::string> classes;
40 std::unordered_map<uint32_t, std::string> strings;
41 std::unordered_map<uint32_t, std::string> literalarrays;
45 std::unordered_map<std::string, panda_file::BaseMethodItem *> method_items;
46 std::unordered_map<std::string, panda_file::BaseFieldItem *> field_items;
47 std::unordered_map<std::string, panda_file::BaseClassItem *> class_items;
48 std::unordered_map<std::string, panda_file::StringItem *> string_items;
49 std::unordered_map<std::string, panda_file::LiteralArrayItem *> literalarray_items;
[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 EvaluateOnCallFrameReturns(std::unique_ptr<RemoteObject> result,
72 std::optional<std::unique_ptr<ExceptionDetails>> exceptionDetails = std::nullopt)
73 : result_(std::move(result)), exceptionDetails_(std::move(exceptionDetails)) in result_()
[all …]
Dpt_types.h34 virtual std::unique_ptr<PtJson> ToJson() const = 0;
46 using BreakpointId = std::string;
50 … return "id:" + std::to_string(metaData.line_) + ":" + std::to_string(metaData.column_) + ":" + in ToString()
57 if (lineStart == std::string::npos) { in ParseBreakpointId()
61 if (columnStart == std::string::npos) { in ParseBreakpointId()
65 if (urlStart == std::string::npos) { in ParseBreakpointId()
68 std::string lineStr = id.substr(lineStart + 1, columnStart - lineStart - 1); in ParseBreakpointId()
69 std::string columnStr = id.substr(columnStart + 1, urlStart - columnStart - 1); in ParseBreakpointId()
70 std::string url = id.substr(urlStart + 1); in ParseBreakpointId()
71 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 …]
Dpt_params.h26 std::unique_ptr<PtJson> ToJson() const override in ToJson()
41 static std::unique_ptr<EnableParams> Create(const PtJson &params);
57 std::optional<double> maxScriptsCacheSize_ {};
65 static std::unique_ptr<EvaluateOnCallFrameParams> Create(const PtJson &params);
72 const std::string &GetExpression() const in GetExpression()
82 std::string expression_ {};
83 std::optional<std::string> objectGroup_ {};
84 std::optional<bool> includeCommandLineAPI_ {};
85 std::optional<bool> silent_ {};
86 std::optional<bool> returnByValue_ {};
[all …]
/arkcompiler/toolchain/tooling/test/
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 …]
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 …]
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 …]
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 …]
/arkcompiler/runtime_core/plugins/ecmascript/assembler/extension/
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 …]
Decmascript_meta.cpp20 std::optional<Metadata::Error> RecordMetadata::Validate(std::string_view attribute) const in Validate()
38 std::optional<Metadata::Error> RecordMetadata::Validate(std::string_view attribute, std::string_vie… in Validate()
56 std::optional<Metadata::Error> FieldMetadata::Validate(std::string_view attribute) const in Validate()
61 std::optional<Metadata::Error> FieldMetadata::Validate(std::string_view attribute, std::string_view… in Validate()
66 std::optional<Metadata::Error> FunctionMetadata::Validate(std::string_view attribute) const in Validate()
71 std::optional<Metadata::Error> FunctionMetadata::Validate(std::string_view attribute, std::string_v… in Validate()
76 std::optional<Metadata::Error> ParamMetadata::Validate(std::string_view attribute) const in Validate()
81 std::optional<Metadata::Error> ParamMetadata::Validate(std::string_view attribute, std::string_view… in Validate()
86 void RecordMetadata::SetFlags(std::string_view attribute) in SetFlags()
94 void RecordMetadata::SetFlags(std::string_view attribute, std::string_view value) in SetFlags()
[all …]
/arkcompiler/runtime_core/disassembler/tests/
Dinstructions_test.cpp.in30 std::stringstream ss {};
31 d.Disassemble(std::string(DISASM_BIN_DIR) + "empty_record.bc");
34 EXPECT_TRUE(ss.str().find(".language PandaAssembly") != std::string::npos);
41 std::stringstream ss {};
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";
50std::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);
[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/toolchain/tooling/agent/
Druntime_impl.h38 std::unique_ptr<RemoteObject> *outRemoteObject,
39 std::optional<std::unique_ptr<ExceptionDetails>> *outExceptionDetails);
43 std::vector<std::unique_ptr<PropertyDescriptor>> *outPropertyDesc,
44 std::optional<std::vector<std::unique_ptr<InternalPropertyDescriptor>>> *outInternalDescs,
45 std::optional<std::vector<std::unique_ptr<PrivatePropertyDescriptor>>> *outPrivateProps,
46 std::optional<std::unique_ptr<ExceptionDetails>> *outExceptionDetails);
50 DispatcherImpl(ProtocolChannel *channel, std::unique_ptr<RuntimeImpl> runtime) in DispatcherImpl()
51 : DispatcherBase(channel), runtime_(std::move(runtime)) {} in DispatcherImpl()
64 std::unique_ptr<RuntimeImpl> runtime_ {};
79 const char* name, std::vector<std::unique_ptr<PropertyDescriptor>> *outPropertyDesc);
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/
Dcompiler_log.cpp19 CompilerLog::CompilerLog(const std::string &logOpt, bool TraceBC) in CompilerLog()
21 outputCIR_ = logOpt.find("cir") != std::string::npos || in CompilerLog()
22 logOpt.find("0") != std::string::npos; in CompilerLog()
23 outputLLIR_ = logOpt.find("llir") != std::string::npos || in CompilerLog()
24 logOpt.find("1") != std::string::npos; in CompilerLog()
25 outputASM_ = logOpt.find("asm") != std::string::npos || in CompilerLog()
26 logOpt.find("2") != std::string::npos; in CompilerLog()
27 outputType_ = logOpt.find("type") != std::string::npos || in CompilerLog()
28 logOpt.find("3") != std::string::npos; in CompilerLog()
29 allMethod_ = logOpt.find("all") != std::string::npos; in CompilerLog()
[all …]
/arkcompiler/runtime_core/compiler/tests/aarch32/
Dcallconv32_test.cpp30 static inline auto random_gen = std::mt19937_64(SEED);
45 code_alloc_ = new (std::nothrow) CodeAllocator(mem_stats_); in Callconv32Test()
98 // std::variant<Reg, uint8_t> GetNativeParam(const TypeInfo& type) in TEST_F()
105 EXPECT_TRUE(std::holds_alternative<Reg>(ret)); in TEST_F()
106 EXPECT_EQ(std::get<Reg>(ret).GetId(), 0); in TEST_F()
107 EXPECT_EQ(std::get<Reg>(ret), Reg(0, INT8_TYPE)); in TEST_F()
111 EXPECT_TRUE(std::holds_alternative<Reg>(ret)); in TEST_F()
112 EXPECT_EQ(std::get<Reg>(ret).GetId(), i); in TEST_F()
113 EXPECT_EQ(std::get<Reg>(ret), Reg(i, INT8_TYPE)); in TEST_F()
121 EXPECT_TRUE(std::holds_alternative<Reg>(ret)); in TEST_F()
[all …]
/arkcompiler/ets_frontend/es2panda/util/
Dhotfix.h38 …using LiteralBuffers = ArenaVector<std::pair<int32_t, std::vector<panda::pandasm::LiteralArray::Li…
41 … Hotfix(bool generateSymbolFile, bool generatePatch, bool hotReload, const std::string &recordName, in Hotfix()
62 uint32_t GetSlotIdFromSymbolTable(const std::string &variableName);
63 void AllocSlotfromPatchEnv(const std::string &variableName);
64 uint32_t GetPatchLexicalIdx(const std::string &variableName);
67 …void ProcessModule(const std::string &recordName, std::vector<panda::pandasm::LiteralArray::Litera…
68 … void ProcessJsonContentRecord(const std::string &recordName, const std::string &jsonFileContent);
73std::vector<std::pair<std::string, size_t>> GenerateFunctionAndClassHash(panda::pandasm::Function …
75 …void DumpModuleInfo(const std::string &recordName, std::vector<panda::pandasm::LiteralArray::Liter…
76 void ValidateModuleInfo(const std::string &recordName,
[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 bool SymbolTable::ReadSymbolTable(const std::string &symbolTable) in ReadSymbolTable()
50 std::ifstream ifs; in ReadSymbolTable()
51 std::string line; in ReadSymbolTable()
54 std::cerr << "Failed to open symbol table: " << symbolTable << std::endl; in ReadSymbolTable()
[all …]
/arkcompiler/ets_frontend/es2panda/typescript/extractor/
DtypeRecorder.h44 const std::unordered_map<const ir::AstNode *, int64_t> &NodeTypeIndex() const;
45 const std::unordered_map<const binder::Variable *, int64_t> &VariableTypeIndex() const;
46 const std::unordered_map<std::string, int64_t> &ExportType() const;
47 const std::unordered_map<std::string, int64_t> &DeclareType() const;
73 int64_t GetBuiltinInst(const std::vector<int64_t> &allTypes) const;
74 void SetBuiltinInst(const std::vector<int64_t> &allTypes, int64_t instIndex);
85 int64_t GetUnionType(const std::string &unionStr) const;
86 void SetUnionType(const std::string &unionStr, int64_t unionIndex);
88 int64_t GetObjectType(const std::string &objectStr) const;
89 void SetObjectType(const std::string &objectStr, int64_t objectIndex);
[all …]
DtypeRecorder.cpp47 const std::unordered_map<const ir::AstNode *, int64_t> &TypeRecorder::NodeTypeIndex() const in NodeTypeIndex()
52 const std::unordered_map<const binder::Variable *, int64_t> &TypeRecorder::VariableTypeIndex() const in VariableTypeIndex()
57 const std::unordered_map<std::string, int64_t> &TypeRecorder::ExportType() const in ExportType()
62 const std::unordered_map<std::string, int64_t> &TypeRecorder::DeclareType() const in DeclareType()
81 auto res = std::find_if(buffStorage_.begin(), buffStorage_.end(), in GetLiteralBuffer()
88 std::replace_if(buffStorage_.begin(), buffStorage_.end(), in SetLiteralBuffer()
97 return (res != m.end()) ? std::move(res->second) : std::move(DEFAULT_NAME); in GetAnonymousFunctionNames()
167 int64_t TypeRecorder::GetBuiltinInst(const std::vector<int64_t> &allTypes) const in GetBuiltinInst()
172 void TypeRecorder::SetBuiltinInst(const std::vector<int64_t> &allTypes, int64_t instIndex) in SetBuiltinInst()
215 int64_t TypeRecorder::GetUnionType(const std::string &unionStr) const in GetUnionType()
[all …]
/arkcompiler/ets_runtime/ecmascript/quick_fix/
Dmain.cpp34 const std::string TEST_ENTRY_POINT = "test";
35 const std::string RETEST_ENTRY_POINT = "retest";
48 std::string GetHelper() in GetHelper()
50 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 …]

12345678910>>...80