Home
last modified time | relevance | path

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

12345678910>>...162

/arkcompiler/runtime_core/static_core/plugins/ets/tests/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/toolchain/tooling/dynamic/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 …]
/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 OBJECT = "Lstd/core/Object;";
33 static constexpr std::string_view PROMISE = "Lstd/core/Promise;";
34 static constexpr std::string_view JOB = "Lstd/core/Job;";
35 static constexpr std::string_view PROMISE_REF = "Lstd/core/PromiseRef;";
36 static constexpr std::string_view WAITERS_LIST = "Lstd/core/WaitersList;";
[all …]
/arkcompiler/runtime_core/panda_guard/configs/
Dguard_name_cache.h29 std::map<std::string, std::string> identifierCacheMap;
30 std::map<std::string, std::string> memberMethodCacheMap;
31 std::string obfName;
32 std::string oriSourceFile;
33 std::string obfSourceFile;
37 std::map<std::string, FileNameCacheInfo> fileCacheInfoMap;
38 std::string entryPackageInfo;
39 std::string compileSdkVersion;
40 std::map<std::string, std::string> propertyCacheMap;
41 std::map<std::string, std::string> fileNameCacheMap;
[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 …]
/arkcompiler/runtime_core/taihe/test/ani_primitives/author/src/
Dvoid_func.mytest.impl.cpp27 std::cout << "Myfunc1 is true " << std::endl; in Myfunc1()
32 std::cout << "Myfunc2 is option1 " << (int)option1 << std::endl; in Myfunc2()
33 std::cout << "Myfunc2 is option2 " << option2 << std::endl; in Myfunc2()
39 std::cout << "Myfunc3 is option1 " << option1 << std::endl; in Myfunc3()
40 std::cout << "Myfunc3 is option2 " << option2 << std::endl; in Myfunc3()
42 std::cout << "Myfunc3 is option1 " << option1 << std::endl; in Myfunc3()
43 std::cout << "Myfunc3 is option2 " << option2 << std::endl; in Myfunc3()
49 std::cout << "Myfunc4 is option1 " << option1 << std::endl; in Myfunc4()
50 std::cout << "Myfunc4 is option2 " << option2 << std::endl; in Myfunc4()
55 std::cout << "Myfunc5 is option1 " << option1 << std::endl; in Myfunc5()
[all …]
Dprimitives_test.impl.cpp40 std::cout << "TestBaseFunc1 is true " << std::endl; in TestBaseFunc1()
46 std::cout << "TestBaseFunc2 is option1 " << option1 << std::endl; in TestBaseFunc2()
47 std::cout << "TestBaseFunc2 is option2 " << option2 << std::endl; in TestBaseFunc2()
49 std::cout << "TestBaseFunc2 is option1 " << option1 << std::endl; in TestBaseFunc2()
50 std::cout << "TestBaseFunc2 is option2 " << option2 << std::endl; in TestBaseFunc2()
56 std::cout << "TestBaseFunc3 is option1 " << option1 << std::endl; in TestBaseFunc3()
57 std::cout << "TestBaseFunc3 is option2 " << option2 << std::endl; in TestBaseFunc3()
62 std::cout << "TestBaseFunc4 is option1 " << option1 << std::endl; in TestBaseFunc4()
63 std::cout << "TestBaseFunc4 is option2 " << option2 << std::endl; in TestBaseFunc4()
69 std::cout << "TestBaseFunc5 is option1 " << option1 << std::endl; in TestBaseFunc5()
[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/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/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/dynamic/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()
54std::string GetProperties(const int32_t callId, std::unique_ptr<GetPropertiesParams> params);
65 Method GetMethodEnum(const std::string& method);
68 std::unique_ptr<RuntimeImpl> runtime_ {};
83 const char* name, std::vector<std::unique_ptr<PropertyDescriptor>> *outPropertyDesc);
[all …]
/arkcompiler/toolchain/tooling/dynamic/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 …]
/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/static_core/plugins/ets/tests/test-lists/declgenets2ts/ets-func-tests/
Ddeclgen-ets2ts-func-tests-ignored.txt82 std/TypeCreateVoidTest.ets
83 std/concurrency/AsyncLockTest.ets
84 std/containers/BlockingQueue/LinkedBlockingQueue_getEnd.ets
85 std/containers/array_blocking_queue/ArrayBlockingQueue_AddTest.ets
86 std/containers/array_blocking_queue/ArrayBlockingQueue_GetEndTest.ets
87 std/containers/array_blocking_queue/ArrayBlockingQueue_GetFirstTest.ets
88 std/containers/array_blocking_queue/ArrayBlockingQueue_GetSizeTest.ets
89 std/containers/array_blocking_queue/ArrayBlockingQueue_PollTest.ets
90 std/containers/array_blocking_queue/ArrayBlockingQueue_PopTest.ets
91 std/containers/array_blocking_queue/ArrayBlockingQueue_PushTest.ets
[all …]
/arkcompiler/ets_runtime/compiler_service/include/
Daot_args_handler.h26 std::vector<std::string> argVector;
27 std::string fileName;
28 std::string signature;
37 AOTArgsHandler(const std::unordered_map<std::string, std::string> &argsMap);
44 std::vector<const char*> GetAotArgs() const;
48 std::string GetFileName() const;
50 std::string GetCodeSignArgs() const;
53 std::unique_ptr<AOTArgsParserBase> parser_;
54 const std::unordered_map<std::string, std::string> argsMap_;
56 mutable std::mutex hapArgsMutex_;
[all …]
/arkcompiler/ets_frontend/ets2panda/util/
Darktsconfig.h32 // Only build configuration which prevents us from usage of std::filesystem is "MOBILE" build
33 // because of lack of std::filesystem in our current version of mobile nativ development kit.
45 namespace fs = std::filesystem;
48 namespace fs = std::experimental::filesystem;
59 bool operator()(const std::string &x, const std::string &y) const in operator()
66 using PathsMap = std::map<std::string, std::vector<std::string>, CompareByLength>;
75 Pattern(std::string value, std::string base);
81 std::string GetSearchRoot() const;
84 bool Match(const std::string &path) const;
87 std::string value_ {};
[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 …]
Dsource_map.h33 using Clock = std::chrono::high_resolution_clock;
54 std::string url_;
56 std::vector<std::string> sources_;
57 std::vector<std::string> mappings_;
58 std::vector<SourceMapInfo> afterPos_;
72 void Init(const std::string& hapPath);
75 …bool TranslateUrlPositionBySourceMap(std::string& url, int& line, int& column, std::string& packag…
78 void SplitSourceMap(const std::string& sourceMapData);
79 …void ExtractSourceMapData(const std::string& allmappings, std::shared_ptr<SourceMapData>& curMapDa…
80 void ExtractKeyInfo(const std::string& sourceMap, std::vector<std::string>& sourceKeyInfo);
[all …]
/arkcompiler/runtime_core/panda_guard/obfuscate/
Dmodule_record.h26 FilePathItem(Program *program, std::string literalArrayIdx) in FilePathItem()
27 : Entity(program), refFilePath_(program), literalArrayIdx_(std::move(literalArrayIdx)) in FilePathItem()
37 void ExtractNames(std::set<std::string> &strings) const override;
40 std::string literalArrayIdx_;
45 RegularImportItem(Program *program, std::string literalArrayIdx) in RegularImportItem()
46 : Entity(program), literalArrayIdx_(std::move(literalArrayIdx)) in RegularImportItem()
54 void ExtractNames(std::set<std::string> &strings) const override;
56 std::string literalArrayIdx_;
59 std::string localName_;
60 std::string obfLocalName_;
[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/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/toolchain/tooling/static/
Dinspector_server.h49 using SetBreakpointHandler = std::optional<BreakpointId>(PtThread, SourceFileFilter &&, size_t,
50std::set<std::string_view> &, const std::string *);
51 using FrameInfoHandler = std::function<void(FrameId, std::string_view, std::string_view, size_t,
52 … const std::vector<Scope> &, const std::optional<RemoteObject> &)>;
62 void Run(const std::string& msg);
64 void OnValidate(std::function<void()> &&handler);
65 void OnOpen(std::function<void()> &&handler);
66 void OnFail(std::function<void()> &&handler);
68 void CallDebuggerPaused(PtThread thread, const std::vector<BreakpointId> &hitBreakpoints,
69 const std::optional<RemoteObject> &exception, PauseReason pauseReason,
[all …]
/arkcompiler/ets_frontend/ets2panda/lsp/include/
Dcode_fix_provider.h30 std::unordered_map<std::string, std::shared_ptr<CodeFixRegistration>> errorCodeToFixes_;
31 std::unordered_map<std::string, std::shared_ptr<CodeFixRegistration>> fixIdToRegistration_;
34std::unordered_map<std::string, std::shared_ptr<CodeFixRegistration>> GetErrorCodeToFixes() const in GetErrorCodeToFixes()
38std::unordered_map<std::string, std::shared_ptr<CodeFixRegistration>> GetFixIdToRegistration() con… in GetFixIdToRegistration()
43 …void RegisterCodeFix(const std::string &aliasName, std::unique_ptr<CodeFixRegistration> registrati…
46 std::string FormatWithArgs(const std::string &text);
47 std::string DiagnosticToString(const DiagnosticAndArguments &diag);
48 CodeFixAction CreateCodeFixActionWorker(std::string &fixName, std::string &description,
49std::vector<FileTextChanges> &changes, std::string &fixId,
50std::string &fixAllDescription, std::vector<CodeActionCommand> command);
[all …]
/arkcompiler/ets_frontend/ets2panda/driver/dependency_analyzer/
Ddep_analyzer.h27 std::string programName;
28 std::string arktsconfig;
29 std::vector<std::string> fileList;
35 …int AnalyzeDepsForMultiFiles(const char *exec, std::vector<std::string> &fileList, std::string &ar…
36 std::string ConvertPath(const std::string &path) const;
37 void Dump(std::string &outFilePath);
38 void Dump(std::ostream &ostr = std::cout);
40 const std::vector<std::string> &GetSourcePaths() in GetSourcePaths()
45 std::unordered_map<std::string, std::unordered_set<std::string>> &GetFileDirectDependencies() in GetFileDirectDependencies()
50 std::unordered_map<std::string, std::unordered_set<std::string>> &GetFileDirectDependants() in GetFileDirectDependants()
[all …]

12345678910>>...162