| /arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/ |
| D | simplify_string_builder.h | 2 * Copyright (c) 2023-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 59 void InvalidateAnalyses() override; 64 void OptimizeStringBuilderToString(BasicBlock *block); 68 Inst *instance {nullptr}; // NOLINT(misc-non-private-member-variables-in-classes) 69 Inst *ctorCall {nullptr}; // NOLINT(misc-non-private-member-variables-in-classes) 70 Inst *toStringCall {nullptr}; // NOLINT(misc-non-private-member-variables-in-classes) 71 size_t appendCount {0}; // NOLINT(misc-non-private-member-variables-in-classes) 73 appendIntrinsics {}; // NOLINT(misc-non-private-member-variables-in-classes) 81 void FixBrokenSaveStates(Inst *source, Inst *target); [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/runtime_core/static_core/compiler/optimizer/ir_builder/ |
| D | ir_builder.h | 2 * Copyright (c) 2021-2024 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-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 53 void DumpStatistics() const; 56 … Method *method {nullptr}; // NOLINT(misc-non-private-member-variables-in-classes) 57 … ark::ArenaAllocator allocator; // NOLINT(misc-non-private-member-variables-in-classes) 58 … ark::ArenaAllocator graphLocalAllocator; // NOLINT(misc-non-private-member-variables-in-classes) 59 … ark::compiler::Graph *graph {nullptr}; // NOLINT(misc-non-private-member-variables-in-classes) 60 … size_t index; // NOLINT(misc-non-private-member-variables-in-classes) 61 … std::ofstream *stats {nullptr}; // NOLINT(misc-non-private-member-variables-in-classes) 62 … bool compilationStatus {true}; // 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/ets_frontend/ets2panda/lexer/regexp/ |
| D | regexp.h | 2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 42 // NOLINTBEGIN(misc-non-private-member-variables-in-classes) 44 // NOLINTEND(misc-non-private-member-variables-in-classes) 50 // NOLINTBEGIN(misc-non-private-member-variables-in-classes) 54 // NOLINTEND(misc-non-private-member-variables-in-classes) 60 void ParsePattern(); 63 void ParseDisjunction(); 64 void ParseAlternatives(); 65 void ParseAlternative(); [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/tooling/inspector/connection/ |
| D | server_endpoint_base.h | 2 * Copyright (c) 2022-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 27 // NOLINTNEXTLINE(fuchsia-multiple-inheritance) 30 void OnValidate(std::function<void()> &&handler) override in OnValidate() 35 void OnOpen(std::function<void()> &&handler) override in OnOpen() 40 void OnFail(std::function<void()> &&handler) override in OnFail() 46 void Call(const std::string &sessionId, const char *method, 47 std::function<void(JsonObjectBuilder &)> &¶ms) override; 49 void OnCall(const char *method, 50 …std::function<void(const std::string &sessionId, JsonObjectBuilder &result, const JsonObject ¶… [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/coroutines/ |
| D | coroutine.h | 2 * Copyright (c) 2023-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 44 * +---------+ +----------+ 45 * | CREATED | -------------------------------> | | <-------------+ 46 * +---------+ | RUNNABLE | | 47 * +--- | | <--+ | 48 * | +----------+ | | 50 * | +----------+ | +----------+ 51 * +--> | | ---+ | | 52 * +------------+ +-------------+ | RUNNING | | BLOCKED | [all …]
|
| /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/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/ets_frontend/ets2panda/linter/test/ |
| D | type_literals.sts | 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 …]
|
| /arkcompiler/ets_frontend/ets2panda/lexer/token/ |
| D | sourceLocation.h | 2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 35 // NOLINTBEGIN(misc-non-private-member-variables-in-classes) 38 // NOLINTEND(misc-non-private-member-variables-in-classes) 49 // NOLINTBEGIN(misc-non-private-member-variables-in-classes) 52 // NOLINTEND(misc-non-private-member-variables-in-classes) 63 // NOLINTBEGIN(misc-non-private-member-variables-in-classes) 66 // NOLINTEND(misc-non-private-member-variables-in-classes) 77 // NOLINTBEGIN(misc-non-private-member-variables-in-classes) 80 // NOLINTEND(misc-non-private-member-variables-in-classes) [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/09.classes/06.method_declarations/01.static_methods/ |
| D | non_static_method_declaration.sts | 1 /*--- 2 Copyright (c) 2021-2024 Huawei Device Co., Ltd. 7 http://www.apache.org/licenses/LICENSE-2.0 14 ---*/ 16 /*--- 17 desc: Non-static method declaraion. 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/runtime_core/static_core/plugins/ets/tests/ets-templates/09.classes/01.class_declaration/01.abstract_classes/ |
| D | abstract_subclass_1.sts | 1 /*--- 7 http://www.apache.org/licenses/LICENSE-2.0 14 ---*/ 16 /*--- 17 desc: >- 18 Subclasses of an abstract class can be non-abstract or in turn abstract. 19 A non-abstract subclass of an abstract superclass can be instantiated. 21 for non-static fields of that class are executed. 22 ---*/ 38 function main(): void {
|
| /arkcompiler/ets_runtime/ecmascript/serializer/ |
| D | base_deserializer.h | 7 * http://www.apache.org/licenses/LICENSE-2.0 26 void *bufferPointer_ {nullptr}; 27 void *hint_ = {nullptr}; 28 void *attachData_ = {nullptr}; 33 NativeBindingInfo(AttachFunc af, void *bufferPointer, void *hint, void *attachData, in NativeBindingInfo() 81 explicit BaseDeserializer(JSThread *thread, SerializeData *data, void *hint = nullptr); 97 void DeserializeNativeBindingObject(NativeBindingInfo *info); 98 void DeserializeJSError(JSErrorInfo *info); 101 void DeserializeObjectField(uintptr_t start, uintptr_t end); 103 …void HandleNewObjectEncodeFlag(SerializedObjectSpace space, uintptr_t objAddr, size_t fieldOffset,… [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | array-object.sts | 2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 16 function main(): void { 22 // TypeError: Cannot access property of non-object or non-enum type 29 // TypeError: Cannot access property of non-object or non-enum type
|
| /arkcompiler/runtime_core/static_core/runtime/mem/gc/ |
| D | gc_trigger.h | 2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 41 NO_GC_FOR_START_UP, // A non-production strategy, TRIGGER GC after the app starts up 44 …DEBUG_NEVER, // Trigger for testing which never triggers (young-gc can still trigger)… 45 ON_NTH_ALLOC, // Triggers GC on n-th allocation 124 virtual void TriggerGcIfNeeded(GC *gc) = 0; 126 virtual void SetMinTargetFootprint([[maybe_unused]] size_t heapSize) {} in SetMinTargetFootprint() 127 virtual void RestoreMinTargetFootprint() {} in RestoreMinTargetFootprint() 145 void TriggerGcIfNeeded(GC *gc) override; 146 void GCStarted(const GCTask &task, size_t heapSize) override; [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/ |
| D | string_table.h | 2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 52 using StringVisitor = std::function<void(ObjectHeader *)>; 54 …void VisitRoots(const StringVisitor &visitor, mem::VisitGCRootFlags flags = mem::VisitGCRootFlags:… 59 void VisitStrings(const StringVisitor &visitor) in VisitStrings() 64 virtual void Sweep(const GCObjectVisitor &gcObjectVisitor); 73 explicit Table(mem::InternalAllocatorPtr allocator) : table_(allocator->Adapter()) {} in Table() 77 void PreBarrierOnGet(coretypes::String *str); 84 virtual void Sweep(const GCObjectVisitor &gcObjectVisitor); 88 void VisitStrings(const StringVisitor &visitor); [all …]
|
| /arkcompiler/runtime_core/compiler/optimizer/optimizations/regalloc/ |
| D | reg_alloc_graph_coloring.h | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 33 : regular(allocator->Adapter()), physical(allocator->Adapter()) in WorkingRanges() 37 InstructionsRanges regular; // NOLINT(misc-non-private-member-variables-in-classes) 38 InstructionsRanges physical; // NOLINT(misc-non-private-member-variables-in-classes) 62 void InitWorkingRanges(WorkingRanges *general_ranges, WorkingRanges *fp_ranges); 63 void BuildIG(InterferenceGraph *ig, WorkingRanges *ranges); 65 void BuildBias(InterferenceGraph *ig, const IndexVector &affinity_nodes); 66 void AddAffinityEdges(InterferenceGraph *ig, ColorNode *node, IndexVector *affinity_nodes); 67 …void AddAffinityEdgeToSibling(InterferenceGraph *ig, ColorNode *node, IndexVector *affinity_nodes); [all …]
|
| /arkcompiler/ets_frontend/ets2panda/compiler/function/ |
| D | functionBuilder.h | 2 * Copyright (c) 2021 - 2023 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 51 virtual void Prepare([[maybe_unused]] const ir::ScriptFunction *node) const {}; in Prepare() 52 virtual void CleanUp([[maybe_unused]] const ir::ScriptFunction *node) const {}; in CleanUp() 54 virtual void DirectReturn(const ir::AstNode *node) const; 55 virtual void ImplicitReturn(const ir::AstNode *node) const; 57 virtual void Await(const ir::AstNode *node); 58 virtual void YieldStar(const ir::AstNode *node); 60 virtual void Yield([[maybe_unused]] const ir::AstNode *node) in Yield() 73 …void SuspendResumeExecution(const ir::AstNode *node, VReg completionType, VReg completionValue) co… [all …]
|
| /arkcompiler/ets_frontend/ets2panda/compiler/core/ |
| D | regScope.h | 2 * Copyright (c) 2021 - 2023 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 38 void *operator new(size_t) = delete; 39 void *operator new[](size_t) = delete; 42 void DebuggerCloseScope(); 44 // NOLINTBEGIN(misc-non-private-member-variables-in-classes) 47 // NOLINTEND(misc-non-private-member-variables-in-classes) 59 void *operator new(size_t) = delete; 60 void *operator new[](size_t) = delete; 73 void *operator new(size_t) = delete; [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/tests/ |
| D | pygote_space_allocator_test_base.h | 2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 23 #include "runtime/mem/runslots_allocator-inl.h" 24 #include "runtime/mem/pygote_space_allocator-inl.h" 43 return thread_->GetVM()->GetGC()->GetObjectAllocator()->GetPygoteSpaceAllocator(); in GetPygoteSpaceAllocator() 49 LanguageContext ctx = runtime->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY); in GetObjectClass() 50 return runtime->GetClassLinker()->GetExtension(ctx)->GetClassRoot(ClassRoot::OBJECT); in GetObjectClass() 53 void PygoteFork() in PygoteFork() 55 thread_->ManagedCodeEnd(); in PygoteFork() 57 runtime->PreZygoteFork(); in PygoteFork() [all …]
|
| /arkcompiler/runtime_core/static_core/tests/checked/ |
| D | force_unresolved_option.pa | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 23 .function void R.foo(R a0) { 24 return.void 26 .function void R.bar() <static> { 27 return.void 29 .function void R.ctr(R a0) <ctor> { 30 return.void 33 #! CHECKER Option compiler-force-unresolved is off 34 #! RUN_PAOC options: "--compiler-inlining=false --compiler-non-optimizing=true" [all …]
|