Home
last modified time | relevance | path

Searched refs:SIZE (Results 1 – 25 of 145) sorted by relevance

123456

/arkcompiler/ets_runtime/ecmascript/tests/
Ddump_test.cpp183 JSHandle<JSHClass> mapClass = factory->NewEcmaHClass(JSMap::SIZE, JSType::JS_MAP, proto); in NewJSMap()
192 JSHandle<JSHClass> setClass = factory->NewEcmaHClass(JSSet::SIZE, JSType::JS_SET, proto); in NewJSSet()
203 …JSHandle<JSHClass> mapClass = factory->NewEcmaHClass(JSAPIHashMap::SIZE, JSType::JS_API_HASH_MAP, … in NewJSAPIHashMap()
214 …JSHandle<JSHClass> setClass = factory->NewEcmaHClass(JSAPIHashSet::SIZE, JSType::JS_API_HASH_SET, … in NewJSAPIHashSet()
225 …JSHandle<JSHClass> mapClass = factory->NewEcmaHClass(JSAPITreeMap::SIZE, JSType::JS_API_TREE_MAP, … in NewJSAPITreeMap()
236 …JSHandle<JSHClass> setClass = factory->NewEcmaHClass(JSAPITreeSet::SIZE, JSType::JS_API_TREE_SET, … in NewJSAPITreeSet()
247 …JSHandle<JSHClass> mapClass = factory->NewEcmaHClass(JSAPIPlainArray::SIZE, JSType::JS_API_PLAIN_A… in NewJSAPIPlainArray()
263 …JSHandle<JSHClass> listClass = factory->NewEcmaHClass(JSAPIList::SIZE, JSType::JS_API_LIST, proto); in NewJSAPIList()
274 …JSHandle<JSHClass> mapClass = factory->NewEcmaHClass(JSAPILinkedList::SIZE, JSType::JS_API_LINKED_… in NewJSAPILinkedList()
293 factory->NewEcmaHClass(JSAPIArrayList::SIZE, JSType::JS_API_ARRAY_LIST, proto); in NewJSAPIArrayList()
[all …]
Dhandle_leak_test.cpp142 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()
Dthrow_oom_error_test.cpp58 static constexpr size_t SIZE = 100_KB / 8; in HWTEST_F_L0() local
62 …thread->GetEcmaVM()->GetFactory()->NewTaggedArray(SIZE, JSTaggedValue::Hole(), MemSpaceType::NON_M… in HWTEST_F_L0()
77 static constexpr size_t SIZE = 100_KB / 8; in HWTEST_F_L0() local
82 …thread->GetEcmaVM()->GetFactory()->NewTaggedArray(SIZE, JSTaggedValue::Hole(), MemSpaceType::OLD_S… in HWTEST_F_L0()
89 …thread->GetEcmaVM()->GetFactory()->NewTaggedArray(SIZE, JSTaggedValue::Hole(), MemSpaceType::SEMI_… in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/
Djs_global_object.h31 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)
Djs_function.h61 static constexpr size_t METHOD_OFFSET = JSObject::SIZE;
69 static_assert((JSFunctionBase::SIZE % static_cast<uint8_t>(MemAlignment::MEM_ALIGN_OBJECT)) == 0);
227 static constexpr size_t PROTO_OR_DYNCLASS_OFFSET = JSFunctionBase::SIZE;
234 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSFunctionBase, PROTO_OR_DYNCLASS_OFFSET, SIZE)
248 static constexpr size_t SIZE = JSFunction::SIZE; variable
250 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSFunction, SIZE, SIZE)
262 static constexpr size_t BOUND_TARGET_OFFSET = JSFunctionBase::SIZE;
265 ACCESSORS(BoundArguments, BOUND_ARGUMENTS_OFFSET, SIZE);
267 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSFunctionBase, BOUND_TARGET_OFFSET, SIZE)
278 static constexpr size_t REVOCABLE_PROXY_OFFSET = JSFunction::SIZE;
[all …]
Djs_async_function.h36 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)
Djs_promise.h36 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 …]
Dglobal_env_constants.cpp96 … factory->NewEcmaReadOnlyHClass(hClass, FreeObject::SIZE, JSType::FREE_OBJECT_WITH_TWO_FIELD)); in InitRootsClass()
117 factory->NewEcmaReadOnlyHClass(hClass, BigInt::SIZE, JSType::BIGINT)); in InitRootsClass()
119 … factory->NewEcmaReadOnlyHClass(hClass, JSNativePointer::SIZE, JSType::JS_NATIVE_POINTER)); in InitRootsClass()
123 factory->NewEcmaReadOnlyHClass(hClass, JSSymbol::SIZE, JSType::SYMBOL)); in InitRootsClass()
125 factory->NewEcmaReadOnlyHClass(hClass, AccessorData::SIZE, JSType::ACCESSOR_DATA)); in InitRootsClass()
127 … factory->NewEcmaReadOnlyHClass(hClass, AccessorData::SIZE, JSType::INTERNAL_ACCESSOR)); in InitRootsClass()
129 factory->NewEcmaHClass(hClass, JSProxy::SIZE, JSType::JS_PROXY)); in InitRootsClass()
131 … factory->NewEcmaReadOnlyHClass(hClass, CompletionRecord::SIZE, JSType::COMPLETION_RECORD)); in InitRootsClass()
133 … factory->NewEcmaReadOnlyHClass(hClass, GeneratorContext::SIZE, JSType::JS_GENERATOR_CONTEXT)); in InitRootsClass()
135 factory->NewEcmaReadOnlyHClass(hClass, AsyncGeneratorRequest::SIZE, in InitRootsClass()
[all …]
Djs_weak_container.h45 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)
Djs_async_generator_object.h48 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)
Dfree_object.h51 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);
Djs_finalization_registry.h56 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)
Djs_realm.h29 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)
Djs_intl.h30 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)
Djs_async_from_sync_iterator.h35 static constexpr size_t SYNC_ITERATOR_RECORD = JSObject::SIZE;
36 ACCESSORS(SyncIteratorRecord, SYNC_ITERATOR_RECORD, SIZE);
38 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSObject, SYNC_ITERATOR_RECORD, SIZE);
Djs_set.h39 static constexpr size_t LINKED_SET_OFFSET = JSObject::SIZE;
40 ACCESSORS(LinkedSet, LINKED_SET_OFFSET, SIZE)
42 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSObject, LINKED_SET_OFFSET, SIZE)
Djs_map.h43 static constexpr size_t LINKED_MAP_OFFSET = JSObject::SIZE;
44 ACCESSORS(LinkedMap, LINKED_MAP_OFFSET, SIZE)
46 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSObject, LINKED_MAP_OFFSET, SIZE)
/arkcompiler/ets_runtime/ecmascript/module/
Djs_module_entry.h27 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/ets_runtime/ecmascript/ts_types/
Dts_type.h54 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/
Darena_allocator_test.cpp201 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/ets_runtime/ecmascript/require/
Djs_cjs_exports.h27 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)
Djs_cjs_require.h29 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/ets_frontend/test/scripts/performance_test/
Dperformance_config.py141 SIZE = 2 variable in LogType
165 LogType.SIZE: os.path.join(mail_data_path, 'debug_size.csv')
170 LogType.SIZE: os.path.join(mail_data_path, 'release_size.csv')
178 LogType.SIZE: os.path.join(mail_data_path, 'debug_size.jpg')
183 LogType.SIZE: os.path.join(mail_data_path, 'release_size.jpg')
191 LogType.SIZE: 'Debug Full Build size'
196 LogType.SIZE: 'Release Full Build size'
/arkcompiler/ets_runtime/ecmascript/jobs/
Dmicro_job_queue.h42 static constexpr size_t PROMISE_JOB_QUEUE_OFFSET = Record::SIZE;
44 ACCESSORS(ScriptJobQueue, SCRIPT_JOB_QUEUE_OFFSET, SIZE);
48 DECL_VISIT_OBJECT(PROMISE_JOB_QUEUE_OFFSET, SIZE)
/arkcompiler/runtime_core/libpandabase/utils/
Dtype_converter.cpp98 template <size_t SIZE>
99 ValueUnit TypeConverter(const std::array<double, SIZE> &coeffs, const std::array<std::string_view, in TypeConverter()
104 for (size_t index_coeff = 0; index_coeff < SIZE; ++index_coeff) { in TypeConverter()
111 return ValueUnit(value_base_dimension / division_ratio, literals[SIZE]); in TypeConverter()

123456