Home
last modified time | relevance | path

Searched refs:ByteArray (Results 1 – 20 of 20) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/tests/
Dbyte_array_test.cpp62 JSHandle<ByteArray> byteArray = factory->NewByteArray(5, 8); in HWTEST_F_L0()
63 EXPECT_EQ(ByteArray::ComputeSize(8, 0), 16U); in HWTEST_F_L0()
64 EXPECT_EQ(ByteArray::ComputeSize(16, 4), 80U); in HWTEST_F_L0()
80 JSHandle<ByteArray> byteArray = factory->NewByteArray(3, sizeof(value)); in HWTEST_F_L0()
Ddump_test.cpp851 JSHandle<ByteArray> byteArray = factory->NewByteArray(4, 8); in HWTEST_F_L0()
Djs_serializer_test.cpp696 JSHandle<ByteArray> resByteArray(byteArray); in TypedArrayTest2()
1813 JSHandle<ByteArray> byteArray = factory->NewByteArray(byteArrayLength, sizeof(value)); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/
Dbyte_array.h27 class ByteArray : public TaggedObject {
29 CAST_CHECK(ByteArray, IsByteArray);
71 static_assert(ByteArray::ARRAY_LENGTH_OFFSET == sizeof(TaggedObject));
72 static_assert((ByteArray::DATA_OFFSET % static_cast<uint8_t>(MemAlignment::MEM_ALIGN_OBJECT)) == 0);
Dbyte_array.cpp22 void ByteArray::Set(JSThread* thread, uint32_t idx, DataViewType type, JSTaggedType val, uint32_t o… in Set()
30 JSTaggedValue ByteArray::Get(JSThread *thread, uint32_t idx, DataViewType type, uint32_t offset) in Get()
Djs_hclass-inl.h198 size = ByteArray::ComputeSize(reinterpret_cast<ByteArray *>(header)->GetByteLength(), in SizeFromJSHClass()
199 reinterpret_cast<ByteArray *>(header)->GetArrayLength()); in SizeFromJSHClass()
Djs_typed_array.cpp723 ByteArray *byteArray = ByteArray::Cast(arrBuf.GetTaggedObject()); in GetOffHeapBuffer()
729ByteArray::Cast(typedArray->GetViewedArrayBufferOrByteArray().GetTaggedObject())->GetData())); in GetOffHeapBuffer()
Decma_string_table.cpp293 JSHandle<ByteArray> newData = vm_->GetFactory()->NewByteArray( in RelocateConstantData()
Djs_serializer.cpp401 JSHandle<ByteArray> byteArray = JSHandle<ByteArray>::Cast(value); in WriteByteArray()
1261 JSHandle<ByteArray> byteArray = factory_->NewByteArray(arrayLength, arrayType); in ReadByteArray()
Dobject_factory.h376 JSHandle<ByteArray> NewByteArray(uint32_t length, uint32_t size, void *srcData = nullptr,
Ddump.cpp835 ByteArray::Cast(obj)->Dump(os); in DumpObject()
2392 void ByteArray::Dump(std::ostream &os) const in Dump()
4037 ByteArray::Cast(obj)->DumpForSnapshot(vec); in DumpObject()
5093 void ByteArray::DumpForSnapshot(std::vector<Reference> &vec) const in DumpForSnapshot()
Dobject_factory.cpp2654 JSHandle<ByteArray> ObjectFactory::NewByteArray(uint32_t length, uint32_t size, void *srcData, in NewByteArray()
2657 size_t byteSize = ByteArray::ComputeSize(size, length); in NewByteArray()
2660 JSHandle<ByteArray> array(thread_, header); in NewByteArray()
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi.cpp123 using ecmascript::ByteArray;
Djsnapi_expo.cpp107 using ecmascript::ByteArray;
/arkcompiler/runtime_core/static_core/plugins/ets/tests/mock/
Darray_native_test.cpp109 TEST_F(EtsNativeInterfaceArrayTest, ByteArray) in TEST_F() argument
/arkcompiler/ets_runtime/ecmascript/compiler/
Dtyped_array_stub_builder.cpp67 result = PtrAdd(*result, IntPtr(ByteArray::DATA_OFFSET)); in GetDataPointFromBuffer()
Dtyped_hcr_lowering.cpp1074 GateRef data = builder_.PtrAdd(byteArray, builder_.IntPtr(ByteArray::DATA_OFFSET)); in BuildOnHeapTypedArrayLoadElement()
1104 data = builder_.PtrAdd(byteArrayOrArrayBuffer, builder_.IntPtr(ByteArray::DATA_OFFSET)); in BuildTypedArrayLoadElement()
1245 GateRef data = builder_.PtrAdd(byteArray, builder_.IntPtr(ByteArray::DATA_OFFSET)); in BuildOnHeapTypedArrayStoreElement()
1272 data = builder_.PtrAdd(byteArrayOrArrayBuffer, builder_.IntPtr(ByteArray::DATA_OFFSET)); in BuildTypedArrayStoreElement()
1329 GateRef data = builder_.PtrAdd(arrbuffer, builder_.IntPtr(ByteArray::DATA_OFFSET)); in LowerUInt8ClampedArrayStoreElement()
/arkcompiler/ets_runtime/ecmascript/mem/
Dobject_xray.h344 ByteArray::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_arraybuffer.cpp749 …return reinterpret_cast<void *>(ToUintPtr(ByteArray::Cast(arrBuf.GetTaggedObject())->GetData()) + … in GetDataPointFromBuffer()
/arkcompiler/ets_runtime/ecmascript/serializer/tests/
Dserializer_test.cpp653 JSHandle<ByteArray> resByteArray(byteArray); in TypedArrayTest2()
1786 JSHandle<ByteArray> byteArray = factory->NewByteArray(byteArrayLength, sizeof(value)); in HWTEST_F_L0()