| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | byte_array_test.cpp | 38 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()
|
| D | dump_test.cpp | 966 JSHandle<ByteArray> byteArray = factory->NewByteArray(4, 8); in HWTEST_F_L0()
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | byte_array.h | 27 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);
|
| D | byte_array.cpp | 21 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()
|
| D | js_typed_array.cpp | 757 ByteArray *byteArray = ByteArray::Cast(arrBuf.GetTaggedObject()); in GetOffHeapBuffer() 763 … ByteArray::Cast(typedArray->GetViewedArrayBufferOrByteArray().GetTaggedObject())->GetData())); in GetOffHeapBuffer() 789 ByteArray *byteArray = ByteArray::Cast(arrBuf.GetTaggedObject()); in GetSharedOffHeapBuffer() 795 … ByteArray::Cast(typedArray->GetViewedArrayBufferOrByteArray().GetTaggedObject())->GetData())); in GetSharedOffHeapBuffer()
|
| D | js_hclass-inl.h | 254 size = ByteArray::ComputeSize(reinterpret_cast<ByteArray *>(header)->GetByteLength(), in SizeFromJSHClass() 255 reinterpret_cast<ByteArray *>(header)->GetArrayLength()); in SizeFromJSHClass()
|
| D | ecma_string_table.cpp | 576 JSMutableHandle<ByteArray> newData(vm->GetJSThread(), JSTaggedValue::Undefined()); in RelocateConstantData()
|
| D | dump.cpp | 811 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()
|
| D | object_factory.h | 394 JSHandle<ByteArray> NewByteArray(uint32_t length, uint32_t size, void *srcData = nullptr,
|
| D | object_factory.cpp | 2865 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/ |
| D | builtins_sendable_arraybuffer.cpp | 295 JSHandle<ByteArray> byteArrayBuf(srcBuffer); in CloneArrayBuffer() 335 …return reinterpret_cast<void *>(ToUintPtr(ByteArray::Cast(arrBuf.GetTaggedObject())->GetData()) + … in GetDataPointFromBuffer()
|
| D | builtins_arraybuffer.cpp | 298 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/ |
| D | builtins_sendable_arraybuffer_test.cpp | 258 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/ |
| D | jsnapi.cpp | 68 using ecmascript::ByteArray;
|
| D | jsnapi_expo.cpp | 49 using ecmascript::ByteArray;
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/mock/ |
| D | array_native_test.cpp | 109 TEST_F(EtsNativeInterfaceArrayTest, ByteArray) in TEST_F() argument
|
| /arkcompiler/ets_runtime/ecmascript/mem/ |
| D | object_xray.h | 399 ByteArray::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | new_object_stub_builder.cpp | 2403 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()
|
| D | typed_hcr_lowering.cpp | 1173 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()
|
| D | stub_builder-inl.h | 3700 return PtrAdd(IntPtr(ByteArray::DATA_OFFSET), PtrMul(elementSize, length)); in ComputeTaggedTypedArraySize()
|
| D | typed_native_inline_lowering.cpp | 1371 …r = builder_.Load(VariableType::NATIVE_POINTER(), buffer, builder_.IntPtr(ByteArray::DATA_OFFSET)); in LowerDataViewProtoFunc()
|
| /arkcompiler/ets_runtime/ecmascript/serializer/tests/ |
| D | serializer_test.cpp | 789 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/ |
| D | js_metadata_test.cpp | 426 {JSType::BYTE_ARRAY, {ByteArray::LAST_OFFSET - ByteArray::ARRAY_LENGTH_OFFSET}}, in JSMetadataTestHelper()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
| D | builtins_typedarray_stub_builder.cpp | 39 … result = ChangeByteArrayTaggedPointerToInt64(PtrAdd(arrBuf, IntPtr(ByteArray::DATA_OFFSET))); in GetDataPointFromBuffer()
|