Home
last modified time | relevance | path

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

1234

/ark/js_runtime/ecmascript/tests/
Ddump_test.cpp140 JSHandle<JSHClass> mapClass = factory->NewEcmaDynClass(JSMap::SIZE, JSType::JS_MAP, proto); in NewJSMap()
149 JSHandle<JSHClass> setClass = factory->NewEcmaDynClass(JSSet::SIZE, JSType::JS_SET, proto); in NewJSSet()
160 …JSHandle<JSHClass> mapClass = factory->NewEcmaDynClass(JSAPITreeMap::SIZE, JSType::JS_API_TREE_MAP… in NewJSAPITreeMap()
171 …JSHandle<JSHClass> setClass = factory->NewEcmaDynClass(JSAPITreeSet::SIZE, JSType::JS_API_TREE_SET… in NewJSAPITreeSet()
190 factory->NewEcmaDynClass(JSAPIArrayList::SIZE, JSType::JS_API_ARRAY_LIST, proto); in NewJSAPIArrayList()
211 factory->NewEcmaDynClass(ClassName::SIZE, JSType::TypeName, proto); \ in HWTEST_F_L0()
226 CHECK_DUMP_FILEDS(ECMAObject::SIZE, JSObject::SIZE, 2) in HWTEST_F_L0()
232 CHECK_DUMP_FILEDS(JSObject::SIZE, JSRealm::SIZE, 2) in HWTEST_F_L0()
238 CHECK_DUMP_FILEDS(JSObject::SIZE, JSFunctionBase::SIZE, 1) in HWTEST_F_L0()
242 CHECK_DUMP_FILEDS(JSFunctionBase::SIZE, JSFunction::SIZE, 7) in HWTEST_F_L0()
[all …]
/ark/js_runtime/ecmascript/ts_types/
Dts_type.h38 ACCESSORS_PRIMITIVE_FIELD(GT, uint64_t, BIT_FIELD_OFFSET, SIZE);
59 static constexpr size_t PROPERTIES_OFFSET = TSType::SIZE;
61 ACCESSORS(HClass, HCLASS_OFFSET, SIZE);
63 DECL_VISIT_OBJECT(PROPERTIES_OFFSET, SIZE)
75 static constexpr size_t INSTANCE_TYPE_OFFSET = TSType::SIZE;
97 static constexpr size_t CREATE_CLASS_TYPE_OFFSET = TSType::SIZE;
98 ACCESSORS(CreateClassType, CREATE_CLASS_TYPE_OFFSET, SIZE);
100 DECL_VISIT_OBJECT(CREATE_CLASS_TYPE_OFFSET, SIZE)
108 static constexpr size_t IMPORT_TYPE_ID_OFFSET = TSType::SIZE;
124 static constexpr size_t COMPONENT_OFFSET = TSType::SIZE;
[all …]
/ark/js_runtime/ecmascript/
Djs_function.h48 static constexpr size_t METHOD_OFFSET = JSObject::SIZE;
52 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSObject, SIZE, SIZE)
55 static_assert((JSFunctionBase::SIZE % static_cast<uint8_t>(MemAlignment::MEM_ALIGN_OBJECT)) == 0);
222 static constexpr size_t PROTO_OR_DYNCLASS_OFFSET = JSFunctionBase::SIZE;
255 static constexpr size_t SIZE = JSFunction::SIZE; variable
257 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSFunction, SIZE, SIZE)
273 static constexpr size_t BOUND_TARGET_OFFSET = JSFunctionBase::SIZE;
276 ACCESSORS(BoundArguments, BOUND_ARGUMENTS_OFFSET, SIZE);
278 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSFunctionBase, BOUND_TARGET_OFFSET, SIZE)
289 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)
54 static constexpr size_t SIZE = JSFunction::SIZE; variable
56 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 …]
Djs_weak_container.h42 static constexpr size_t LINKED_MAP_OFFSET = JSObject::SIZE;
43 ACCESSORS(LinkedMap, LINKED_MAP_OFFSET, SIZE)
45 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSObject, LINKED_MAP_OFFSET, SIZE)
64 static constexpr size_t LINKED_SET_OFFSET = JSObject::SIZE;
65 ACCESSORS(LinkedSet, LINKED_SET_OFFSET, SIZE)
67 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSObject, LINKED_SET_OFFSET, SIZE)
Djs_global_object.h31 static constexpr size_t SIZE = JSObject::SIZE; variable
33 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSObject, SIZE, SIZE)
Dglobal_env_constants.cpp68 … factory->NewEcmaDynClass(dynClassClass, FreeObject::SIZE, JSType::FREE_OBJECT_WITH_TWO_FIELD)); in InitRootsClass()
74 factory->NewEcmaDynClass(dynClassClass, BigInt::SIZE, JSType::BIGINT)); in InitRootsClass()
76 … factory->NewEcmaDynClass(dynClassClass, JSNativePointer::SIZE, JSType::JS_NATIVE_POINTER)); in InitRootsClass()
79 factory->NewEcmaDynClass(dynClassClass, JSSymbol::SIZE, JSType::SYMBOL)); in InitRootsClass()
81 factory->NewEcmaDynClass(dynClassClass, AccessorData::SIZE, JSType::ACCESSOR_DATA)); in InitRootsClass()
83 … factory->NewEcmaDynClass(dynClassClass, AccessorData::SIZE, JSType::INTERNAL_ACCESSOR)); in InitRootsClass()
85 factory->NewEcmaDynClass(dynClassClass, JSProxy::SIZE, JSType::JS_PROXY)); in InitRootsClass()
87 … factory->NewEcmaDynClass(dynClassClass, CompletionRecord::SIZE, JSType::COMPLETION_RECORD)); in InitRootsClass()
89 … factory->NewEcmaDynClass(dynClassClass, GeneratorContext::SIZE, JSType::JS_GENERATOR_CONTEXT)); in InitRootsClass()
91 … factory->NewEcmaDynClass(dynClassClass, PromiseCapability::SIZE, JSType::PROMISE_CAPABILITY)); in InitRootsClass()
[all …]
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_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_api_arraylist_iterator.h36 static constexpr size_t ITERATED_ARRAYLIST_OFFSET = JSObject::SIZE;
38 ACCESSORS(NextIndex, NEXT_INDEX_OFFSET, SIZE)
40 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSObject, ITERATED_ARRAYLIST_OFFSET, SIZE)
Djs_set.h40 static constexpr size_t LINKED_SET_OFFSET = JSObject::SIZE;
41 ACCESSORS(LinkedSet, LINKED_SET_OFFSET, SIZE)
43 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSObject, LINKED_SET_OFFSET, SIZE)
Djs_api_tree_set_iterator.h39 static constexpr size_t ITERATED_SET_OFFSET = JSObject::SIZE;
43 ACCESSORS(IterationKind, ITERATION_KIND_OFFSET, SIZE);
45 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSObject, ITERATED_SET_OFFSET, SIZE)
Djs_api_tree_map_iterator.h39 static constexpr size_t ITERATED_MAP_OFFSET = JSObject::SIZE;
43 ACCESSORS(IterationKind, ITERATION_KIND_OFFSET, SIZE);
45 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSObject, ITERATED_MAP_OFFSET, SIZE)
Djs_map.h44 static constexpr size_t LINKED_MAP_OFFSET = JSObject::SIZE;
45 ACCESSORS(LinkedMap, LINKED_MAP_OFFSET, SIZE)
47 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSObject, LINKED_MAP_OFFSET, SIZE)
Djs_primitive_ref.h81 static constexpr size_t VALUE_OFFSET = JSObject::SIZE;
82 ACCESSORS(Value, VALUE_OFFSET, SIZE);
84 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSObject, VALUE_OFFSET, SIZE)
Dfree_object.h49 if (size >= SIZE) { in SetAvailable()
72 ACCESSORS(Size, SIZE_OFFSET, SIZE)
75 static_assert((FreeObject::SIZE % static_cast<uint8_t>(MemAlignment::MEM_ALIGN_OBJECT)) == 0);
Djs_generator_object.h59 static constexpr size_t GENERATOR_CONTEXT_OFFSET = JSObject::SIZE;
100 static constexpr size_t GENERATOR_PROMISE_OFFSET = JSGeneratorObject::SIZE;
101 ACCESSORS(Promise, GENERATOR_PROMISE_OFFSET, SIZE);
103 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSGeneratorObject, GENERATOR_PROMISE_OFFSET, SIZE)
Daccessor_data.h64 static constexpr size_t GETTER_OFFSET = Record::SIZE;
66 ACCESSORS(Setter, SETTER_OFFSET, SIZE);
69 DECL_VISIT_OBJECT(GETTER_OFFSET, SIZE)
93 static constexpr size_t VALUE_OFFSET = Record::SIZE;
Djs_api_tree_set.h51 static constexpr size_t TREE_SET_OFFSET = JSObject::SIZE;
52 ACCESSORS(TreeSet, TREE_SET_OFFSET, SIZE)
54 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSObject, TREE_SET_OFFSET, SIZE)
/ark/runtime_core/libpandabase/tests/
Darena_allocator_test.cpp197 constexpr size_t SIZE = 2048; in TEST_F() local
203 for (size_t i = 0; i < SIZE; ++i) { in TEST_F()
207 ASSERT_EQ(SIZE, vec.size()); in TEST_F()
209 ASSERT_EQ(SIZE, vec.size()); in TEST_F()
211 for (size_t i = 0; i < SIZE; ++i) { in TEST_F()
218 constexpr size_t SIZE = 512; in TEST_F() local
219 constexpr size_t MAGIC_CONSTANT_1 = std::numeric_limits<size_t>::max() / (SIZE + 2); in TEST_F()
221 size_t MAGIC_CONSTANT_2 = rand() % SIZE; in TEST_F()
227 for (size_t i = 0; i < SIZE; ++i) { in TEST_F()
232 ASSERT_EQ(SIZE, vec.size()); in TEST_F()
[all …]
/ark/runtime_core/runtime/tests/
Dpanda_smart_pointers_test.cpp66 static constexpr size_t SIZE = 3; in TEST_F() local
68 auto uniq_ptr_2 = MakePandaUnique<int[]>(SIZE); in TEST_F()
71 for (size_t i = 0; i < SIZE; ++i) { in TEST_F()
76 for (size_t i = 0; i < SIZE; ++i) { in TEST_F()
/ark/js_runtime/ecmascript/jspandafile/
Dprogram_object.h31 static constexpr size_t MAIN_FUNCTION_OFFSET = ECMAObject::SIZE;
32 ACCESSORS(MainFunction, MAIN_FUNCTION_OFFSET, SIZE)
34 DECL_VISIT_OBJECT(MAIN_FUNCTION_OFFSET, SIZE)
/ark/runtime_core/libpandabase/utils/
Dtype_converter.cpp95 template <size_t SIZE>
96 ValueUnit TypeConverter(const std::array<double, SIZE> &coeffs, const std::array<std::string_view, in TypeConverter()
101 for (size_t index_coeff = 0; index_coeff < SIZE; ++index_coeff) { in TypeConverter()
109 return ValueUnit(value_base_dimension / division_ratio, literals[SIZE]); in TypeConverter()
/ark/js_runtime/ecmascript/jobs/
Dmicro_job_queue.h47 static constexpr size_t PROMISE_JOB_QUEUE_OFFSET = Record::SIZE;
49 ACCESSORS(ScriptJobQueue, SCRIPT_JOB_QUEUE_OFFSET, SIZE);
53 DECL_VISIT_OBJECT(PROMISE_JOB_QUEUE_OFFSET, SIZE)

1234