| /arkcompiler/runtime_core/runtime/include/ |
| D | thread.h | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 33 #include "runtime/include/object_header-inl.h" 39 #include "runtime/mem/frame_allocator-inl.h" 106 static constexpr uint32_t GetMonitorOffset() in GetMonitorOffset() 111 static constexpr uint32_t GetStackOffset() in GetStackOffset() 123 static constexpr uint32_t DEFAULT_CAPACITY = 16; 149 // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic) in emplace_back() 159 // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic) in back() 160 return storage_[size_ - 1]; in back() [all …]
|
| D | locks.h | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 47 static void Initialize(); 50 …* Lock used for preventing object heap modifications (for example at GC<->JIT,ManagedCode interact… 52 static MutatorLock *mutator_lock; // NOLINT(misc-non-private-member-variables-in-classes) 56 …static os::memory::Mutex *custom_tls_lock; // NOLINT(misc-non-private-member-variables-in-classes) 60 * It is static for access from JVMTI interface 62 static os::memory::Mutex *user_suspension_lock;
|
| /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/runtime/mem/gc/ |
| D | gc_trigger.h | 2 * Copyright (c) 2021-2022 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),… 119 HeapSpace *heap_space_ {nullptr}; // NOLINT(misc-non-private-member-variables-in-classes) 142 static constexpr uint8_t DEFAULT_PERCENTAGE_THRESHOLD = 20; 146 static constexpr size_t MIN_HEAP_SIZE_FOR_TRIGGER = 512; 147 static constexpr size_t DEFAULT_MIN_TARGET_FOOTPRINT = 256; 148 static constexpr size_t DEFAULT_MIN_EXTRA_HEAP_SIZE = 32; // For heap-trigger-test 149 static constexpr size_t DEFAULT_MAX_EXTRA_HEAP_SIZE = 512_KB; // For heap-trigger-test [all …]
|
| /arkcompiler/runtime_core/runtime/arch/ |
| D | helpers.h | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 33 static constexpr size_t NUM_GP_ARG_REGS = 4; 34 …static constexpr size_t GP_ARG_NUM_BYTES = NUM_GP_ARG_REGS * ArchTraits<Arch::AARCH32>::POINTER_SI… 35 static constexpr size_t NUM_FP_ARG_REGS = 0; 36 …static constexpr size_t FP_ARG_NUM_BYTES = NUM_FP_ARG_REGS * ArchTraits<Arch::AARCH32>::POINTER_SI… 37 static constexpr size_t GPR_SIZE = ArchTraits<Arch::AARCH32>::POINTER_SIZE; 38 static constexpr size_t FPR_SIZE = 0; 39 static constexpr bool HARDFP = false; 47 static constexpr size_t NUM_GP_ARG_REGS = 4; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_date_time_format.h | 7 * http://www.apache.org/licenses/LICENSE-2.0 62 std::string property; // NOLINT(misc-non-private-member-variables-in-classes) 63 std::vector<IcuPatternEntry> pairs; // NOLINT(misc-non-private-member-variables-in-classes) 64 …ap<const std::string, const std::string> map; // NOLINT(misc-non-private-member-variables-in-class… 65 std::vector<std::string> allowedValues; // NOLINT(misc-non-private-member-variables-in-classes) 68 // NOLINT(performance-noexcept-move-constructor, hicpp-noexcept-move) 75 … IcuPatternDesc("hour", {{data1, "2-digit"}, {data2, "numeric"}}, {"2-digit", "numeric"}))) {} in Pattern() 92 static constexpr size_t LOCALE_OFFSET = JSObject::SIZE; 105 static constexpr size_t HONOR_CYCLE_BITS = 3; 106 static constexpr size_t DATE_STYLE_BITS = 3; [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 …]
|
| D | thread.h | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 66 SharedPtrToSharedPtrStruct<T> this_ptr; // NOLINT(misc-non-private-member-variables-in-classes) 67 T data; // NOLINT(misc-non-private-member-variables-in-classes) 79 struct GenArgSeq : GenArgSeq<N - 1, N - 1, Is...> { 87 static void CallFunc(Func &func, Tuple &args, Seq<I...> /* unused */) 93 static void CallFunc(Func &func, Tuple &args) 99 static void *ProxyFunc(void *args) 108 local.swap(args_ptr->this_ptr); 110 args_tuple = args_ptr->data; [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/ |
| D | test262skiplist.txt | 2 annexB/built-ins/RegExp/RegExp-decimal-escape-class-range.js 3 annexB/built-ins/RegExp/incomplete_hex_unicode_escape.js 4 annexB/language/comments/multi-line-html-close.js 5 annexB/language/comments/single-line-html-close-asi.js 6 annexB/language/comments/single-line-html-close-unicode-separators.js 7 annexB/language/comments/single-line-html-close.js 8 annexB/language/comments/single-line-html-open.js 9 annexB/language/literals/regexp/class-escape.js 10 built-ins/Atomics/add/bigint/bad-range.js 11 built-ins/Atomics/add/bigint/good-views.js [all …]
|
| /arkcompiler/runtime_core/runtime/tests/tooling/ |
| D | test_extractor.h | 2 * Copyright (c) 2021-2022 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) 58 …static std::optional<size_t> GetLineNumberByTableOffset(const panda_file::LineNumberTable &table, … 59 …static std::optional<uint32_t> GetOffsetByTableLineNumber(const panda_file::LineNumberTable &table…
|
| /arkcompiler/runtime_core/compiler/optimizer/code_generator/ |
| D | callconv.h | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 19 Codegen Hi-Level calling-convention interface 23 Branches and jump-encoding 40 // Get next native parameter, on condition, what previous list - in vector 58 uint32_t current_scalar_number_ {0}; // NOLINT(misc-non-private-member-variables-in-classes) 59 uint32_t current_vector_number_ {0}; // NOLINT(misc-non-private-member-variables-in-classes) 60 uint8_t current_stack_offset_ {0}; // NOLINT(misc-non-private-member-variables-in-classes) 78 // NOLINTNEXTLINE(cppcoreguidelines-macro-usage) 80 // NOLINTNEXTLINE(cppcoreguidelines-macro-usage) [all …]
|
| /arkcompiler/runtime_core/tests/cts-generator/cts-template/ |
| D | ldstatic.yaml | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 15 - name: pandasm_header 22 u1 fu1 <static> 23 u8 fu8 <static> 24 i8 fi8 <static> 25 u16 fu16 <static> 26 i16 fi16 <static> 27 u32 fu32 <static> 28 i32 fi32 <static> [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/parser/ts/ |
| D | test_this_type1-expected.txt | 1 SyntaxError: A 'this' type is available only in a non-static member of a class or interface. [test_…
|
| D | test_this_type2-expected.txt | 1 SyntaxError: A 'this' type is available only in a non-static member of a class or interface. [test_…
|
| /arkcompiler/ets_runtime/ecmascript/js_api/ |
| D | js_api_tree_set.h | 7 * http://www.apache.org/licenses/LICENSE-2.0 20 #include "ecmascript/js_tagged_value-inl.h" 24 * Provide the object of non ECMA standard jsapi container. 29 static JSAPITreeSet *Cast(TaggedObject *object) in Cast() 34 …static void Add(JSThread *thread, const JSHandle<JSAPITreeSet> &set, const JSHandle<JSTaggedValue>… 36 static void Clear(const JSThread *thread, const JSHandle<JSAPITreeSet> &set); 38 …static bool Delete(JSThread *thread, const JSHandle<JSAPITreeSet> &set, const JSHandle<JSTaggedVal… 40 …static bool Has(JSThread *thread, const JSHandle<JSAPITreeSet> &set, const JSHandle<JSTaggedValue>… 42 static JSTaggedValue PopFirst(JSThread *thread, const JSHandle<JSAPITreeSet> &set); 43 static JSTaggedValue PopLast(JSThread *thread, const JSHandle<JSAPITreeSet> &set); [all …]
|
| D | js_api_tree_set_iterator.h | 7 * http://www.apache.org/licenses/LICENSE-2.0 24 * It is used to provide iterators for non ECMA standard jsapi containers. 29 static JSAPITreeSetIterator *Cast(TaggedObject *obj) in Cast() 34 …static JSHandle<JSTaggedValue> CreateTreeSetIterator(JSThread *thread, JSHandle<JSTaggedValue> &ob… 37 static JSTaggedValue Next(EcmaRuntimeCallInfo *argv); 39 static constexpr size_t ITERATED_SET_OFFSET = JSObject::SIZE; 47 static constexpr size_t ITERATION_KIND_BITS = 2;
|
| D | js_api_tree_map_iterator.h | 7 * http://www.apache.org/licenses/LICENSE-2.0 24 * It is used to provide iterators for non ECMA standard jsapi containers. 29 static JSAPITreeMapIterator *Cast(TaggedObject *obj) in Cast() 34 …static JSHandle<JSTaggedValue> CreateTreeMapIterator(JSThread *thread, JSHandle<JSTaggedValue> &ob… 37 static JSTaggedValue Next(EcmaRuntimeCallInfo *argv); 39 static constexpr size_t ITERATED_MAP_OFFSET = JSObject::SIZE; 47 static constexpr size_t ITERATION_KIND_BITS = 2;
|
| D | js_api_arraylist_iterator.h | 7 * http://www.apache.org/licenses/LICENSE-2.0 24 * It is used to provide iterators for non ECMA standard jsapi containers. 29 static JSAPIArrayListIterator *Cast(TaggedObject *obj) in Cast() 34 static JSTaggedValue Next(EcmaRuntimeCallInfo *argv); 36 static constexpr size_t ITERATED_ARRAYLIST_OFFSET = JSObject::SIZE;
|
| D | js_api_tree_map.h | 7 * http://www.apache.org/licenses/LICENSE-2.0 20 #include "ecmascript/js_tagged_value-inl.h" 24 * Provide the object of non ECMA standard jsapi container. 29 static JSAPITreeMap *Cast(TaggedObject *object) in Cast() 34 …static void Set(JSThread *thread, const JSHandle<JSAPITreeMap> &map, const JSHandle<JSTaggedValue>… 37 static void Clear(const JSThread *thread, const JSHandle<JSAPITreeMap> &map); 39 …static JSTaggedValue Get(JSThread *thread, const JSHandle<JSAPITreeMap> &map, const JSHandle<JSTag… 41 static JSTaggedValue Delete(JSThread *thread, const JSHandle<JSAPITreeMap> &map, 44 …static bool HasKey(JSThread *thread, const JSHandle<JSAPITreeMap> &map, const JSHandle<JSTaggedVal… 47 …static bool Replace(JSThread *thread, const JSHandle<JSAPITreeMap> &map, const JSHandle<JSTaggedVa… [all …]
|
| /arkcompiler/ets_runtime/ecmascript/jspandafile/ |
| D | class_info_extractor.cpp | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 28 const GlobalEnvConstants *globalConst = thread->GlobalConstants(); in BuildClassInfoExtractorFromLiteral() 29 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in BuildClassInfoExtractorFromLiteral() 31 uint32_t literalBufferLength = literal->GetLength(); in BuildClassInfoExtractorFromLiteral() 32 // non static properties number is hidden in the last index of Literal buffer in BuildClassInfoExtractorFromLiteral() 35 … nonStaticNum = static_cast<uint32_t>(literal->Get(thread, literalBufferLength - 1).GetInt()); in BuildClassInfoExtractorFromLiteral() 39 …JSHandle<TaggedArray> nonStaticKeys = factory->NewOldSpaceTaggedArray(nonStaticNum + NON_STATIC_RE… in BuildClassInfoExtractorFromLiteral() 41 factory->NewOldSpaceTaggedArray(nonStaticNum + NON_STATIC_RESERVED_LENGTH); in BuildClassInfoExtractorFromLiteral() 43 nonStaticKeys->Set(thread, CONSTRUCTOR_INDEX, globalConst->GetConstructorString()); in BuildClassInfoExtractorFromLiteral() [all …]
|
| /arkcompiler/runtime_core/libpandafile/tests/ |
| D | debug_info_extractor_test.cpp | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 18 #include "class_data_accessor-inl.h" 19 #include "code_data_accessor-inl.h" 20 #include "debug_data_accessor-inl.h" 21 #include "field_data_accessor-inl.h" 26 #include "method_data_accessor-inl.h" 28 #include "proto_data_accessor-inl.h" 39 static const char SOURCE_FILE[] = "asm.pa"; 43 ClassItem *class_item = container->GetOrCreateClassItem("A"); in PreparePandaFile() [all …]
|
| /arkcompiler/runtime_core/runtime/mem/ |
| D | region_allocator.h | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 41 static inline Region *ObjectToRegion(const ObjectHeader *object) in ObjectToRegion() 56 static inline Region *AddrToRegion(const void *addr) in AddrToRegion() 59 auto space = mem_pool->GetSpaceTypeForAddr(addr); in AddrToRegion() 61 …ASSERT(PoolManager::GetMmapMemPool()->GetSpaceTypeForAddr(addr) == SpaceType::SPACE_TYPE_HUMONGOUS… in AddrToRegion() 106 spaces_->FreeSharedPool(init_block_.GetMem(), init_block_.GetSize()); in ClearRegionsPool() 125 // NOLINTNEXTLINE(misc-non-private-member-variables-in-classes) 127 // NOLINTNEXTLINE(misc-non-private-member-variables-in-classes) 129 // NOLINTNEXTLINE(misc-non-private-member-variables-in-classes) [all …]
|
| /arkcompiler/runtime_core/cmake/ |
| D | ClangTidy.cmake | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 14 option(PANDA_ENABLE_CLANG_TIDY "Enable clang-tidy checks during compilation" true) 16 # There seems to be a bug in either clang-tidy or CMake: 17 # When clang/gcc is used for cross-compilation, it is ran on host and use defines and options for h… 18 # For example for arm32 cross-compilation Clang-Tidy: 19 # - don't know about -march=armv7-a 20 # - believes that size of pointer is 64 instead of 32 for aarch32 36 # Currently we fix a certain version of clang-tidy to avoid unstable linting, 38 set(panda_clang_tidy "clang-tidy-9") [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 34 : regular(allocator->Adapter()), physical(allocator->Adapter()) in WorkingRanges() 38 InstructionsRanges regular; // NOLINT(misc-non-private-member-variables-in-classes) 39 InstructionsRanges physical; // NOLINT(misc-non-private-member-variables-in-classes) 56 static const size_t DEFAULT_VECTOR_SIZE = 64;
|
| /arkcompiler/runtime_core/runtime/mem/gc/g1/ |
| D | g1-allocator.h | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 21 #include "runtime/mem/region_allocator-inl.h" 22 #include "runtime/mem/gc/g1/g1-allocator_constants.h" 31 static constexpr size_t TLAB_SIZE = 4_KB; // TLAB size for young gen 41 static constexpr size_t REGION_SIZE = mem::G1_REGION_SIZE; 69 * Returns a vector which contains non-movable and humongous regions 99 * Collect non regular regions (i.e. remove dead objects from Humongous and NonMovable regions 119 … return object_allocator_->template GetTopGarbageRegions<include_current_region>(region_count); in GetTopGarbageRegions() 129 object_allocator_->ResetSeveralSpecificRegions<regions_type>(regions); in ResetRegions() [all …]
|