Home
last modified time | relevance | path

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

12345678910>>...170

/arkcompiler/runtime_core/static_core/tests/tests-u-runner/test-lists/ets-func-tests/
Dchapters.yaml22 - std
35 - std-containers-dir:
36 - std/containers
37 - std-core-dir:
38 - std/core
39 - std-math-dir:
40 - std/math
41 - std-time-dir:
42 - std/time
43 - std-serialization-dir:
[all …]
/arkcompiler/runtime_core/static_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-emitter.h38 std::unordered_map<uint32_t, std::string> methods;
39 std::unordered_map<uint32_t, std::string> fields;
40 std::unordered_map<uint32_t, std::string> classes;
41 std::unordered_map<uint32_t, std::string> strings;
42 std::unordered_map<uint32_t, std::string> literalarrays;
46 std::unordered_map<std::string, panda_file::BaseMethodItem *> methodItems;
47 std::unordered_map<std::string, panda_file::BaseFieldItem *> fieldItems;
48 std::unordered_map<std::string, panda_file::BaseClassItem *> classItems;
49 std::unordered_map<std::string_view, panda_file::StringItem *> stringItems;
50 std::unordered_map<std::string, panda_file::LiteralArrayItem *> literalarrayItems;
[all …]
/arkcompiler/toolchain/tooling/base/
Dpt_returns.h26 std::unique_ptr<PtJson> ToJson() const override in ToJson()
38 explicit DebuggerEnableReturns(UniqueDebuggerId id, std::vector<std::string> list) in DebuggerEnableReturns()
42 std::unique_ptr<PtJson> ToJson() const override;
50 std::vector<std::string> protocols_ {};
55 explicit EnableReturns(std::vector<std::string> list) : protocols_(list) {} in EnableReturns()
58 std::unique_ptr<PtJson> ToJson() const override;
65 std::vector<std::string> protocols_ {};
70 …explicit SetBreakpointByUrlReturns(const std::string &id, std::vector<std::unique_ptr<Location>> l… in SetBreakpointByUrlReturns()
71 : id_(id), locations_(std::move(locations)) in SetBreakpointByUrlReturns()
75 std::unique_ptr<PtJson> ToJson() const override;
[all …]
Dpt_types.h40 virtual std::unique_ptr<PtJson> ToJson() const = 0;
52 using BreakpointId = std::string;
56 … return "id:" + std::to_string(metaData.line_) + ":" + std::to_string(metaData.column_) + ":" + in ToString()
63 if (lineStart == std::string::npos) { in ParseBreakpointId()
67 if (columnStart == std::string::npos) { in ParseBreakpointId()
71 if (urlStart == std::string::npos) { in ParseBreakpointId()
74 std::string lineStr = id.substr(lineStart + 1, columnStart - lineStart - 1); in ParseBreakpointId()
75 std::string columnStr = id.substr(columnStart + 1, urlStart - columnStart - 1); in ParseBreakpointId()
76 std::string url = id.substr(urlStart + 1); in ParseBreakpointId()
90 std::string url_ {};
[all …]
/arkcompiler/runtime_core/libark_defect_scan_aux/include/
Dabc_file.h47 using FuncInstPair = std::pair<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);
55 bool IsModule(std::string_view record_name = "") const;
57 const std::string &GetAbcFileName() const;
58 const std::vector<std::shared_ptr<Class>> &GetClassList() const;
62 const Function *GetFunctionByName(std::string_view func_name) const;
63 const Function *GetExportFunctionByExportName(std::string_view export_func_name,
64 std::string_view record_name = "") const;
66 const Class *GetClassByName(std::string_view class_name) const;
[all …]
/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(const 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()
96std::optional<Error> SetAttributeValue(const std::string_view &attribute, const std::string_view &… 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 …]
/arkcompiler/toolchain/tooling/agent/
Druntime_impl.h38 std::vector<std::unique_ptr<PropertyDescriptor>> *outPropertyDesc,
39 std::optional<std::vector<std::unique_ptr<InternalPropertyDescriptor>>> *outInternalDescs,
40 std::optional<std::vector<std::unique_ptr<PrivatePropertyDescriptor>>> *outPrivateProps,
41 std::optional<std::unique_ptr<ExceptionDetails>> *outExceptionDetails);
45 DispatcherImpl(ProtocolChannel *channel, std::unique_ptr<RuntimeImpl> runtime) in DispatcherImpl()
46 : DispatcherBase(channel), runtime_(std::move(runtime)) {} in DispatcherImpl()
64 Method GetMethodEnum(const std::string& method);
67 std::unique_ptr<RuntimeImpl> runtime_ {};
82 const char* name, std::vector<std::unique_ptr<PropertyDescriptor>> *outPropertyDesc);
84 std::vector<std::unique_ptr<PropertyDescriptor>> *outPropertyDesc);
[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::vector<std::string> list {}; in HWTEST_F_L0()
67std::unique_ptr<DebuggerEnableReturns> enableReturns = std::make_unique<DebuggerEnableReturns>(100… in HWTEST_F_L0()
70 std::string debuggerId; in HWTEST_F_L0()
77 auto locations = std::vector<std::unique_ptr<Location>>(); in HWTEST_F_L0()
78 std::unique_ptr<Location> location = std::make_unique<Location>(); in HWTEST_F_L0()
80 locations.emplace_back(std::move(location)); in HWTEST_F_L0()
81 std::unique_ptr<SetBreakpointByUrlReturns> setBreakpointByUrlReturns in HWTEST_F_L0()
82 = std::make_unique<SetBreakpointByUrlReturns>("11", std::move(locations)); in HWTEST_F_L0()
84 std::string id; in HWTEST_F_L0()
88 std::unique_ptr<PtJson> locationsJson; in HWTEST_F_L0()
[all …]
Ddebugger_impl_test.cpp26 explicit DebuggerImplFriendTest(std::unique_ptr<DebuggerImpl> &debuggerImpl) in DebuggerImplFriendTest()
28 debuggerImpl_ = std::move(debuggerImpl); in DebuggerImplFriendTest()
31 void CheckAndGenerateCondFunc(const std::optional<std::string> condition) in CheckAndGenerateCondFunc()
36 Local<JSValueRef> ConvertToLocal(const std::string &varValue) in ConvertToLocal()
46 bool DecodeAndCheckBase64(const std::string &src, std::vector<uint8_t> &dest) in DecodeAndCheckBase64()
51 std::unique_ptr<DebuggerImpl> debuggerImpl_;
86 std::string outStrForCallbackCheck = ""; in HWTEST_F_L0()
87 std::function<void(const void*, const std::string &)> callback = in HWTEST_F_L0()
88 … [&outStrForCallbackCheck]([[maybe_unused]] const void *ptr, const std::string &inStrOfReply) { in HWTEST_F_L0()
91 auto runtimeImpl = std::make_unique<RuntimeImpl>(ecmaVm, protocolChannel); in HWTEST_F_L0()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/
Dets_panda_file_items.h27 static constexpr std::string_view ERROR = "Lescompat/Error;";
28 static constexpr std::string_view ARRAY_BUFFER = "Lescompat/ArrayBuffer;";
29 static constexpr std::string_view BIG_INT = "Lescompat/BigInt;";
30 static constexpr std::string_view ASYNC = "Lets/coroutine/Async;";
31 static constexpr std::string_view EXCEPTION = "Lstd/core/Exception;";
32 static constexpr std::string_view CLASS = "Lstd/core/Class;";
33 static constexpr std::string_view OBJECT = "Lstd/core/Object;";
34 static constexpr std::string_view PROMISE = "Lstd/core/Promise;";
35 static constexpr std::string_view PROMISE_REF = "Lstd/core/PromiseRef;";
36 static constexpr std::string_view INTERNAL_UNDEFINED = "Lstd/core/__internal_unde…
[all …]
/arkcompiler/runtime_core/static_core/libpandabase/tests/
Dlock_holder_test.cpp60 std::array<std::thread, TEST_THREADS> threads; in TEST_F()
63 threads[i] = std::thread(LockMutexesAndIncrement<Mutex>, std::ref(var), std::ref(lock)); in TEST_F()
77 std::array<std::thread, TEST_THREADS> threads; in TEST_F()
84std::thread(LockMutexesAndIncrement<Mutex, Mutex>, std::ref(var), std::ref(lock0), std::ref(lock1)… in TEST_F()
86std::thread(LockMutexesAndIncrement<Mutex, Mutex>, std::ref(var), std::ref(lock1), std::ref(lock0)… in TEST_F()
99 …threads[0U] = std::thread(LockMutexesAndIncrement<Mutex, RecursiveMutex>, std::ref(var), std::ref(… in TEST_F()
100 std::ref(recursiveLock)); in TEST_F()
101 threads[1U] = std::thread(LockMutexesAndIncrement<RecursiveMutex, Mutex>, std::ref(var), in TEST_F()
102 std::ref(recursiveLock), std::ref(lock0)); in TEST_F()
116 std::array<std::thread, TEST_THREADS> threads; in TEST_F()
[all …]
/arkcompiler/runtime_core/abc2program/
Ddump_utils.h28 using LiteralTagToStringMap = std::unordered_map<panda_file::LiteralTag, std::string>;
29 using LabelMap = std::unordered_map<std::string, std::string>;
30 using FunctionKindToStringMap = std::unordered_map<panda_file::FunctionKind, std::string>;
31 using OpcodeLiteralIdIndexMap = std::unordered_map<pandasm::Opcode, size_t>;
34 constexpr std::string_view DUMP_TITLE_SOURCE_BINARY = "# source binary: ";
35 constexpr std::string_view DUMP_TITLE_LANGUAGE = ".language ";
36 constexpr std::string_view DUMP_TITLE_LITERALS = "# LITERALS";
37 constexpr std::string_view DUMP_TITLE_RECORDS = "# RECORDS";
38 constexpr std::string_view DUMP_TITLE_RECORD = ".record ";
39 constexpr std::string_view DUMP_TITLE_RECORD_SOURCE_FILE = ".record.source_file ";
[all …]
/arkcompiler/ets_runtime/ecmascript/extractortool/src/
Dfile_path_utils.h25 bool StringStartWith(const std::string& str, const char* startStr, size_t startStrLen);
26 bool StringEndWith(const std::string& str, const char* endStr, size_t endStrLen);
27 …void SplitString(const std::string& str, std::vector<std::string>& out, size_t pos = 0, const char…
28 std::string JoinString(const std::vector<std::string>& strs, char sep, size_t startIndex = 0);
29 std::string StripString(const std::string& str, const char* charSet = " \t\n\r");
31 void FixExtName(std::string& path);
32 std::string GetInstallPath(const std::string& curJsModulePath, bool module = true);
33std::string MakeNewJsModulePath(const std::string& curJsModulePath, const std::string& newJsModule…
34 std::string FindNpmPackageInPath(const std::string& npmPath);
35 std::string FindNpmPackageInTopLevel(
[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]] const std::string_view &attribute) const override in IsAnnotationRecordAttribute()
56 bool IsAnnotationIdAttribute([[maybe_unused]] const std::string_view &attribute) const override in IsAnnotationIdAttribute()
61 …bool IsAnnotationElementNameAttribute([[maybe_unused]] const std::string_view &attribute) const ov… in IsAnnotationElementNameAttribute()
66 …bool IsAnnotationElementTypeAttribute([[maybe_unused]] const std::string_view &attribute) const ov… in IsAnnotationElementTypeAttribute()
72 [[maybe_unused]] const std::string_view &attribute) const override in IsAnnotationElementArrayComponentTypeAttribute()
77 …bool IsAnnotationElementValueAttribute([[maybe_unused]] const std::string_view &attribute) const o… in IsAnnotationElementValueAttribute()
82 std::optional<Error> Validate(const std::string_view &attribute) const override;
84std::optional<Error> Validate(const std::string_view &attribute, const std::string_view &value) co…
[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()
47 bool Initialize(int targetApiVersion, std::string targetApiSubVersion);
48 void FillSymbolTable(const std::stringstream &content);
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/assembler/extension/
Dets_meta.h25 static bool IsAnnotationRecordAttribute(std::string_view attribute) in IsAnnotationRecordAttribute()
30 static bool IsAnnotationIdAttribute(std::string_view attribute) in IsAnnotationIdAttribute()
35 static bool IsAnnotationElementTypeAttribute(std::string_view attribute) in IsAnnotationElementTypeAttribute()
40 static bool IsAnnotationElementArrayComponentTypeAttribute(std::string_view attribute) in IsAnnotationElementArrayComponentTypeAttribute()
45 static bool IsAnnotationElementNameAttribute(std::string_view attribute) in IsAnnotationElementNameAttribute()
50 static bool IsAnnotationElementValueAttribute(std::string_view attribute) in IsAnnotationElementValueAttribute()
58 std::string GetBase() const override in GetBase()
68 std::vector<std::string> GetInterfaces() const override in GetInterfaces()
99 bool IsAnnotationRecordAttribute([[maybe_unused]] std::string_view attribute) const override in IsAnnotationRecordAttribute()
104 bool IsAnnotationIdAttribute([[maybe_unused]] std::string_view attribute) const override in IsAnnotationIdAttribute()
[all …]
/arkcompiler/toolchain/tooling/client/manager/
Dvariable_manager.cpp24 void TreeNode::AddChild(std::unique_ptr<PropertyDescriptor> descriptor) in AddChild()
26 children.push_back(std::make_unique<TreeNode>(std::move(descriptor))); in AddChild()
31 children.push_back(std::make_unique<TreeNode>(std::move(descriptorMap))); in AddChild()
34 void TreeNode::AddChild(std::unique_ptr<TreeNode> child) in AddChild()
36 children.push_back(std::move(child)); in AddChild()
45 std::string indent(actualIndent, ' '); in Print()
47 if (std::holds_alternative<int32_t>(data)) { in Print()
48 std::cout << indent << "CallFrameId: " << std::get<int32_t>(data) << std::endl; in Print()
49 } else if (std::holds_alternative<std::map<int32_t, std::map<int32_t, std::string>>>(data)) { in Print()
50 const auto& outerMap = std::get<std::map<int32_t, std::map<int32_t, std::string>>>(data); in Print()
[all …]
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/
Dinspector_server.h44 using FrameInfoHandler = std::function<void(FrameId, std::string_view, std::string_view, size_t,
45 … const std::vector<Scope> &, const std::optional<RemoteObject> &)>;
56 void OnValidate(std::function<void()> &&handler);
57 void OnOpen(std::function<void()> &&handler);
58 void OnFail(std::function<void()> &&handler);
60 void CallDebuggerPaused(PtThread thread, const std::vector<BreakpointId> &hitBreakpoints,
61 const std::optional<RemoteObject> &exception,
62 const std::function<void(const FrameInfoHandler &)> &enumerateFrames);
64 void CallDebuggerScriptParsed(PtThread thread, ScriptId scriptId, std::string_view sourceFile);
66 const std::vector<RemoteObject> &arguments);
[all …]
/arkcompiler/ets_frontend/ets2panda/util/
Darktsconfig.h27 // Only build configuration which prevents us from usage of std::filesystem is "MOBILE" build
28 // because of lack of std::filesystem in our current version of mobile nativ development kit.
44 Pattern(std::string value, std::string base);
50 std::string GetSearchRoot() const;
53 bool Match(const std::string &path) const;
56 std::string value_ {};
57 std::string base_ {};
80 explicit ArkTsConfig(std::string configPath) : configPath_(std::move(configPath)) {} in ArkTsConfig()
83 std::optional<std::string> ResolvePath(const std::string &path) const;
85 std::string ConfigPath() const in ConfigPath()
[all …]
/arkcompiler/runtime_core/bytecode_optimizer/
Dbytecode_analysis_results.h30 const std::unordered_set<uint32_t> &GetConstantLocalExportSlots() in GetConstantLocalExportSlots()
36 void SetConstantLocalExportSlots(const std::unordered_set<uint32_t> &slots);
37 void SetLocalExportInfo(uint32_t slot, const std::string &external_name);
38 …void SetRegularImportInfo(uint32_t slot, const std::string &import_name, const std::string &source…
39 void SetNamespaceImportInfo(uint32_t slot, const std::string &source_record);
40 void Dump(std::ostream &os);
43 using LocalExportInfo = std::vector<std::string>;
45 std::string import_name;
46 std::string source_record_name;
49 bool GetExportedConstantValue(const std::string &name, ConstantValue &value) const;
[all …]
/arkcompiler/runtime_core/static_core/platforms/windows/libpandabase/
Dmem_hooks.cpp54 int PandaAllocHook(int alloctype, [[maybe_unused]] void *data, std::size_t size, int blocktype, in PandaAllocHook()
71 std::cout << std::left << std::setfill(' ') << std::setw(ALIGN_SIZE) << "alloc type"; in PandaAllocHook()
72 std::cout << std::left << std::setfill(' ') << std::setw(ALIGN_SIZE) << "block type"; in PandaAllocHook()
73 std::cout << std::left << std::setfill(' ') << std::setw(ALIGN_SIZE) << "size"; in PandaAllocHook()
74 std::cout << std::left << std::setfill(' ') << std::setw(ALIGN_SIZE) << "filename"; in PandaAllocHook()
75std::cout << std::left << std::setfill(' ') << std::setw(ALIGN_SIZE) << "linenumber" << std::endl; in PandaAllocHook()
82 std::cout << std::left << std::setfill(' ') << std::setw(ALIGN_SIZE) << alloctypeName; in PandaAllocHook()
83 std::cout << std::left << std::setfill(' ') << std::setw(ALIGN_SIZE) << blocktypeName; in PandaAllocHook()
84 std::cout << std::left << std::setfill(' ') << std::setw(ALIGN_SIZE) << static_cast<int>(size); in PandaAllocHook()
85 std::cout << std::left << std::setfill(' ') << std::setw(ALIGN_SIZE) << filename; in PandaAllocHook()
[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/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/
Dprofile.h47 std::vector<uint32> counter;
49 BBInfo(uint64 hash, uint32 num, std::vector<uint32> &&counter) in BBInfo()
53 BBInfo(uint64 hash, uint32 num, const std::initializer_list<uint32> &iList) in BBInfo()
61 bool CheckFuncHot(const std::string &className) const;
62 bool CheckMethodHot(const std::string &className) const;
63 bool CheckMethodSigHot(const std::string &methodSigStr) const;
64 bool CheckFieldHot(const std::string &className) const;
65 bool CheckClassHot(const std::string &className) const;
66 bool CheckLiteralHot(const std::string &literal) const;
67 bool CheckReflectionStrHot(const std::string &str, uint8 &layoutType) const;
[all …]

12345678910>>...170