| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/testing/ |
| D | arktest.ets | 2 * Copyright (c) 2024-2025 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 26 function assertCommon(condition: boolean, message: string, description?: string): void { 48 export function assertTrue(condition: boolean, comment?: string): void { 58 export function assertFalse(condition: boolean, comment?: string): void { 69 export function assertEQ<T1, T2>(value1: T1, value2: T2, comment?: string): void { 75 * @param value1 first value for non-equality 76 * @param value2 second value for non-equality 77 * @param comment optional comment will be printed if non-equality failed 78 * @throws AssertionError if non-equality failed [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/ |
| D | simplify_string_builder.h | 2 * Copyright (c) 2023-2025 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 63 void InvalidateAnalyses() override; 68 void OptimizeStringBuilderToString(BasicBlock *block); 72 Inst *instance {nullptr}; // NOLINT(misc-non-private-member-variables-in-classes) 73 Inst *ctorCall {nullptr}; // NOLINT(misc-non-private-member-variables-in-classes) 74 Inst *toStringCall {nullptr}; // NOLINT(misc-non-private-member-variables-in-classes) 75 size_t appendCount {0}; // NOLINT(misc-non-private-member-variables-in-classes) 77 appendIntrinsics {}; // NOLINT(misc-non-private-member-variables-in-classes) 84 void FixBrokenSaveStates(Inst *source, Inst *target); [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/ |
| D | method_full.ets | 2 * Copyright (c) 2024-2025 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 17 foo(): void { 33 /* @@@ label Error TypeError: Function with a non void return type must return a value. */ 34 /* @@@ label1 Error TypeError: Function with a non void return type must return a value. */ 35 /* @@@ label2 Error TypeError: Function with a non void return type must return a value. */ 36 /* @@@ label3 Error TypeError: Function with a non void return type must return a value. */ 37 /* @@@ label4 Error TypeError: Function with a non void return type must return a value. */
|
| /arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/FixedArray/ |
| D | method_full.ets | 7 * http://www.apache.org/licenses/LICENSE-2.0 17 foo(): void { 33 /* @@@ label Error TypeError: Function with a non void return type must return a value. */ 34 /* @@@ label1 Error TypeError: Function with a non void return type must return a value. */ 35 /* @@@ label2 Error TypeError: Function with a non void return type must return a value. */ 36 /* @@@ label3 Error TypeError: Function with a non void return type must return a value. */ 37 /* @@@ label4 Error TypeError: Function with a non void return type must return a value. */
|
| /arkcompiler/runtime_core/libabckit/src/irbuilder_dynamic/ |
| D | ir_builder_dyn.h | 7 * http://www.apache.org/licenses/LICENSE-2.0 41 // NOLINTBEGIN(misc-non-private-member-variables-in-classes) 43 …ndaries boundaries {}; // NOLINT(misc-non-private-member-variables-in-class… 44 …piler::BasicBlock *beginBb {nullptr}; // NOLINT(misc-non-private-member-variables-in-class… 45 …piler::BasicBlock *endBb {nullptr}; // NOLINT(misc-non-private-member-variables-in-class… 46 …naVector<CatchCodeBlock> *catches {nullptr}; // NOLINT(misc-non-private-member-variables-in-class… 48 nullptr}; // NOLINT(misc-non-private-member-variables-in-classes) 49 uint32_t id {compiler::INVALID_ID}; // NOLINT(misc-non-private-member-variables-in-classes) 50 bool containsThrowableInst {false}; // NOLINT(misc-non-private-member-variables-in-classes) 52 void Init(compiler::Graph *graph, uint32_t tryId) in Init() [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/hotreload/ |
| D | hotreload.h | 2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 77 * 'cause its signature is language-dependent 83 …PANDA_PUBLIC_API const panda_file::File *ReadAndOwnPandaFileFromMemory(const void *buffer, size_t … 93 virtual void LangSpecificHotreloadPart() = 0; 104 void ReloadClassNormal(const ClassContainment *hCls); 105 void UpdateVtablesInRuntimeClasses(ClassLinker *classLinker); 106 void AddLoadedPandaFilesToRuntime(ClassLinker *classLinker); 107 void AddObsoleteClassesToRuntime(ClassLinker *classLinker); 111 panda_file::SourceLang lang_; // NOLINT(misc-non-private-member-variables-in-classes) [all …]
|
| /arkcompiler/runtime_core/compiler/optimizer/ir_builder/ |
| D | ir_builder.h | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 46 …ries boundaries {}; // NOLINT(misc-non-private-member-variables-in-class… 47 …lock *begin_bb {nullptr}; // NOLINT(misc-non-private-member-variables-in-class… 48 …lock *end_bb {nullptr}; // NOLINT(misc-non-private-member-variables-in-class… 49 …ector<CatchCodeBlock> *catches {nullptr}; // NOLINT(misc-non-private-member-variables-in-class… 50 …ector<BasicBlock *> *basic_blocks {nullptr}; // NOLINT(misc-non-private-member-variables-in-class… 51 …_t id {INVALID_ID}; // NOLINT(misc-non-private-member-variables-in-class… 52 …ontains_throwable_inst {false}; // NOLINT(misc-non-private-member-variables-in-class… 54 void Init(Graph *graph, uint32_t try_id) in Init() [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/regalloc/ |
| D | reg_alloc_linear_scan.h | 2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 47 : active(allocator->Adapter()), in WorkingIntervals() 48 inactive(allocator->Adapter()), in WorkingIntervals() 49 stack(allocator->Adapter()), in WorkingIntervals() 50 handled(allocator->Adapter()), in WorkingIntervals() 51 fixed(allocator->Adapter()) in WorkingIntervals() 55 void Clear() in Clear() 64 InstructionsIntervals active; // NOLINT(misc-non-private-member-variables-in-classes) 65 InstructionsIntervals inactive; // NOLINT(misc-non-private-member-variables-in-classes) [all …]
|
| /arkcompiler/ets_frontend/ets2panda/compiler/base/ |
| D | iterators.h | 2 * Copyright (c) 2021 - 2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 57 void GetMethod(util::StringView name) const; 58 void CallMethod() const; 59 void CallMethodWithValue() const; 61 void Next() const; 62 void Complete() const; 63 void Value() const; 64 void CloseInnerResultNormal(bool abruptCompletion, Label *returnExits) const; 65 void Close(bool abruptCompletion) const; [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/ir_builder/ |
| D | ir_builder.h | 2 * Copyright (c) 2021-2025 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 52 …aries boundaries {}; // NOLINT(misc-non-private-member-variables-in-class… 53 …Block *beginBb {nullptr}; // NOLINT(misc-non-private-member-variables-in-class… 54 …Block *endBb {nullptr}; // NOLINT(misc-non-private-member-variables-in-class… 55 …Vector<CatchCodeBlock> *catches {nullptr}; // NOLINT(misc-non-private-member-variables-in-class… 56 …Vector<BasicBlock *> *basicBlocks {nullptr}; // NOLINT(misc-non-private-member-variables-in-class… 57 …2_t id {INVALID_ID}; // NOLINT(misc-non-private-member-variables-in-class… 58 …containsThrowableInst {false}; // NOLINT(misc-non-private-member-variables-in-class… 59 …Set<BasicBlock *> *throwBlocks {nullptr}; // NOLINT(misc-non-private-member-variables-in-class… [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/tools/paoc/ |
| D | paoc.h | 2 * Copyright (c) 2021-2025 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 54 void DumpStatistics() const; 57 … Method *method {nullptr}; // NOLINT(misc-non-private-member-variables-in-classes) 58 … ark::ArenaAllocator allocator; // NOLINT(misc-non-private-member-variables-in-classes) 59 … ark::ArenaAllocator graphLocalAllocator; // NOLINT(misc-non-private-member-variables-in-classes) 60 … ark::compiler::Graph *graph {nullptr}; // NOLINT(misc-non-private-member-variables-in-classes) 61 … size_t index; // NOLINT(misc-non-private-member-variables-in-classes) 62 … std::ofstream *stats {nullptr}; // NOLINT(misc-non-private-member-variables-in-classes) 63 … bool compilationStatus {true}; // NOLINT(misc-non-private-member-variables-in-classes) [all …]
|
| /arkcompiler/runtime_core/static_core/abc2program/ |
| D | abc_file_entity_processor.h | 2 * Copyright (c) 2024-2025 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 31 …static void SetEntityAttribute(T &entity, const std::function<bool()> &shouldSet, std::string_view… in SetEntityAttribute() 35 auto err = entity.metadata->SetAttribute(attribute); in SetEntityAttribute() 43 …static void SetEntityAttributeValue(T &entity, const std::function<bool()> &shouldSet, std::string… in SetEntityAttributeValue() 48 auto err = entity.metadata->SetAttributeValue(attribute, value); in SetEntityAttributeValue() 54 … panda_file::File::EntityId entityId_; // NOLINT(misc-non-private-member-variables-in-classes) 55 … Abc2ProgramKeyData &keyData_; // NOLINT(misc-non-private-member-variables-in-classes) 56 … const panda_file::File *file_ = nullptr; // NOLINT(misc-non-private-member-variables-in-classes) 57 … AbcStringTable *stringTable_ = nullptr; // NOLINT(misc-non-private-member-variables-in-classes) [all …]
|
| /arkcompiler/toolchain/tooling/static/connection/ |
| D | server_endpoint_base.h | 2 * Copyright (c) 2022-2025 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 27 // NOLINTNEXTLINE(fuchsia-multiple-inheritance) 34 void OnValidate(std::function<void()> &&handler) override in OnValidate() 39 void OnOpen(std::function<void()> &&handler) override in OnOpen() 44 void OnFail(std::function<void()> &&handler) override in OnFail() 50 void Call(const std::string &sessionId, const char *method, 51 std::function<void(JsonObjectBuilder &)> &¶ms) override; 53 void OnCall(const char *method, Handler &&handler) override; 56 …std::function<void()> onValidate_ = []() {}; // NOLINT(misc-non-private-member-variables-in-class… [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/tooling/inspector/connection/ |
| D | server_endpoint_base.h | 2 * Copyright (c) 2022-2025 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 27 // NOLINTNEXTLINE(fuchsia-multiple-inheritance) 34 void OnValidate(std::function<void()> &&handler) override in OnValidate() 39 void OnOpen(std::function<void()> &&handler) override in OnOpen() 44 void OnFail(std::function<void()> &&handler) override in OnFail() 50 void Call(const std::string &sessionId, const char *method, 51 std::function<void(JsonObjectBuilder &)> &¶ms) override; 53 void OnCall(const char *method, Handler &&handler) override; 56 …std::function<void()> onValidate_ = []() {}; // NOLINT(misc-non-private-member-variables-in-class… [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/ |
| D | ets_arraybuffer.h | 2 * Copyright (c) 2023-2025 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 57 * Creates a byte array in non-movable space. 59 * NOTE: non-movable creation ensures that native code can obtain raw pointer to buffer. 63 … return EtsByteArray::Create(length, SpaceType::SPACE_TYPE_NON_MOVABLE_OBJECT)->GetCoreType(); in AllocateNonMovableArray() 68 return reinterpret_cast<EtsLong>(array->GetData<void>()); in GetAddress() 72 static EtsEscompatArrayBuffer *Create(EtsCoroutine *coro, size_t length, void **resultData) in Create() 75 ASSERT(!coro->HasPendingException()); in Create() 78 auto *cls = PlatformTypes(coro)->escompatArrayBuffer; in Create() 81 ASSERT(coro->HasPendingException()); in Create() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/util/ |
| D | importPathManager.h | 2 * Copyright (c) 2024-2025 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 63 // NOLINTBEGIN(misc-non-private-member-variables-in-classes) 70 // NOLINTEND(misc-non-private-member-variables-in-classes) 75 static constexpr auto DUMMY_PATH = "dummy_path"; // CC-OFF(G.NAM.03-CPP) project code style 77 // NOLINTBEGIN(misc-non-private-member-variables-in-classes) 83 // NOLINTEND(misc-non-private-member-variables-in-classes) 99 // NOLINTBEGIN(misc-non-private-member-variables-in-classes) 102 // NOLINTEND(misc-non-private-member-variables-in-classes) 112 parseList_(allocator->Adapter()), [all …]
|
| /arkcompiler/runtime_core/static_core/libziparchive/extractortool/ |
| D | zip_file_reader.h | 7 * http://www.apache.org/licenses/LICENSE-2.0 24 class ZipFileReader { // NOLINT(cppcoreguidelines-special-member-functions) 29 // NOLINTNEXTLINE(modernize-pass-by-value) 32 void operator=(ZipFileReader &) = delete; 45 void SetClosable(bool closable) in SetClosable() 54 std::string filePath_; // NOLINT(misc-non-private-member-variables-in-classes) 55 size_t fileLen_ = 0; // NOLINT(misc-non-private-member-variables-in-classes) 58 int fd_ = -1; // NOLINT(misc-non-private-member-variables-in-classes) 60 bool closable_ = true; // NOLINT(misc-non-private-member-variables-in-classes)
|
| /arkcompiler/runtime_core/static_core/verification/config/context/ |
| D | context.h | 2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 39 // NOLINTBEGIN(misc-non-private-member-variables-in-classes) 46 void AddBreakpointConfig(const PandaString &methodName, Offset offset); 48 …void AddBreakpointConfig([[maybe_unused]] const PandaString &methodName, [[maybe_unused]] Offset o… in AddBreakpointConfig() 53 // NOLINTEND(misc-non-private-member-variables-in-classes) 55 void AddWhitelistMethodConfig(WhitelistKind kind, const PandaString &name); 59 // NOLINTBEGIN(misc-non-private-member-variables-in-classes) 73 // NOLINTEND(misc-non-private-member-variables-in-classes) 76 void SetConfig(DebugConfig const *cfg) in SetConfig() [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/coroutines/ |
| D | coroutine.h | 2 * Copyright (c) 2023-2025 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 32 extern "C" void VisitCoroutine(void *coroutine, CommonRootVisitor visitor); 52 * +---------+ +----------+ 53 * | CREATED | ---------------------------------> | | <-------------+ 54 * +---------+ | RUNNABLE | | 55 * +--- | | <--+ | 56 * | +----------+ | | 58 * | +----------+ | +----------+ 59 * +--> | | ---+ | | [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/09.classes/06.method_declarations/01.static_methods/ |
| D | non_static_method_declaration.ets | 1 /*--- 2 Copyright (c) 2021-2025 Huawei Device Co., Ltd. 7 http://www.apache.org/licenses/LICENSE-2.0 14 ---*/ 16 /*--- 17 desc: Non-static method declaration. 18 assert: A method that is not declared static called an instance method, and sometimes called a non-… 19 tags: [compile-only] 20 ---*/ 23 run(): void { [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/main/ |
| D | type_literals.ets | 7 * http://www.apache.org/licenses/LICENSE-2.0 89 n(p: number): void; 105 n(p: number): void; 115 export function captureFromLocalScope<T>(t: T): {ret: T} { // Non-fixable, type captures type param… 116 let v1: {local: T}; // Non-fixable, type captures type parameter from enclosing declaration 119 …let v2: { x: LocalType } = {x: {a: 1, b: '2'}}; // Non-fixable, type captures another type declare… 121 …type LocalType2<K> = ({k: K}); // Non-fixable, type captures type parameter from enclosing declara… 124 let v3: {[one]: 1}; // Non-fixable, type captures another object declared in local scope 127 …let v4: { y: LocalClass } = {y: new LocalClass()}; // Non-fixable, type captures another type decl… 129 …let v5: { lc: typeof LocalClass }; // Non-fixable, type captures another type declared in local sc… [all …]
|
| D | type_literals.ets.migrate.ets | 7 * http://www.apache.org/licenses/LICENSE-2.0 168 n(p: number): void; 182 n(p: number): void; 192 export function captureFromLocalScope<T>(t: T): {ret: T} { // Non-fixable, type captures type param… 193 let v1: {local: T}; // Non-fixable, type captures type parameter from enclosing declaration 199 …let v2: { x: LocalType } = {x: {a: 1, b: '2'}}; // Non-fixable, type captures another type declare… 201 …type LocalType2<K> = ({k: K}); // Non-fixable, type captures type parameter from enclosing declara… 204 let v3: {[one]: 1}; // Non-fixable, type captures another object declared in local scope 207 …let v4: { y: LocalClass } = {y: new LocalClass()}; // Non-fixable, type captures another type decl… 209 …let v5: { lc: typeof LocalClass }; // Non-fixable, type captures another type declared in local sc… [all …]
|
| /arkcompiler/toolchain/websocket/server/ |
| D | websocket_server.h | 7 * http://www.apache.org/licenses/LICENSE-2.0 28 using OpenConnectionCallback = std::function<void()>; 34 * @brief Accept new posix-socket connection. 41 * @brief Initialize server posix-socket. 42 * Non thread safe. 52 * @brief Initialize server unix-socket. 53 * Non thread safe. 62 * @brief Initialize connection with unix-socket. 63 * Non thread safe. 73 * @brief Accept new unix-socket connection. [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/tooling/sampler/ |
| D | samples_record.h | 7 * http://www.apache.org/licenses/LICENSE-2.0 31 int lineNumber = -1; 32 int columnNumber = -1; 67 // NOLINTBEGIN(misc-non-private-member-variables-in-classes,-warnings-as-errors) 69 int lineNumber = -1; 70 // NOLINTEND(misc-non-private-member-variables-in-classes,-warnings-as-errors) 78 // NOLINTBEGIN(misc-non-private-member-variables-in-classes,-warnings-as-errors) 81 // NOLINTEND(misc-non-private-member-variables-in-classes,-warnings-as-errors) 92 void SetThreadStartTime(uint64_t threadStartTime) in SetThreadStartTime() 96 void AddSampleInfo(uint32_t threadId, std::unique_ptr<SampleInfo> sampleInfo) in AddSampleInfo() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/18.generics_experimental/ |
| D | generics_nonull_return7.ets | 7 * http://www.apache.org/licenses/LICENSE-2.0 16 /*--- 17 desc: Non-nullable return value of generics. it is not mandatory to return a non-empty value. 18 tags: [compile-only, negative] 19 ---*/ 27 function main(): void { 29 let result = a.foo(void);
|