| /arkcompiler/runtime_core/static_core/plugins/ets/tests/test-lists/ets-func-tests/ |
| D | chapters.yaml | 22 - 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/ |
| D | meta.h | 48 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/toolchain/tooling/base/ |
| D | pt_returns.h | 26 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 …]
|
| D | pt_types.h | 40 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/panda_guard/configs/ |
| D | guard_name_cache.h | 29 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/libark_defect_scan_aux/include/ |
| D | abc_file.h | 47 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/static_core/plugins/ets/runtime/ |
| D | ets_panda_file_items.h | 27 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 WAITERS_LIST = "Lstd/core/WaitersList;"; [all …]
|
| /arkcompiler/runtime_core/assembler/ |
| D | meta.h | 48 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() 96 …std::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/ |
| D | runtime_impl.h | 38 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/ |
| D | pt_returns_test.cpp | 55 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 …]
|
| D | debugger_returns_test.cpp | 66 std::vector<std::string> list {}; in HWTEST_F_L0() 67 …std::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 …]
|
| D | debugger_impl_test.cpp | 26 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 …]
|
| D | tracing_impl_test.cpp | 55 auto tracing = std::make_unique<TracingImpl>(ecmaVm, channel); in HWTEST_F_L0() 56 auto params = std::make_unique<StartParams>(); in HWTEST_F_L0() 58 DispatchResponse response = tracing->Start(std::move(params)); in HWTEST_F_L0() 68 auto tracing = std::make_unique<TracingImpl>(ecmaVm, channel); in HWTEST_F_L0() 69 std::vector<std::string> categories = {}; in HWTEST_F_L0() 77 auto tracing = std::make_unique<TracingImpl>(ecmaVm, channel); in HWTEST_F_L0() 78 std::string syncId; in HWTEST_F_L0() 86 auto tracing = std::make_unique<TracingImpl>(ecmaVm, channel); in HWTEST_F_L0() 87 auto params = std::make_unique<RequestMemoryDumpParams>(); in HWTEST_F_L0() 88 std::string dumpGuid; in HWTEST_F_L0() [all …]
|
| /arkcompiler/runtime_core/abc2program/ |
| D | dump_utils.h | 28 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/static_core/libpandabase/tests/ |
| D | lock_holder_test.cpp | 60 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() 84 …std::thread(LockMutexesAndIncrement<Mutex, Mutex>, std::ref(var), std::ref(lock0), std::ref(lock1)… in TEST_F() 86 …std::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/ets_runtime/ecmascript/extractortool/src/ |
| D | file_path_utils.h | 25 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); 33 …std::string MakeNewJsModulePath(const std::string& curJsModulePath, const std::string& newJsModule… 34 std::string FindNpmPackageInPath(const std::string& npmPath); 35 std::string FindNpmPackageInTopLevel( [all …]
|
| D | source_map.h | 32 using Clock = std::chrono::high_resolution_clock; 53 std::string url_; 55 std::vector<std::string> sources_; 56 std::vector<std::string> mappings_; 57 std::vector<SourceMapInfo> afterPos_; 71 void Init(const std::string& hapPath); 74 …bool TranslateUrlPositionBySourceMap(std::string& url, int& line, int& column, std::string& packag… 77 void SplitSourceMap(const std::string& sourceMapData); 78 …void ExtractSourceMapData(const std::string& sourceMapData, std::shared_ptr<SourceMapData>& curMap… 79 void ExtractKeyInfo(const std::string& sourceMap, std::vector<std::string>& sourceKeyInfo); [all …]
|
| /arkcompiler/runtime_core/assembler/extensions/ |
| D | ecmascript_meta.h | 25 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; 84 …std::optional<Error> Validate(const std::string_view &attribute, const std::string_view &value) co… [all …]
|
| /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() 47 bool Initialize(int targetApiVersion, std::string targetApiSubVersion); 48 void FillSymbolTable(const std::stringstream &content); [all …]
|
| /arkcompiler/runtime_core/panda_guard/obfuscate/ |
| D | module_record.h | 26 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/runtime_core/static_core/plugins/ets/tests/integrational/ |
| D | mock_stdlib.pa | 16 .record std.core.String 17 .record std.core.StringBuilder 18 .record std.core.Object 19 .record std.core.Class 20 .record std.core.__internal_undefined 21 .record std.core.StackOverflowError 22 .record std.core.DoubleToStringCacheElement 23 .record std.core.FloatToStringCacheElement 24 .record std.core.LongToStringCacheElement 26 .record std.core.FinalizableWeakRef { [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/tooling/inspector/ |
| D | inspector_server.h | 46 …using SetBreakpointHandler = std::optional<BreakpointId>(PtThread, const std::function<bool(std::s… 47 … size_t, std::set<std::string_view> &, const std::string *); 48 using FrameInfoHandler = std::function<void(FrameId, std::string_view, std::string_view, size_t, 49 … const std::vector<Scope> &, const std::optional<RemoteObject> &)>; 50 … using EvaluationResult = std::optional<std::pair<RemoteObject, std::optional<ExceptionDetails>>>; 62 void OnValidate(std::function<void()> &&handler); 63 void OnOpen(std::function<void()> &&handler); 64 void OnFail(std::function<void()> &&handler); 66 void CallDebuggerPaused(PtThread thread, const std::vector<BreakpointId> &hitBreakpoints, 67 const std::optional<RemoteObject> &exception, [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/assembler/extension/ |
| D | ets_meta.h | 25 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/ |
| D | variable_manager.cpp | 20 void TreeNode::AddChild(std::unique_ptr<PropertyDescriptor> descriptor) in AddChild() 22 children.push_back(std::make_unique<TreeNode>(std::move(descriptor))); in AddChild() 27 children.push_back(std::make_unique<TreeNode>(std::move(descriptorMap))); in AddChild() 30 void TreeNode::AddChild(std::unique_ptr<TreeNode> child) in AddChild() 32 children.push_back(std::move(child)); in AddChild() 41 std::string indent(actualIndent, ' '); in Print() 43 if (std::holds_alternative<int32_t>(data)) { in Print() 44 std::cout << indent << "CallFrameId: " << std::get<int32_t>(data) << std::endl; in Print() 45 } else if (std::holds_alternative<std::map<int32_t, std::map<int32_t, std::string>>>(data)) { in Print() 46 const auto& outerMap = std::get<std::map<int32_t, std::map<int32_t, std::string>>>(data); in Print() [all …]
|
| /arkcompiler/runtime_core/bytecode_optimizer/ |
| D | bytecode_analysis_results.h | 30 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 …]
|