/ark/js_runtime/ecmascript/tests/ |
D | dump_test.cpp | 140 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/ |
D | ts_type.h | 38 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/ |
D | js_function.h | 48 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 …]
|
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) 54 static constexpr size_t SIZE = JSFunction::SIZE; variable 56 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSFunction, 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 | 42 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)
|
D | js_global_object.h | 31 static constexpr size_t SIZE = JSObject::SIZE; variable 33 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSObject, SIZE, SIZE)
|
D | global_env_constants.cpp | 68 … 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 …]
|
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)
|
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_api_arraylist_iterator.h | 36 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)
|
D | js_set.h | 40 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)
|
D | js_api_tree_set_iterator.h | 39 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)
|
D | js_api_tree_map_iterator.h | 39 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)
|
D | js_map.h | 44 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)
|
D | js_primitive_ref.h | 81 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)
|
D | free_object.h | 49 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);
|
D | js_generator_object.h | 59 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)
|
D | accessor_data.h | 64 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;
|
D | js_api_tree_set.h | 51 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/ |
D | arena_allocator_test.cpp | 197 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/ |
D | panda_smart_pointers_test.cpp | 66 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/ |
D | program_object.h | 31 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/ |
D | type_converter.cpp | 95 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/ |
D | micro_job_queue.h | 47 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)
|