Home
last modified time | relevance | path

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

/arkcompiler/ets_runtime/ecmascript/tests/
Dbyte_array_test.cpp38 JSHandle<ByteArray> byteArray = factory->NewByteArray(5, 8); in HWTEST_F_L0()
39 EXPECT_EQ(ByteArray::ComputeSize(8, 0), 16U); in HWTEST_F_L0()
40 EXPECT_EQ(ByteArray::ComputeSize(16, 4), 80U); in HWTEST_F_L0()
56 JSHandle<ByteArray> byteArray = factory->NewByteArray(3, sizeof(value)); in HWTEST_F_L0()
Ddump_test.cpp966 JSHandle<ByteArray> byteArray = factory->NewByteArray(4, 8); 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.cpp21 void ByteArray::Set(JSThread* thread, uint32_t idx, DataViewType type, JSTaggedType val, uint32_t o… in Set()
29 JSTaggedValue ByteArray::Get(JSThread *thread, uint32_t idx, DataViewType type, uint32_t offset) in Get()
Djs_typed_array.cpp757 ByteArray *byteArray = ByteArray::Cast(arrBuf.GetTaggedObject()); in GetOffHeapBuffer()
763ByteArray::Cast(typedArray->GetViewedArrayBufferOrByteArray().GetTaggedObject())->GetData())); in GetOffHeapBuffer()
789 ByteArray *byteArray = ByteArray::Cast(arrBuf.GetTaggedObject()); in GetSharedOffHeapBuffer()
795ByteArray::Cast(typedArray->GetViewedArrayBufferOrByteArray().GetTaggedObject())->GetData())); in GetSharedOffHeapBuffer()
Djs_hclass-inl.h254 size = ByteArray::ComputeSize(reinterpret_cast<ByteArray *>(header)->GetByteLength(), in SizeFromJSHClass()
255 reinterpret_cast<ByteArray *>(header)->GetArrayLength()); in SizeFromJSHClass()
Decma_string_table.cpp576 JSMutableHandle<ByteArray> newData(vm->GetJSThread(), JSTaggedValue::Undefined()); in RelocateConstantData()
Ddump.cpp811 ByteArray::Cast(obj)->Dump(os); in DumpObject()
2544 void ByteArray::Dump(std::ostream &os) const in Dump()
4050 ByteArray::Cast(obj)->DumpForSnapshot(vec); in DumpObject()
5255 void ByteArray::DumpForSnapshot(std::vector<Reference> &vec) const in DumpForSnapshot()
Dobject_factory.h394 JSHandle<ByteArray> NewByteArray(uint32_t length, uint32_t size, void *srcData = nullptr,
Dobject_factory.cpp2865 JSHandle<ByteArray> ObjectFactory::NewByteArray(uint32_t length, uint32_t size, void *srcData, in NewByteArray()
2868 size_t byteSize = ByteArray::ComputeSize(size, length); in NewByteArray()
2871 JSHandle<ByteArray> array(thread_, header); in NewByteArray()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_sendable_arraybuffer.cpp295 JSHandle<ByteArray> byteArrayBuf(srcBuffer); in CloneArrayBuffer()
335 …return reinterpret_cast<void *>(ToUintPtr(ByteArray::Cast(arrBuf.GetTaggedObject())->GetData()) + … in GetDataPointFromBuffer()
Dbuiltins_arraybuffer.cpp298 JSHandle<ByteArray> byteArrayBuf(srcBuffer); in CloneArrayBuffer()
774 …return reinterpret_cast<void *>(ToUintPtr(ByteArray::Cast(arrBuf.GetTaggedObject())->GetData()) + … in GetDataPointFromBuffer()
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_sendable_arraybuffer_test.cpp258 JSHandle<ByteArray> byteArray = factory->NewByteArray(5, 8); in HWTEST_F_L0()
329 JSHandle<ByteArray> byteArray = factory->NewByteArray(5, 8); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi.cpp68 using ecmascript::ByteArray;
Djsnapi_expo.cpp49 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/mem/
Dobject_xray.h399 ByteArray::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dnew_object_stub_builder.cpp2403 auto startOffset = Int32(ByteArray::DATA_OFFSET); in NewByteArray()
2408 …Store(VariableType::INT32(), glue_, result->ReadVariable(), IntPtr(ByteArray::ARRAY_LENGTH_OFFSET)… in NewByteArray()
2409 …Store(VariableType::INT32(), glue_, result->ReadVariable(), IntPtr(ByteArray::BYTE_LENGTH_OFFSET),… in NewByteArray()
Dtyped_hcr_lowering.cpp1173 GateRef data = builder_.PtrAdd(byteArray, builder_.IntPtr(ByteArray::DATA_OFFSET)); in BuildOnHeapTypedArrayLoadElement()
1203 data = builder_.PtrAdd(byteArrayOrArrayBuffer, builder_.IntPtr(ByteArray::DATA_OFFSET)); in BuildTypedArrayLoadElement()
1359 GateRef data = builder_.PtrAdd(byteArray, builder_.IntPtr(ByteArray::DATA_OFFSET)); in BuildOnHeapTypedArrayStoreElement()
1386 data = builder_.PtrAdd(byteArrayOrArrayBuffer, builder_.IntPtr(ByteArray::DATA_OFFSET)); in BuildTypedArrayStoreElement()
Dstub_builder-inl.h3700 return PtrAdd(IntPtr(ByteArray::DATA_OFFSET), PtrMul(elementSize, length)); in ComputeTaggedTypedArraySize()
Dtyped_native_inline_lowering.cpp1371 …r = builder_.Load(VariableType::NATIVE_POINTER(), buffer, builder_.IntPtr(ByteArray::DATA_OFFSET)); in LowerDataViewProtoFunc()
/arkcompiler/ets_runtime/ecmascript/serializer/tests/
Dserializer_test.cpp789 JSHandle<ByteArray> resByteArray(byteArray); in TypedArrayTest2()
2218 JSHandle<ByteArray> byteArray = factory->NewByteArray(byteArrayLength, sizeof(value)); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/tests/
Djs_metadata_test.cpp426 {JSType::BYTE_ARRAY, {ByteArray::LAST_OFFSET - ByteArray::ARRAY_LENGTH_OFFSET}}, in JSMetadataTestHelper()
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
Dbuiltins_typedarray_stub_builder.cpp39 … result = ChangeByteArrayTaggedPointerToInt64(PtrAdd(arrBuf, IntPtr(ByteArray::DATA_OFFSET))); in GetDataPointFromBuffer()