Home
last modified time | relevance | path

Searched refs:JSArrayBuffer (Results 1 – 25 of 35) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_sharedarraybuffer_test.cpp76 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()
131JSArrayBuffer::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()
163JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawData()))); in HWTEST_F_L0()
[all …]
Dbuiltins_arraybuffer_test.cpp96 …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()
122JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(result1.GetRawData()))); in HWTEST_F_L0()
Dbuiltins_dataview_test.cpp83 …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()
Dbuiltins_atomics_test.cpp220 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/
Djs_arraybuffer.cpp29 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()
Djs_arraybuffer.h22 class JSArrayBuffer final : public JSObject {
24 CAST_NO_CHECK(JSArrayBuffer);
Dobject_factory.h71 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);
Djs_typed_array.cpp725 … JSHandle<JSArrayBuffer> arrayBuffer = thread->GetEcmaVM()->GetFactory()->NewJSArrayBuffer(length); in GetOffHeapBuffer()
733 JSArrayBuffer::CopyDataPointBytes(toBuf, fromBuf, 0, length); in GetOffHeapBuffer()
Dobject_factory.cpp233 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 …]
Decma_vm.h77 class JSArrayBuffer; variable
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_sharedarraybuffer.cpp68 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()
Dbuiltins_arraybuffer.cpp111 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()
Dbuiltins_ark_tools.cpp662 JSHandle<JSArrayBuffer> arrBuf = JSHandle<JSArrayBuffer>::Cast(obj1); in ArrayBufferDetach()
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_dataview_test.cpp90 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()
Djs_array_buffer_test.cpp76JSArrayBuffer::CopyDataBlockBytes(JSHandle<JSTaggedValue>::Cast(toNativePointer).GetTaggedValue(), in HWTEST_F_L0()
110 JSHandle<JSArrayBuffer> arrBuf = factory->NewJSArrayBuffer(5); in HWTEST_F_L0()
Djs_serializer_test.cpp513 … 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/
Dvalue_serializer.cpp223 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()
Dbase_deserializer.cpp260 JSArrayBuffer *arrayBuffer = reinterpret_cast<JSArrayBuffer *>(objAddr); in TransferArrayBufferAttach()
274 JSArrayBuffer *arrayBuffer = reinterpret_cast<JSArrayBuffer *>(objAddr); in ResetNativePointerBuffer()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dtyped_array_stub_builder.h62 GateRef offset = IntPtr(JSArrayBuffer::DATA_OFFSET); in GetArrayBufferData()
68 GateRef offset = IntPtr(JSArrayBuffer::BYTE_LENGTH_OFFSET); in GetArrayBufferByteLength()
/arkcompiler/ets_runtime/ecmascript/base/tests/
Datomic_helper_test.cpp61 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/
Dserializer_test.cpp522 … 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/
Dtryldglobalbyname_global_object.ts486 function JSArrayBuffer() { function
717 JSArrayBuffer();
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi.cpp121 using ecmascript::JSArrayBuffer;
207 …JSHandle<JSArrayBuffer> arrayBuffer(JSNApiHelper::ToJSHandle(buffer)); \
Djsnapi_expo.cpp119 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/
Dobject_xray.h297 JSArrayBuffer::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody()
300 JSArrayBuffer::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody()

12