/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
D | builtins_sharedarraybuffer_test.cpp | 76 JSArrayBuffer *CreateJSArrayBuffer(JSThread *thread) in CreateJSArrayBuffer() 81 JSHandle<JSArrayBuffer> jsArrayBuffer = in CreateJSArrayBuffer() 82 …JSHandle<JSArrayBuffer>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(target), targ… in CreateJSArrayBuffer() 106 …JSHandle<JSArrayBuffer> arrBuf(thread, JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(tagged… in HWTEST_F_L0() 120 …JSHandle<JSArrayBuffer> arrBuf(thread, JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(tagged… in HWTEST_F_L0() 130 JSHandle<JSArrayBuffer> arrBuf1(thread, in HWTEST_F_L0() 131 … JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(result1.GetRawData()))); in HWTEST_F_L0() 142 JSHandle<JSArrayBuffer> arrBuf2(thread, JSArrayBuffer::Cast( in HWTEST_F_L0() 162 JSHandle<JSArrayBuffer> arrBuf(thread, in HWTEST_F_L0() 163 … JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawData()))); in HWTEST_F_L0() [all …]
|
D | builtins_arraybuffer_test.cpp | 96 …JSHandle<JSArrayBuffer> arrBuf(thread, JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(tagged… in HWTEST_F_L0() 111 …JSHandle<JSArrayBuffer> arrBuf(thread, JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(tagged… in HWTEST_F_L0() 121 JSHandle<JSArrayBuffer> arrBuf1(thread, in HWTEST_F_L0() 122 … JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(result1.GetRawData()))); in HWTEST_F_L0()
|
D | builtins_dataview_test.cpp | 83 …JSHandle<JSArrayBuffer> arrBuf(thread, JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(tagged… in CreateBuiltinsDataView() 134 …JSHandle<JSArrayBuffer> arrBuf(thread, JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(tagged… in HWTEST_F_L0() 178 …JSHandle<JSArrayBuffer> arrBuf(thread, JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(tagged… in HWTEST_F_L0() 209 …JSHandle<JSArrayBuffer> arrBuf(thread, JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(tagged… in HWTEST_F_L0() 573 …JSHandle<JSArrayBuffer> arrBuf(thread, JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(tagged… in HWTEST_F_L0() 595 …JSHandle<JSArrayBuffer> arrBuf(thread, JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(tagged… in HWTEST_F_L0()
|
D | builtins_atomics_test.cpp | 220 JSTypedArray *CreateInt32TypedArray(JSThread *thread, const JSHandle<JSArrayBuffer> &arrBuf) in CreateInt32TypedArray() 526 …JSHandle<JSArrayBuffer> arrBuf(thread, JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(tagged… in HWTEST_F_L0() 900 …JSHandle<JSArrayBuffer> arrBuf(thread, JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(tagged… in HWTEST_F_L0() 931 …JSHandle<JSArrayBuffer> arrBuf(thread, JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(tagged… in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/ |
D | js_arraybuffer.cpp | 29 void JSArrayBuffer::CopyDataBlockBytes(JSTaggedValue toBlock, JSTaggedValue fromBlock, int32_t from… in CopyDataBlockBytes() 36 void JSArrayBuffer::CopyDataPointBytes(void *toBuf, void *fromBuf, int32_t fromIndex, int32_t count) in CopyDataPointBytes() 46 void JSArrayBuffer::Attach(JSThread *thread, uint32_t arrayBufferByteLength, in Attach() 62 void JSArrayBuffer::Detach(JSThread *thread, bool transferWithNativeAreaAllocator) in Detach()
|
D | js_arraybuffer.h | 22 class JSArrayBuffer final : public JSObject { 24 CAST_NO_CHECK(JSArrayBuffer);
|
D | object_factory.h | 71 class JSArrayBuffer; variable 483 void NewJSArrayBufferData(const JSHandle<JSArrayBuffer> &array, int32_t length); 485 JSHandle<JSArrayBuffer> NewJSArrayBuffer(int32_t length); 487 …JSHandle<JSArrayBuffer> NewJSArrayBuffer(void *buffer, int32_t length, const DeleteEntryPoint &del… 490 …JSHandle<JSDataView> NewJSDataView(JSHandle<JSArrayBuffer> buffer, uint32_t offset, uint32_t lengt… 492 void NewJSSharedArrayBufferData(const JSHandle<JSArrayBuffer> &array, int32_t length); 494 JSHandle<JSArrayBuffer> NewJSSharedArrayBuffer(int32_t length); 496 JSHandle<JSArrayBuffer> NewJSSharedArrayBuffer(void *buffer, int32_t length);
|
D | js_typed_array.cpp | 725 … JSHandle<JSArrayBuffer> arrayBuffer = thread->GetEcmaVM()->GetFactory()->NewJSArrayBuffer(length); in GetOffHeapBuffer() 733 JSArrayBuffer::CopyDataPointBytes(toBuf, fromBuf, 0, length); in GetOffHeapBuffer()
|
D | object_factory.cpp | 233 void ObjectFactory::NewJSArrayBufferData(const JSHandle<JSArrayBuffer> &array, int32_t length) in NewJSArrayBufferData() 267 void ObjectFactory::NewJSSharedArrayBufferData(const JSHandle<JSArrayBuffer> &array, int32_t length) in NewJSSharedArrayBufferData() 285 JSHandle<JSArrayBuffer> ObjectFactory::NewJSArrayBuffer(int32_t length) in NewJSArrayBuffer() 290 JSHandle<JSArrayBuffer> arrayBuffer(NewJSObjectByConstructor(constructor)); in NewJSArrayBuffer() 308 JSHandle<JSArrayBuffer> ObjectFactory::NewJSArrayBuffer(void *buffer, int32_t length, const DeleteE… in NewJSArrayBuffer() 314 JSHandle<JSArrayBuffer> arrayBuffer(NewJSObjectByConstructor(constructor)); in NewJSArrayBuffer() 327 JSHandle<JSDataView> ObjectFactory::NewJSDataView(JSHandle<JSArrayBuffer> buffer, uint32_t offset, … in NewJSDataView() 345 JSHandle<JSArrayBuffer> ObjectFactory::NewJSSharedArrayBuffer(int32_t length) in NewJSSharedArrayBuffer() 350 JSHandle<JSArrayBuffer> sharedArrayBuffer(NewJSObjectByConstructor(constructor)); in NewJSSharedArrayBuffer() 359 JSHandle<JSArrayBuffer> ObjectFactory::NewJSSharedArrayBuffer(void *buffer, int32_t length) in NewJSSharedArrayBuffer() [all …]
|
D | ecma_vm.h | 77 class JSArrayBuffer; variable
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_sharedarraybuffer.cpp | 68 JSHandle<JSArrayBuffer> buffer(arg); in IsSharedArrayBuffer() 86 JSArrayBuffer *buffer = JSArrayBuffer::Cast(arrayBuffer.GetTaggedObject()); in IsShared() 115 JSHandle<JSArrayBuffer> sharedArrayBuffer(obj); in AllocateSharedArrayBuffer() 150 JSHandle<JSArrayBuffer> shaArrBuf(thisHandle); in GetByteLength() 172 JSHandle<JSArrayBuffer> shaArrBuf(thisHandle); in Slice() 240 JSHandle<JSArrayBuffer> newJsShaArrBuf(newArrBuf); in Slice() 252 JSArrayBuffer::CopyDataBlockBytes(to, from, first, newLen); in Slice()
|
D | builtins_arraybuffer.cpp | 111 JSHandle<JSArrayBuffer> arrBuf(thisHandle); in GetByteLength() 132 JSHandle<JSArrayBuffer> arrBuf(thisHandle); in Slice() 205 JSHandle<JSArrayBuffer> newJsArrBuf(newArrBuf); in Slice() 222 JSArrayBuffer::CopyDataPointBytes(toBuf, fromBuf, first, newLen); in Slice() 248 JSHandle<JSArrayBuffer> arrayBuffer(obj); in AllocateArrayBuffer() 265 JSArrayBuffer *buffer = JSArrayBuffer::Cast(arrayBuffer.GetTaggedObject()); in IsDetachedBuffer() 296 JSHandle<JSArrayBuffer> arrBuf(srcBuffer); in CloneArrayBuffer() 311 JSHandle<JSArrayBuffer> newArrBuf(thread, taggedBuf); in CloneArrayBuffer() 317 JSArrayBuffer::CopyDataPointBytes(toBuf, fromBuf, srcByteOffset, cloneLen); in CloneArrayBuffer() 752 JSArrayBuffer *arrayBuffer = JSArrayBuffer::Cast(arrBuf.GetTaggedObject()); in GetDataPointFromBuffer()
|
D | builtins_ark_tools.cpp | 662 JSHandle<JSArrayBuffer> arrBuf = JSHandle<JSArrayBuffer>::Cast(obj1); in ArrayBufferDetach()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_dataview_test.cpp | 90 JSHandle<JSArrayBuffer> handleArrayBuf( in HWTEST_F_L0() 125 JSHandle<JSArrayBuffer> handleArrayBuf1( in HWTEST_F_L0() 127 JSHandle<JSArrayBuffer> handleArrayBuf2( in HWTEST_F_L0() 166 JSHandle<JSArrayBuffer> handleArrayBuf( in HWTEST_F_L0() 199 JSHandle<JSArrayBuffer> handleArrayBuf( in HWTEST_F_L0()
|
D | js_array_buffer_test.cpp | 76 … JSArrayBuffer::CopyDataBlockBytes(JSHandle<JSTaggedValue>::Cast(toNativePointer).GetTaggedValue(), in HWTEST_F_L0() 110 JSHandle<JSArrayBuffer> arrBuf = factory->NewJSArrayBuffer(5); in HWTEST_F_L0()
|
D | js_serializer_test.cpp | 513 … const JSHandle<JSArrayBuffer> &originArrayBuffer, int32_t byteLength, const char *msg) in JSArrayBufferTest() 520 JSHandle<JSArrayBuffer> resJSArrayBuffer = JSHandle<JSArrayBuffer>::Cast(res); in JSArrayBufferTest() 546 … const JSHandle<JSArrayBuffer> &originArrayBuffer, int32_t byteLength, const char *msg) in JSSharedArrayBufferTest() 553 JSHandle<JSArrayBuffer> resJSArrayBuffer = JSHandle<JSArrayBuffer>::Cast(res); in JSSharedArrayBufferTest() 584 JSHandle<JSArrayBuffer> resJSArrayBuffer = JSHandle<JSArrayBuffer>::Cast(res); in JSSharedArrayBufferTest1() 657 JSHandle<JSArrayBuffer> resJSArrayBuffer(viewedArrayBuffer); in TypedArrayTest1() 882 JSHandle<JSArrayBuffer> arrBuf = JSHandle<JSArrayBuffer>::Cast(res); in TransferJSArrayBufferTest1() 901 JSHandle<JSArrayBuffer> arrBuf = JSHandle<JSArrayBuffer>::Cast(res); in TransferJSArrayBufferTest2() 920 JSHandle<JSArrayBuffer> arrBuf = JSHandle<JSArrayBuffer>::Cast(res); in TransferJSArrayBufferTest3() 935 JSHandle<JSArrayBuffer> arrBuf = JSHandle<JSArrayBuffer>::Cast(res); in TransferJSArrayBufferTest4() [all …]
|
/arkcompiler/ets_runtime/ecmascript/serializer/ |
D | value_serializer.cpp | 223 JSArrayBuffer *arrayBuffer = reinterpret_cast<JSArrayBuffer *>(object); in SerializeObjectImpl() 290 JSArrayBuffer *arrayBuffer = reinterpret_cast<JSArrayBuffer *>(object); in SerializeJSArrayBufferPrologue() 326 JSArrayBuffer *arrayBuffer = reinterpret_cast<JSArrayBuffer *>(object); in SerializeJSSharedArrayBufferPrologue()
|
D | base_deserializer.cpp | 260 JSArrayBuffer *arrayBuffer = reinterpret_cast<JSArrayBuffer *>(objAddr); in TransferArrayBufferAttach() 274 JSArrayBuffer *arrayBuffer = reinterpret_cast<JSArrayBuffer *>(objAddr); in ResetNativePointerBuffer()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | typed_array_stub_builder.h | 62 GateRef offset = IntPtr(JSArrayBuffer::DATA_OFFSET); in GetArrayBufferData() 68 GateRef offset = IntPtr(JSArrayBuffer::BYTE_LENGTH_OFFSET); in GetArrayBufferByteLength()
|
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
D | atomic_helper_test.cpp | 61 JSHandle<JSArrayBuffer> buffer = factory->NewJSArrayBuffer(bufferSize); in HWTEST_F_L0() 81 JSHandle<JSArrayBuffer> buffer = factory->NewJSArrayBuffer(bufferSize); in HWTEST_F_L0() 111 JSHandle<JSArrayBuffer> buffer = factory->NewJSArrayBuffer(bufferSize); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/serializer/tests/ |
D | serializer_test.cpp | 522 … const JSHandle<JSArrayBuffer> &originArrayBuffer, int32_t byteLength, const char *msg) in JSSharedArrayBufferTest() 529 JSHandle<JSArrayBuffer> resJSArrayBuffer = JSHandle<JSArrayBuffer>::Cast(res); in JSSharedArrayBufferTest() 614 JSHandle<JSArrayBuffer> resJSArrayBuffer(viewedArrayBuffer); in TypedArrayTest1() 837 JSHandle<JSArrayBuffer> arrBuf = JSHandle<JSArrayBuffer>::Cast(res); in TransferJSArrayBufferTest1() 858 JSHandle<JSArrayBuffer> arrBuf = JSHandle<JSArrayBuffer>::Cast(res); in TransferJSArrayBufferTest2() 880 JSHandle<JSArrayBuffer> arrBuf = JSHandle<JSArrayBuffer>::Cast(res); in TransferJSArrayBufferTest3() 1538 JSArrayBuffer *CreateJSArrayBuffer(JSThread *thread) in CreateJSArrayBuffer() 1543 JSHandle<JSArrayBuffer> jsArrayBuffer = in CreateJSArrayBuffer() 1544 …JSHandle<JSArrayBuffer>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(target), targ… in CreateJSArrayBuffer() 1619 JSHandle<JSArrayBuffer> arrBuf = factory->NewJSArrayBuffer(buffer, in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_runtime/test/aottest/tryldglobalbyname_global_object/ |
D | tryldglobalbyname_global_object.ts | 486 function JSArrayBuffer() { function 717 JSArrayBuffer();
|
/arkcompiler/ets_runtime/ecmascript/napi/ |
D | jsnapi.cpp | 121 using ecmascript::JSArrayBuffer; 207 …JSHandle<JSArrayBuffer> arrayBuffer(JSNApiHelper::ToJSHandle(buffer)); \
|
D | jsnapi_expo.cpp | 119 using ecmascript::JSArrayBuffer; 806 JSHandle<JSArrayBuffer> buffer(JSNApiHelper::ToJSHandle(arrayBuffer)); in New() 1087 …JSHandle<JSArrayBuffer> arrayBuffer = JSHandle<JSArrayBuffer>::Cast(factory->NewJSArrayBuffer(leng… in New() 1108 JSHandle<JSArrayBuffer> arrayBuffer = in New() 1129 JSHandle<JSArrayBuffer> arrayBuffer(JSNApiHelper::ToJSHandle(this)); in ByteLength() 1136 JSHandle<JSArrayBuffer> arrayBuffer(JSNApiHelper::ToJSHandle(this)); in GetBuffer() 1150 JSHandle<JSArrayBuffer> arrayBuffer(arrayBuff); in BufferToStringCallback() 1951 JSHandle<JSArrayBuffer> arrayBuffer = factory->NewJSArrayBuffer(length); in New() 1960 JSHandle<JSArrayBuffer> arrayBuffer = in New() 1968 JSHandle<JSArrayBuffer> arrayBuffer(JSNApiHelper::ToJSHandle(this)); in ByteLength() [all …]
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
D | object_xray.h | 297 JSArrayBuffer::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody() 300 JSArrayBuffer::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody()
|