/arkcompiler/ets_runtime/ecmascript/tests/ |
D | dump_test.cpp | 184 JSHandle<JSHClass> mapClass = factory->NewEcmaHClass(JSMap::SIZE, JSType::JS_MAP, proto); in NewJSMap() 193 JSHandle<JSHClass> setClass = factory->NewEcmaHClass(JSSet::SIZE, JSType::JS_SET, proto); in NewJSSet() 204 …JSHandle<JSHClass> mapClass = factory->NewEcmaHClass(JSAPIHashMap::SIZE, JSType::JS_API_HASH_MAP, … in NewJSAPIHashMap() 215 …JSHandle<JSHClass> setClass = factory->NewEcmaHClass(JSAPIHashSet::SIZE, JSType::JS_API_HASH_SET, … in NewJSAPIHashSet() 226 …JSHandle<JSHClass> mapClass = factory->NewEcmaHClass(JSAPITreeMap::SIZE, JSType::JS_API_TREE_MAP, … in NewJSAPITreeMap() 237 …JSHandle<JSHClass> setClass = factory->NewEcmaHClass(JSAPITreeSet::SIZE, JSType::JS_API_TREE_SET, … in NewJSAPITreeSet() 248 …JSHandle<JSHClass> mapClass = factory->NewEcmaHClass(JSAPIPlainArray::SIZE, JSType::JS_API_PLAIN_A… in NewJSAPIPlainArray() 264 …JSHandle<JSHClass> listClass = factory->NewEcmaHClass(JSAPIList::SIZE, JSType::JS_API_LIST, proto); in NewJSAPIList() 275 …JSHandle<JSHClass> mapClass = factory->NewEcmaHClass(JSAPILinkedList::SIZE, JSType::JS_API_LINKED_… in NewJSAPILinkedList() 294 factory->NewEcmaHClass(JSAPIArrayList::SIZE, JSType::JS_API_ARRAY_LIST, proto); in NewJSAPIArrayList() [all …]
|
D | handle_leak_test.cpp | 142 static constexpr int SIZE = 100; in HWTEST_F_L0() local 144 *arrayClass, TaggedArray::ComputeSize(JSTaggedValue::TaggedTypeSize(), SIZE))); in HWTEST_F_L0() 145 newArray->SetLength(SIZE); in HWTEST_F_L0() 168 static constexpr int SIZE = 100; in HWTEST_F_L0() local 170 *arrayClass, TaggedArray::ComputeSize(JSTaggedValue::TaggedTypeSize(), SIZE))); in HWTEST_F_L0() 171 newArray->SetLength(SIZE); in HWTEST_F_L0() 172 for (uint32_t i = 0; i < SIZE / 2; i++) { in HWTEST_F_L0() 198 static constexpr int SIZE = 100; in HWTEST_F_L0() local 200 *arrayClass, TaggedArray::ComputeSize(JSTaggedValue::TaggedTypeSize(), SIZE))); in HWTEST_F_L0() 202 newArray->InitializeWithSpecialValue(JSTaggedValue::Hole(), SIZE); in HWTEST_F_L0()
|
D | throw_oom_error_test.cpp | 59 static constexpr size_t SIZE = 100_KB / 8; in HWTEST_F_L0() local 63 …thread->GetEcmaVM()->GetFactory()->NewTaggedArray(SIZE, JSTaggedValue::Hole(), MemSpaceType::NON_M… in HWTEST_F_L0() 79 static constexpr size_t SIZE = 100_KB / 8; in HWTEST_F_L0() local 84 …thread->GetEcmaVM()->GetFactory()->NewTaggedArray(SIZE, JSTaggedValue::Hole(), MemSpaceType::OLD_S… in HWTEST_F_L0() 91 …thread->GetEcmaVM()->GetFactory()->NewTaggedArray(SIZE, JSTaggedValue::Hole(), MemSpaceType::SEMI_… in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/ |
D | global_env_constants.cpp | 103 … factory->NewEcmaReadOnlyHClass(hClass, FreeObject::SIZE, JSType::FREE_OBJECT_WITH_TWO_FIELD)); in InitRootsClass() 130 factory->NewEcmaReadOnlyHClass(hClass, BigInt::SIZE, JSType::BIGINT)); in InitRootsClass() 132 … factory->NewEcmaReadOnlyHClass(hClass, JSNativePointer::SIZE, JSType::JS_NATIVE_POINTER)); in InitRootsClass() 136 factory->NewEcmaReadOnlyHClass(hClass, JSSymbol::SIZE, JSType::SYMBOL)); in InitRootsClass() 138 factory->NewEcmaReadOnlyHClass(hClass, AccessorData::SIZE, JSType::ACCESSOR_DATA)); in InitRootsClass() 140 … factory->NewEcmaReadOnlyHClass(hClass, AccessorData::SIZE, JSType::INTERNAL_ACCESSOR)); in InitRootsClass() 142 factory->NewEcmaHClass(hClass, JSProxy::SIZE, JSType::JS_PROXY)); in InitRootsClass() 144 … factory->NewEcmaReadOnlyHClass(hClass, CompletionRecord::SIZE, JSType::COMPLETION_RECORD)); in InitRootsClass() 146 … factory->NewEcmaReadOnlyHClass(hClass, GeneratorContext::SIZE, JSType::JS_GENERATOR_CONTEXT)); in InitRootsClass() 148 factory->NewEcmaReadOnlyHClass(hClass, AsyncGeneratorRequest::SIZE, in InitRootsClass() [all …]
|
D | js_function.h | 67 static constexpr size_t METHOD_OFFSET = JSObject::SIZE; 76 static_assert((JSFunctionBase::SIZE % static_cast<uint8_t>(MemAlignment::MEM_ALIGN_OBJECT)) == 0); 241 static constexpr size_t PROTO_OR_DYNCLASS_OFFSET = JSFunctionBase::SIZE; 263 static constexpr size_t SIZE = JSFunction::SIZE; variable 265 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSFunction, SIZE, SIZE) 277 static constexpr size_t BOUND_TARGET_OFFSET = JSFunctionBase::SIZE; 280 ACCESSORS(BoundArguments, BOUND_ARGUMENTS_OFFSET, SIZE); 282 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSFunctionBase, BOUND_TARGET_OFFSET, SIZE) 293 static constexpr size_t REVOCABLE_PROXY_OFFSET = JSFunction::SIZE; 294 ACCESSORS(RevocableProxy, REVOCABLE_PROXY_OFFSET, SIZE); [all …]
|
D | js_global_object.h | 31 static constexpr size_t SIZE = JSObject::SIZE; variable 33 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSObject, SIZE, SIZE) 44 static constexpr size_t SIZE = JSObject::SIZE; variable 46 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSObject, SIZE, SIZE)
|
D | js_async_function.h | 36 static constexpr size_t ASYNC_CONTEXT_OFFSET = JSFunction::SIZE; 37 ACCESSORS(AsyncContext, ASYNC_CONTEXT_OFFSET, SIZE); 39 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSFunction, ASYNC_CONTEXT_OFFSET, SIZE) 56 static constexpr size_t SIZE = JSFunction::SIZE; variable 58 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSFunction, SIZE, SIZE)
|
D | js_shared_object.h | 26 static constexpr size_t SIZE = JSObject::SIZE; variable 28 SIZE / JSTaggedValue::TaggedTypeSize() + 1; 29 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSObject, SIZE, SIZE)
|
D | js_promise.h | 36 static constexpr size_t PROMISE_CAPABILITY_OFFSET = Record::SIZE; 54 static constexpr size_t PROMISE_OFFSET = Record::SIZE; 57 ACCESSORS(Reject, REJECT_OFFSET, SIZE); 61 DECL_VISIT_OBJECT(PROMISE_OFFSET, SIZE) 68 static constexpr size_t ITERATOR_OFFSET = Record::SIZE; 85 static constexpr size_t VALUE_OFFSET = Record::SIZE; 86 ACCESSORS(Value, VALUE_OFFSET, SIZE); 89 DECL_VISIT_OBJECT(VALUE_OFFSET, SIZE) 96 static constexpr size_t RESOLVE_FUNCTION_OFFSET = Record::SIZE; 98 ACCESSORS(RejectFunction, REJECT_FUNCTION_OFFSET, SIZE); [all …]
|
D | js_weak_container.h | 45 static constexpr size_t LINKED_MAP_OFFSET = JSObject::SIZE; 46 ACCESSORS(LinkedMap, LINKED_MAP_OFFSET, SIZE) 48 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSObject, LINKED_MAP_OFFSET, SIZE) 69 static constexpr size_t LINKED_SET_OFFSET = JSObject::SIZE; 70 ACCESSORS(LinkedSet, LINKED_SET_OFFSET, SIZE) 72 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSObject, LINKED_SET_OFFSET, SIZE)
|
D | js_async_generator_object.h | 48 static constexpr size_t COMPLETION_OFFSET = Record::SIZE; 50 ACCESSORS(Capability, CAPABILITY_OFFSET, SIZE); 54 DECL_VISIT_OBJECT(COMPLETION_OFFSET, SIZE) 61 static constexpr size_t GENERATOR_CONTEXT_OFFSET = JSObject::SIZE; 115 static constexpr size_t ASYNC_GENERATOR_OBJECT_OFFSET = JSFunction::SIZE; 116 ACCESSORS(AsyncGeneratorObject, ASYNC_GENERATOR_OBJECT_OFFSET, SIZE); 117 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSFunction, ASYNC_GENERATOR_OBJECT_OFFSET, SIZE)
|
D | js_finalization_registry.h | 56 static constexpr size_t WEAKREF_TARGET_OFFSET = Record::SIZE; 58 ACCESSORS(HeldValue, HELD_VALUE_OFFSET, SIZE) 60 DECL_VISIT_OBJECT(WEAKREF_TARGET_OFFSET, SIZE) 87 static constexpr size_t CLEANUP_CALLBACK_OFFSET = JSObject::SIZE; 92 ACCESSORS(Prev, PREV_OFFSET, SIZE) 93 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSObject, CLEANUP_CALLBACK_OFFSET, SIZE)
|
D | free_object.h | 51 if (size >= SIZE) { in SetAvailable() 79 ASAN_UNPOISON_MEMORY_REGION(this, SIZE); in AsanUnPoisonFreeObject() 93 ASAN_POISON_MEMORY_REGION(this, SIZE); in AsanPoisonFreeObject() 101 ACCESSORS(Size, SIZE_OFFSET, SIZE) 104 static_assert((FreeObject::SIZE % static_cast<uint8_t>(MemAlignment::MEM_ALIGN_OBJECT)) == 0);
|
D | js_realm.h | 29 static constexpr size_t VALUE_OFFSET = JSObject::SIZE; 31 ACCESSORS(GlobalEnv, GLOBAL_ENV_OFFSET, SIZE) 33 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSObject, VALUE_OFFSET, SIZE)
|
D | js_intl.h | 30 static constexpr size_t FALLBACK_SYMBOL = JSObject::SIZE; 32 ACCESSORS(FallbackSymbol, FALLBACK_SYMBOL, SIZE) 34 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSObject, FALLBACK_SYMBOL, SIZE)
|
/arkcompiler/ets_runtime/ecmascript/module/ |
D | js_module_entry.h | 27 static constexpr size_t IMPORT_ENTRY_OFFSET = Record::SIZE; 30 ACCESSORS(LocalName, IMPORT_NAME_OFFSET, SIZE); 33 DECL_VISIT_OBJECT(IMPORT_ENTRY_OFFSET, SIZE) 41 static constexpr size_t LOCAL_EXPORT_ENTRY_OFFSET = Record::SIZE; 55 static constexpr size_t INDIRECT_EXPORT_ENTRY_OFFSET = Record::SIZE; 58 ACCESSORS(ImportName, IMPORT_NAME_OFFSET, SIZE); 61 DECL_VISIT_OBJECT(INDIRECT_EXPORT_ENTRY_OFFSET, SIZE) 68 static constexpr size_t STAR_EXPORT_ENTRY_OFFSET = Record::SIZE; 69 ACCESSORS(ModuleRequest, STAR_EXPORT_ENTRY_OFFSET, SIZE); 72 DECL_VISIT_OBJECT(STAR_EXPORT_ENTRY_OFFSET, SIZE)
|
/arkcompiler/runtime_core/static_core/libpandabase/tests/ |
D | arena_allocator_test.cpp | 221 constexpr size_t SIZE = 2048; in TEST_F() local 227 for (size_t i = 0; i < SIZE; ++i) { in TEST_F() 231 ASSERT_EQ(SIZE, vec.size()); in TEST_F() 233 ASSERT_EQ(SIZE, vec.size()); in TEST_F() 235 for (size_t i = 0; i < SIZE; ++i) { in TEST_F() 242 constexpr size_t SIZE = 512; in TEST_F() local 243 constexpr size_t MAGIC_CONSTANT_1 = std::numeric_limits<size_t>::max() / (SIZE + 2U); in TEST_F() 245 size_t magicConstant2 = GetRand() % SIZE; in TEST_F() 251 for (size_t i = 0; i < SIZE; ++i) { in TEST_F() 256 ASSERT_EQ(SIZE, vec.size()); in TEST_F() [all …]
|
/arkcompiler/ets_runtime/ecmascript/ts_types/ |
D | ts_type.h | 54 static constexpr size_t PROPERTIES_OFFSET = TSType::SIZE; 66 ACCESSORS(IndexSigns, INDEX_SIGNS_OFFSET, SIZE); 68 DECL_VISIT_OBJECT(PROPERTIES_OFFSET, SIZE) 76 static constexpr size_t INSTANCE_TYPE_OFFSET = TSType::SIZE; 135 static constexpr size_t CLASS_GT_OFFSET = TSType::SIZE; 149 static constexpr size_t COMPONENTS_OFFSET = TSType::SIZE; 150 ACCESSORS(Components, COMPONENTS_OFFSET, SIZE); // the gt collection of union type components 152 DECL_VISIT_OBJECT(COMPONENTS_OFFSET, SIZE) 166 static constexpr size_t EXTENDS_TYPE_ID_OFFSET = TSType::SIZE; 169 ACCESSORS(IndexSigns, INDEX_SIGNS_OFFSET, SIZE); [all …]
|
/arkcompiler/runtime_core/libpandabase/tests/ |
D | arena_allocator_test.cpp | 201 constexpr size_t SIZE = 2048; variable 207 for (size_t i = 0; i < SIZE; ++i) { 211 ASSERT_EQ(SIZE, vec.size()); 213 ASSERT_EQ(SIZE, vec.size()); 215 for (size_t i = 0; i < SIZE; ++i) { 222 constexpr size_t SIZE = 512; variable 223 constexpr size_t MAGIC_CONSTANT_1 = std::numeric_limits<size_t>::max() / (SIZE + 2); 225 size_t MAGIC_CONSTANT_2 = rand() % SIZE; 231 for (size_t i = 0; i < SIZE; ++i) { 236 ASSERT_EQ(SIZE, vec.size()); [all …]
|
/arkcompiler/runtime_core/static_core/verification/util/ |
D | enum_tag.h | 30 static constexpr size_t SIZE = 0ULL; 49 static constexpr size_t SIZE = Base::SIZE + 1ULL; 75 static constexpr size_t SIZE = Base::SIZE; variable 76 static constexpr size_t BITS = sizeof(size_t) * 8ULL - panda::Clz(SIZE);
|
/arkcompiler/ets_frontend/test/scripts/performance_test/ |
D | performance_config.py | 135 SIZE = 2 variable in LogType 159 LogType.SIZE: os.path.join(mail_data_path, 'debug_size.csv') 164 LogType.SIZE: os.path.join(mail_data_path, 'release_size.csv') 172 LogType.SIZE: os.path.join(mail_data_path, 'debug_size.jpg') 177 LogType.SIZE: os.path.join(mail_data_path, 'release_size.jpg') 185 LogType.SIZE: 'Debug Full Build size' 190 LogType.SIZE: 'Release Full Build size'
|
/arkcompiler/ets_runtime/ecmascript/require/ |
D | js_cjs_exports.h | 27 static constexpr size_t JS_CJS_EXPORTS_OFFSET = JSObject::SIZE; 28 ACCESSORS(Exports, JS_CJS_EXPORTS_OFFSET, SIZE) 31 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSObject, JS_CJS_EXPORTS_OFFSET, SIZE)
|
D | js_cjs_require.h | 29 static constexpr size_t JS_CJS_REQUIRE_OFFSET = JSObject::SIZE; 31 ACCESSORS(Parent, CACHE_OFFSET, SIZE) 34 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSObject, JS_CJS_REQUIRE_OFFSET, SIZE)
|
/arkcompiler/runtime_core/static_core/runtime/tests/ |
D | panda_smart_pointers_test.cpp | 71 static constexpr size_t SIZE = 3; in TEST_F() local 74 auto uniqPtr2 = MakePandaUnique<int[]>(SIZE); in TEST_F() 77 for (size_t i = 0; i < SIZE; ++i) { in TEST_F() 82 for (size_t i = 0; i < SIZE; ++i) { in TEST_F()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/ |
D | x64_isa_tbl.h | 26 #define DEF_X64_CMP_MAPPING_INT(SIZE) … argument 27 …static const X64MOP_t cmpIselMap##SIZE[Operand::OperandType::kOpdPhi][Operand::OperandType::kOpdPh… 28 …{MOP_cmp##SIZE##_r_r, MOP_begin, MOP_cmp##SIZE##_r_m, MOP_begin}, … 29 …{MOP_cmp##SIZE##_i_r, MOP_begin, MOP_cmp##SIZE##_i_m, MOP_begin}, … 30 …{MOP_cmp##SIZE##_m_r, MOP_begin, MOP_begin, MOP_begin}, …
|