| /arkcompiler/ets_runtime/test/sharedtest/sendable/ |
| D | sendable.ts | 7 * http://www.apache.org/licenses/LICENSE-2.0 45 print('sendable inherit from non-sendable failed. err: ' + err + ', code: ' + err.code); 66 // 2. non-sendable can not inherit from sendable 76 print('non-sendable inherit from non-sendable succeed.'); 78 print('non-sendable inherit from non-sendable failed. err: ' + err + ', code: ' + err.code); 91 print('non-sendable inherit from sendable succeed.'); 93 print('non-sendable inherit from sendable failed. err: ' + err + ', code: ' + err.code); 96 // 3. non-sendable can not implement sendable 129 print('sendable contain non-sendable succeed.'); 131 print('sendable contain non-sendable failed. err: ' + err + ', code: ' + err.code); [all …]
|
| D | expect_output.txt | 6 # http://www.apache.org/licenses/LICENSE-2.0 15 sendable inherit from non-sendable failed. err: TypeError: Class not derived from a sendable object… 17 non-sendable inherit from non-sendable succeed. 18 non-sendable inherit from sendable failed. err: TypeError: The subclass of sendable class must be a… 20 sendable contain non-sendable failed. err: TypeError: Cannot set sendable property with mismatched … 21 sendable contain static non-sendable failed. err: TypeError: Cannot set sendable property with mism…
|
| /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 declaration. 18 assert: A method that is not declared static called an instance method, and sometimes called a non-… 19 tags: [compile-only] 20 ---*/ 27 static foo(): void {
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/09.classes/05.field_declarations/03.field_initialization/ |
| D | non_static_field_initialization_reference.sts | 1 /*--- 2 Copyright (c) 2021-2024 Huawei Device Co., Ltd. 7 http://www.apache.org/licenses/LICENSE-2.0 14 ---*/ 16 /*--- 17 desc: Static field 'f' have reference in static variable. 18 …non-static field f declared in class or interface C, it is a compile-time error if. The reference … 19 tags: [compile-only, negative] 20 ---*/
|
| D | non_static_field_self_initialization_reference.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 field 'f' have reference in static. 18 assert: For a reference to a non-static field f declared in class or interface C, it is a compile-t… 19 tags: [compile-only, negative] 20 ---*/
|
| D | non_static_field_initialization.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 field initialization. 18 assert: If there is an initializer in a non-static field declaration, then the initializer has the … 19 ---*/
|
| D | field_initialization_with_super.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 field initialization with keyword 'super'. 18 assert: It there is an initializer in a non-static field declaration, then the following rules appl… 19 ---*/
|
| D | field_initialization_with_this.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 field initialization with keyword 'this'. 18 assert: It there is an initializer in a non-static field declaration, then the following rules appl… 19 ---*/
|
| /arkcompiler/runtime_core/static_core/tests/verifier-tests/ |
| D | access_field_nomodifier_core.pa | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 14 # access to non-public field of a foreign class: 15 # - it must fail in Java if the class is nor inherited by current class, nor stays in the same pack… 16 # - in non-Java language context it is OK 21 # public static int test() { 29 # static int value; 42 i32 value <static> 46 pckg.Test2 obj <static> 52 ldstatic pckg.Test2.value # access to non-public field of a foreign class
|
| /arkcompiler/runtime_core/tests/verifier-tests/ |
| D | access_field_nomodifier_core.pa | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 14 # access to non-public field of a foreign class: 15 # - it must fail in Java if the class is nor inherited by current class, nor stays in the same pack… 16 # - in non-Java language context it is OK 21 # public static int test() { 29 # static int value; 42 i32 value <static> 46 pckg.Test2 obj <static> 52 ldstatic pckg.Test2.value # access to non-public field of a foreign class
|
| /arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/ |
| D | 9_classes.rst | 2 Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 http://www.apache.org/licenses/LICENSE-2.0 24 Classes can be *top-level* and local (see :ref:`Local Classes and Interfaces`). 36 - Fields, 37 - Methods, and 38 - Accessors. 61 - ``Public``, 62 - ``Protected``, 63 - ``Internal``, or 64 - ``Private``. [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/09.classes/01.class_declaration/class_modifiers_inner_classes_and_static_classes/ |
| D | static_inner_class_with_non_static_member.sts | 2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 16 /*--- 17 desc: Declaring static inner class with non-static member. 18 assert: A compile-time error occurs if a non-static member of an enclosing class is used within a s… 19 tags: [compile-only, negative] 20 ---*/
|
| /arkcompiler/runtime_core/static_core/abc2program/ |
| D | abc_file_entity_processor.h | 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) 58 … pandasm::Program *program_ = nullptr; // NOLINT(misc-non-private-member-variables-in-classes)
|
| /arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/ |
| D | method_full.sts | 7 * http://www.apache.org/licenses/LICENSE-2.0 27 protected static foo_final(i : int): boolean { 33 /* @@? 19:12 Error TypeError: Function with a non void return type must return a value. */ 34 /* @@? 21:13 Error TypeError: Function with a non void return type must return a value. */ 35 /* @@? 23:30 Error TypeError: Function with a non void return type must return a value. */ 36 /* @@? 25:27 Error TypeError: Function with a non void return type must return a value. */ 37 /* @@? 27:31 Error TypeError: Function with a non void return type must return a value. */
|
| /arkcompiler/ets_frontend/ets2panda/test/test-lists/ets-runtime/ |
| D | ets-runtime-ignored.txt | 30 trailing-lambda-with-capture.sts 32 # ignored until union types are properly implemented and non nullish base type of array types can b… 35 # ignored until verifier can't handle if a field name can be static and non-static at the same time 36 class-fields-same-name.sts 39 struct-identifier.sts 40 struct-init.sts 41 struct-init2.sts 57 increment-on-nullish-type.sts
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/ |
| D | countable_loop_parser.h | 2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 25 * --------------- 50 static bool HasPreHeaderCompare(Loop *loop, const CountableLoopInfo &loopInfo); 51 static std::optional<uint64_t> GetLoopIterations(const CountableLoopInfo &loopInfo); 64 const Loop &loop_; // NOLINT(misc-non-private-member-variables-in-classes) 65 CountableLoopInfo loopInfo_ {}; // NOLINT(misc-non-private-member-variables-in-classes) 66 bool isHeadLoopExit_ = false; // NOLINT(misc-non-private-member-variables-in-classes)
|
| /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 ---*/
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_date_time_format.h | 2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 71 std::string property; // NOLINT(misc-non-private-member-variables-in-classes) 72 std::vector<IcuPatternEntry> pairs; // NOLINT(misc-non-private-member-variables-in-classes) 73 …ap<const std::string, const std::string> map; // NOLINT(misc-non-private-member-variables-in-class… 74 std::vector<std::string> allowedValues; // NOLINT(misc-non-private-member-variables-in-classes) 77 // NOLINT(performance-noexcept-move-constructor, hicpp-noexcept-move) 84 … IcuPatternDesc("hour", {{data1, "2-digit"}, {data2, "numeric"}}, {"2-digit", "numeric"}))) {} in Pattern() 101 static constexpr size_t LOCALE_OFFSET = JSObject::SIZE; 114 static constexpr size_t HONOR_CYCLE_BITS = 3; [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/testing/ |
| D | arktest.sts | 7 * http://www.apache.org/licenses/LICENSE-2.0 72 * @param value1 first value for non-equality 73 * @param value2 second value for non-equality 74 * @param comment optional comment will be printed if non-equality failed 75 * @throws AssertionError if non-equality failed 78 …assertCommon(value1 != value2, "expected non-equality failed: " + value1 + " != " + value2, commen… 90 let difference = Math.abs(value1 - value2); 98 * @param value1 first value for non-equality 99 * @param value2 second value for non-equality 100 * @param comment optional comment will be printed if non-equality failed [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/tests/tooling/ |
| D | test_extractor.h | 2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 26 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-member-init) 28 PandaString path; // NOLINT(misc-non-private-member-variables-in-classes) 29 size_t line; // NOLINT(misc-non-private-member-variables-in-classes) 59 …static std::optional<size_t> GetLineNumberByTableOffset(const panda_file::LineNumberTable &table, … 60 …static std::optional<uint32_t> GetOffsetByTableLineNumber(const panda_file::LineNumberTable &table… 66 // NOLINTNEXTLINE(misc-non-private-member-variables-in-classes)
|
| /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 17 i32 field0 <static> 18 i32 field1 <static> 26 .function void R.bar() <static> { 33 #! CHECKER Option compiler-force-unresolved is off 34 #! RUN_PAOC options: "--compiler-inlining=false --compiler-non-optimizing=true" 55 #! CHECKER Option compiler-force-unresolved is on 56 #! RUN_PAOC options: "--compiler-force-unresolved=true --compiler-inlining=false --compiler-non-o… 80 .function i32 main() <static> {
|
| /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 43 * +---------+ +----------+ 44 * | CREATED | -------------------------------> | | <-------------+ 45 * +---------+ | RUNNABLE | | 46 * +--- | | <--+ | 47 * | +----------+ | | 49 * | +----------+ | +----------+ 50 * +--> | | ---+ | | 51 * +------------+ +-------------+ | RUNNING | | BLOCKED | [all …]
|
| /arkcompiler/runtime_core/static_core/libpandabase/os/ |
| D | stacktrace.cpp | 2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 34 // NOLINTNEXTLINE(modernize-pass-by-value) 42 uintptr_t startAddr; // NOLINT(misc-non-private-member-variables-in-classes) 43 uintptr_t endAddr; // NOLINT(misc-non-private-member-variables-in-classes) 44 uintptr_t offset; // NOLINT(misc-non-private-member-variables-in-classes) 45 std::string filename; // NOLINT(misc-non-private-member-variables-in-classes) 46 DebugInfoStatus status {NOT_READ}; // NOLINT(misc-non-private-member-variables-in-classes) 47 DebugInfo debugInfo; // NOLINT(misc-non-private-member-variables-in-classes) 55 // NOLINTNEXTLINE(modernize-pass-by-value) [all …]
|
| /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 152 static constexpr uint8_t DEFAULT_PERCENTAGE_THRESHOLD = 20; 156 static constexpr size_t MIN_HEAP_SIZE_FOR_TRIGGER = 512; 157 static constexpr size_t DEFAULT_MIN_TARGET_FOOTPRINT = 256; 158 static constexpr size_t DEFAULT_MIN_EXTRA_HEAP_SIZE = 32; // For heap-trigger-test 159 static constexpr size_t DEFAULT_MAX_EXTRA_HEAP_SIZE = 512_KB; // For heap-trigger-test [all …]
|
| /arkcompiler/runtime_core/libpandabase/os/ |
| D | stacktrace.cpp | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 34 // NOLINTNEXTLINE(modernize-pass-by-value) 42 uintptr_t start_addr; // NOLINT(misc-non-private-member-variables-in-classes) 43 uintptr_t end_addr; // NOLINT(misc-non-private-member-variables-in-classes) 44 uintptr_t offset; // NOLINT(misc-non-private-member-variables-in-classes) 45 std::string filename; // NOLINT(misc-non-private-member-variables-in-classes) 46 DebugInfoStatus status {NOT_READ}; // NOLINT(misc-non-private-member-variables-in-classes) 47 DebugInfo debug_info; // NOLINT(misc-non-private-member-variables-in-classes) 55 // NOLINTNEXTLINE(modernize-pass-by-value) [all …]
|