Home
last modified time | relevance | path

Searched refs:TypedArrayHelper (Results 1 – 16 of 16) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/base/tests/
Dtyped_array_helper_test.cpp128 …JSHandle<JSTaggedValue> int8Array(thread, TypedArrayHelper::TypedArrayConstructor(argv, constructo… in HWTEST_F_L0()
149TypedArrayHelper::AllocateTypedArray(thread, constructorName, newTarget, DataViewType::UINT8); in HWTEST_F_L0()
170TypedArrayHelper::AllocateTypedArray(thread, constructorName, newTarget, length, DataViewType::UIN… in HWTEST_F_L0()
188 …JSHandle<JSTaggedValue> int16Array(thread, TypedArrayHelper::TypedArrayConstructor(argv, construct… in HWTEST_F_L0()
197 …JSHandle<JSObject> newArrObj = TypedArrayHelper::TypedArraySpeciesCreate(thread, arrayObj, 1, args… in HWTEST_F_L0()
212 …JSHandle<JSObject> newArrObj = TypedArrayHelper::TypedArrayCreate(thread, constructor, 1, args); /… in HWTEST_F_L0()
226 …JSHandle<JSTaggedValue> uint32Array(thread, TypedArrayHelper::TypedArrayConstructor(argv, construc… in HWTEST_F_L0()
229 … JSHandle<JSTaggedValue> buffer(thread, TypedArrayHelper::ValidateTypedArray(thread, uint32Array)); in HWTEST_F_L0()
245 …JSHandle<JSTaggedValue> int8ArrayVal(thread, TypedArrayHelper::TypedArrayConstructor(argv1, constr… in HWTEST_F_L0()
249 …JSHandle<JSTaggedValue> bigUint64ArrayVal(thread, TypedArrayHelper::TypedArrayConstructor(argv2, c… in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/base/
Dtyped_array_helper-inl.h39 JSHandle<JSHClass> TypedArrayHelper::GetOnHeapHclass##Type(JSThread *thread, JSHClass* objHclass) \
55 JSHandle<JSHClass> TypedArrayHelper::GetNotOnHeapHclass##Type(JSThread *thread, JSHClass* objHclass…
70 DataViewType TypedArrayHelper::GetType(const JSHandle<JSTypedArray> &obj) in TYPED_ARRAY_TYPES()
76 DataViewType TypedArrayHelper::GetType(JSType type) in GetType()
104 uint32_t TypedArrayHelper::GetElementSize(const JSHandle<JSTypedArray> &obj) in GetElementSize()
110 uint32_t TypedArrayHelper::GetElementSize(JSType type) in GetElementSize()
129 JSHandle<JSTaggedValue> TypedArrayHelper::GetConstructor(JSThread *thread, const JSHandle<JSTaggedV… in GetConstructor()
159 JSHandle<JSFunction> TypedArrayHelper::GetConstructorFromType(JSThread *thread, const DataViewType … in GetConstructorFromType()
189 JSHandle<JSTaggedValue> TypedArrayHelper::GetConstructorNameFromType(JSThread *thread, const DataVi… in GetConstructorNameFromType()
219 JSHandle<JSHClass> TypedArrayHelper::GetOnHeapHclassFromType( in GetOnHeapHclassFromType()
[all …]
Dtyped_array_helper.cpp42 JSTaggedValue TypedArrayHelper::TypedArrayConstructor(EcmaRuntimeCallInfo *argv, in TypedArrayConstructor()
67 … JSHandle<JSObject> obj = TypedArrayHelper::AllocateTypedArray(thread, constructorName, newTarget, in TypedArrayConstructor()
73 …JSHandle<JSObject> obj = TypedArrayHelper::AllocateTypedArray(thread, constructorName, newTarget, … in TypedArrayConstructor()
76 return TypedArrayHelper::CreateFromTypedArray(argv, obj, arrayType); in TypedArrayConstructor()
79 return TypedArrayHelper::CreateFromArrayBuffer(argv, obj, arrayType); in TypedArrayConstructor()
82 return TypedArrayHelper::FastCopyElementFromArray(argv, obj, arrayType); in TypedArrayConstructor()
84 return TypedArrayHelper::CreateFromOrdinaryObject(argv, obj, arrayType); in TypedArrayConstructor()
87 JSTaggedValue TypedArrayHelper::FastCopyElementFromArray(EcmaRuntimeCallInfo *argv, const JSHandle<… in FastCopyElementFromArray()
98 TypedArrayHelper::CreateFromOrdinaryObject(argv, obj, arrayType); in FastCopyElementFromArray()
102 TypedArrayHelper::AllocateTypedArrayBuffer(thread, obj, len, arrayType); in FastCopyElementFromArray()
[all …]
Datomic_helper.cpp27 JSTaggedValue buffer = TypedArrayHelper::ValidateTypedArray(thread, typedArray); in ValidateIntegerTypedArray()
86 uint32_t elementSize = TypedArrayHelper::GetSizeFromType(elementType); in ValidateAtomicAccess()
Dtyped_array_helper.h29 class TypedArrayHelper {
/arkcompiler/ets_runtime/ecmascript/
Djs_typed_array.cpp23 using TypedArrayHelper = base::TypedArrayHelper; typedef
420 uint32_t elementSize = TypedArrayHelper::GetElementSize(typedarrayObj); in IntegerIndexedElementGet()
425 DataViewType elementType = TypedArrayHelper::GetType(typedarrayObj); in IntegerIndexedElementGet()
519 uint32_t elementSize = TypedArrayHelper::GetElementSize(typedarrayObj); in FastCopyElementToArray()
521 DataViewType elementType = TypedArrayHelper::GetType(typedarrayObj); in FastCopyElementToArray()
558 uint32_t elementSize = TypedArrayHelper::GetElementSize(typedarrayObj); in FastElementGet()
562 DataViewType elementType = TypedArrayHelper::GetType(typedarrayObj); in FastElementGet()
598 uint32_t elementSize = TypedArrayHelper::GetElementSize(typedarrayObj); in IntegerIndexedElementSet()
603 DataViewType elementType = TypedArrayHelper::GetType(typedarrayObj); in IntegerIndexedElementSet()
669 uint32_t elementSize = TypedArrayHelper::GetElementSize(jsType); in FastGetPropertyByIndex()
[all …]
Djs_serializer.cpp44 using TypedArrayHelper = base::TypedArrayHelper; typedef
736 [[maybe_unused]] DataViewType viewType = TypedArrayHelper::GetType(typedArray); in WriteJSTypedArray()
1260 uint32_t arrayType = TypedArrayHelper::GetSizeFromType(viewType); in ReadByteArray()
Djs_stable_array.cpp37 using TypedArrayHelper = base::TypedArrayHelper; typedef
883 uint32_t targetElementSize = TypedArrayHelper::GetSizeFromType(targetType); in FastCopyFromArrayToTypedArray()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_typedarray.cpp40 using TypedArrayHelper = base::TypedArrayHelper; typedef
58 …return TypedArrayHelper::TypedArrayConstructor(argv, thread->GlobalConstants()->GetHandledInt8Arra… in Int8ArrayConstructor()
67 …return TypedArrayHelper::TypedArrayConstructor(argv, thread->GlobalConstants()->GetHandledUint8Arr… in Uint8ArrayConstructor()
76 return TypedArrayHelper::TypedArrayConstructor(argv, in Uint8ClampedArrayConstructor()
86 …return TypedArrayHelper::TypedArrayConstructor(argv, thread->GlobalConstants()->GetHandledInt16Arr… in Int16ArrayConstructor()
95 …return TypedArrayHelper::TypedArrayConstructor(argv, thread->GlobalConstants()->GetHandledUint16Ar… in Uint16ArrayConstructor()
104 …return TypedArrayHelper::TypedArrayConstructor(argv, thread->GlobalConstants()->GetHandledInt32Arr… in Int32ArrayConstructor()
113 …return TypedArrayHelper::TypedArrayConstructor(argv, thread->GlobalConstants()->GetHandledUint32Ar… in Uint32ArrayConstructor()
122 …return TypedArrayHelper::TypedArrayConstructor(argv, thread->GlobalConstants()->GetHandledFloat32A… in Float32ArrayConstructor()
131 …return TypedArrayHelper::TypedArrayConstructor(argv, thread->GlobalConstants()->GetHandledFloat64A… in Float64ArrayConstructor()
[all …]
Dbuiltins_arraybuffer.cpp41 using TypedArrayHelper = base::TypedArrayHelper; typedef
775 uint32_t elementSize = TypedArrayHelper::GetElementSize(items); in TypedArrayToList()
776 DataViewType elementType = TypedArrayHelper::GetType(items); in TypedArrayToList()
Dbuiltins_array.cpp44 using TypedArrayHelper = base::TypedArrayHelper; typedef
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_typed_array_test.cpp358 int32_t sizeElement = ecmascript::base::TypedArrayHelper::GetElementSize(handleInt8Array); in HWTEST_F_L0()
405 int32_t sizeElement = ecmascript::base::TypedArrayHelper::GetElementSize(handleInt8Array); in HWTEST_F_L0()
455 int32_t sizeElement = ecmascript::base::TypedArrayHelper::GetElementSize(handleUint8Array); in HWTEST_F_L0()
502 int32_t sizeElement = ecmascript::base::TypedArrayHelper::GetElementSize(handleUint8Array); in HWTEST_F_L0()
552 … int32_t sizeElement = ecmascript::base::TypedArrayHelper::GetElementSize(handleUint8ClampedArray); in HWTEST_F_L0()
599 … int32_t sizeElement = ecmascript::base::TypedArrayHelper::GetElementSize(handleUint8ClampedArray); in HWTEST_F_L0()
650 int32_t sizeElement = ecmascript::base::TypedArrayHelper::GetElementSize(handleInt16Array); in HWTEST_F_L0()
699 int32_t sizeElement = ecmascript::base::TypedArrayHelper::GetElementSize(handleInt16Array); in HWTEST_F_L0()
750 int32_t sizeElement = ecmascript::base::TypedArrayHelper::GetElementSize(handleUint16Array); in HWTEST_F_L0()
799 int32_t sizeElement = ecmascript::base::TypedArrayHelper::GetElementSize(handleUint16Array); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_typedarray_test.cpp46 using TypedArrayHelper = ecmascript::base::TypedArrayHelper; typedef
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi.cpp159 using ecmascript::base::TypedArrayHelper;
Djsnapi_expo.cpp165 using ecmascript::base::TypedArrayHelper;
/arkcompiler/ets_runtime/ecmascript/stubs/
Druntime_stubs.cpp890 base::TypedArrayHelper::ValidateTypedArray(thread, obj); in DEF_RUNTIME_STUBS()