Home
last modified time | relevance | path

Searched refs:BuiltinsArrayBuffer (Results 1 – 25 of 27) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_arraybuffer.cpp37 JSTaggedValue BuiltinsArrayBuffer::ArrayBufferConstructor(EcmaRuntimeCallInfo *argv) in ArrayBufferConstructor()
56 JSTaggedValue BuiltinsArrayBuffer::IsView(EcmaRuntimeCallInfo *argv) in IsView()
65 return BuiltinsArrayBuffer::GetTaggedBoolean(false); in IsView()
69 return BuiltinsArrayBuffer::GetTaggedBoolean(true); in IsView()
72 return BuiltinsArrayBuffer::GetTaggedBoolean(false); in IsView()
76 JSTaggedValue BuiltinsArrayBuffer::Species(EcmaRuntimeCallInfo *argv) in Species()
84 JSTaggedValue BuiltinsArrayBuffer::GetByteLength(EcmaRuntimeCallInfo *argv) in GetByteLength()
113 JSTaggedValue BuiltinsArrayBuffer::Slice(EcmaRuntimeCallInfo *argv) in Slice()
223 JSTaggedValue BuiltinsArrayBuffer::AllocateArrayBuffer(JSThread *thread, const JSHandle<JSTaggedVal… in AllocateArrayBuffer()
252 bool BuiltinsArrayBuffer::IsDetachedBuffer(JSTaggedValue arrayBuffer) in IsDetachedBuffer()
[all …]
Dbuiltins_dataview.cpp62 if (BuiltinsArrayBuffer::IsDetachedBuffer(bufferHandle.GetTaggedValue())) { in DataViewConstructor()
152 if (BuiltinsArrayBuffer::IsDetachedBuffer(buffer)) { in GetByteLength()
182 if (BuiltinsArrayBuffer::IsDetachedBuffer(buffer)) { in GetOffset()
384 if (BuiltinsArrayBuffer::IsDetachedBuffer(buffer)) { in GetViewValue()
400 … return BuiltinsArrayBuffer::GetValueFromBuffer(thread, buffer, bufferIndex, type, isLittleEndian); in GetViewValue()
440 if (BuiltinsArrayBuffer::IsDetachedBuffer(buffer)) { in SetViewValue()
456 …return BuiltinsArrayBuffer::SetValueInBuffer(thread, buffer, bufferIndex, type, numValueHandle, is… in SetViewValue()
Dbuiltins_typedarray.cpp41 using BuiltinsArrayBuffer = builtins::BuiltinsArrayBuffer; typedef
409 if (BuiltinsArrayBuffer::IsDetachedBuffer(buffer)) { in GetByteLength()
439 if (BuiltinsArrayBuffer::IsDetachedBuffer(buffer)) { in GetByteOffset()
891 if (BuiltinsArrayBuffer::IsDetachedBuffer(buffer)) { in GetLength()
1051 if (BuiltinsArrayBuffer::IsDetachedBuffer(targetBuffer.GetTaggedValue())) { in Set()
1128 if (BuiltinsArrayBuffer::IsDetachedBuffer(targetBuffer.GetTaggedValue())) { in Set()
1138BuiltinsArrayBuffer::SetValueInBuffer(thread, targetBuffer.GetTaggedValue(), targetByteIndex, in Set()
1154 if (BuiltinsArrayBuffer::IsDetachedBuffer(srcBuffer)) { in Set()
1191BuiltinsArrayBuffer::CloneArrayBuffer(thread, targetBuffer, srcByteOffset, env->GetArrayBufferFunc… in Set()
1217 BuiltinsArrayBuffer::GetValueFromBuffer(thread, srcBufferHandle.GetTaggedValue(), in Set()
[all …]
Dbuiltins_atomics.cpp26 using BuiltinsArrayBuffer = builtins::BuiltinsArrayBuffer; typedef
293 if (BuiltinsArrayBuffer::IsDetachedBuffer(buffer.GetTaggedValue())) { in AtomicReadModifyWrite()
312 void *pointer = BuiltinsArrayBuffer::GetDataPointFromBuffer(arrBuf); in AtomicReadModifyWriteCase()
521 void *buffer = BuiltinsArrayBuffer::GetDataPointFromBuffer(arrayBuffer.GetTaggedValue()); in DoWait()
568 void *buffer = BuiltinsArrayBuffer::GetDataPointFromBuffer(arrayBuffer.GetTaggedValue()); in Signal()
Dbuiltins_arraybuffer.h39 class BuiltinsArrayBuffer : public base::BuiltinsBase {
/arkcompiler/ets_runtime/ecmascript/base/
Datomic_helper.cpp20 using BuiltinsArrayBuffer = builtins::BuiltinsArrayBuffer; typedef
48 if (!(BuiltinsArrayBuffer::IsUnclampedIntegerElementType(type) || in ValidateIntegerTypedArray()
49 BuiltinsArrayBuffer::IsBigIntElementType(type))) { in ValidateIntegerTypedArray()
116 if (BuiltinsArrayBuffer::IsDetachedBuffer(buffer.GetTaggedValue())) { in AtomicStore()
120BuiltinsArrayBuffer::SetValueInBuffer(thread, buffer.GetTaggedValue(), indexedPosition, type, buff… in AtomicStore()
132 if (BuiltinsArrayBuffer::IsDetachedBuffer(buffer.GetTaggedValue())) { in AtomicLoad()
139 return BuiltinsArrayBuffer::GetValueFromBuffer(thread, buffer.GetTaggedValue(), in AtomicLoad()
Dtyped_array_helper.cpp38 using BuiltinsArrayBuffer = builtins::BuiltinsArrayBuffer; typedef
217 if (BuiltinsArrayBuffer::IsDetachedBuffer(srcData.GetTaggedValue())) { in CreateFromTypedArray()
246BuiltinsArrayBuffer::CloneArrayBuffer(thread, srcData, srcByteOffset, globalConst->GetHandledUndef… in CreateFromTypedArray()
255 …JSTaggedValue tmp = BuiltinsArrayBuffer::AllocateArrayBuffer(thread, bufferConstructor, byteLength… in CreateFromTypedArray()
259 if (BuiltinsArrayBuffer::IsDetachedBuffer(srcData.GetTaggedValue())) { in CreateFromTypedArray()
278BuiltinsArrayBuffer::GetValueFromBuffer(thread, srcData.GetTaggedValue(), srcByteIndex, srcType, t… in CreateFromTypedArray()
281 BuiltinsArrayBuffer::SetValueInBuffer(thread, data.GetTaggedValue(), in CreateFromTypedArray()
335 if (BuiltinsArrayBuffer::IsDetachedBuffer(buffer.GetTaggedValue())) { in CreateFromArrayBuffer()
460 data = BuiltinsArrayBuffer::AllocateArrayBuffer(thread, constructor, byteLength); in AllocateTypedArrayBuffer()
579 if (BuiltinsArrayBuffer::IsDetachedBuffer(buffer)) { in ValidateTypedArray()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/builtinsarraybuffergetvaluefrombufferforinteger_fuzzer/
Dbuiltinsarraybuffergetvaluefrombufferforinteger_fuzzer.cpp55 …JSTaggedValue arrayBuffer = BuiltinsArrayBuffer::AllocateArrayBuffer(thread, bufferConstructor, MA… in BuiltinsArrayBufferGetValueFromBufferForIntegerFuzzTest()
59BuiltinsArrayBuffer::SetValueInBuffer(thread, arrayBuffer, 0, DataViewType::UINT16, val, false); in BuiltinsArrayBufferGetValueFromBufferForIntegerFuzzTest()
60BuiltinsArrayBuffer::GetValueFromBuffer(thread, arrayBuffer, 0, DataViewType::UINT16, false); in BuiltinsArrayBufferGetValueFromBufferForIntegerFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/builtinsarraybuffergetvaluefrombufferforfloat_fuzzer/
Dbuiltinsarraybuffergetvaluefrombufferforfloat_fuzzer.cpp59 …JSTaggedValue arrayBuffer = BuiltinsArrayBuffer::AllocateArrayBuffer(thread, bufferConstructor, MA… in BuiltinsArrayBufferGetValueFromBufferForFloatFuzzTest()
62BuiltinsArrayBuffer::SetValueInBuffer(thread, arrayBuffer, 0, DataViewType::FLOAT64, val, false); in BuiltinsArrayBufferGetValueFromBufferForFloatFuzzTest()
63BuiltinsArrayBuffer::GetValueFromBuffer(thread, arrayBuffer, 0, DataViewType::FLOAT64, false); in BuiltinsArrayBufferGetValueFromBufferForFloatFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/builtinsarraybuffergetvaluefrombufferforbigint_fuzzer/
Dbuiltinsarraybuffergetvaluefrombufferforbigint_fuzzer.cpp53 BuiltinsArrayBuffer::AllocateArrayBuffer(thread, bufferConstructor, sizeof(uint64_t)); in BuiltinsArrayBufferGetValueFromBufferForBigIntFuzzTest()
56BuiltinsArrayBuffer::SetValueInBuffer(thread, arrayBuffer, 0, DataViewType::BIGUINT64, val, true); in BuiltinsArrayBufferGetValueFromBufferForBigIntFuzzTest()
57BuiltinsArrayBuffer::GetValueFromBuffer(thread, arrayBuffer, 0, DataViewType::BIGUINT64, true); in BuiltinsArrayBufferGetValueFromBufferForBigIntFuzzTest()
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_arraybuffer_test.cpp70 JSTaggedValue result = BuiltinsArrayBuffer::ArrayBufferConstructor(ecmaRuntimeCallInfo); in CreateBuiltinsArrayBuffer()
87 JSTaggedValue result = BuiltinsArrayBuffer::ArrayBufferConstructor(ecmaRuntimeCallInfo); in HWTEST_F_L0()
102 JSTaggedValue result = BuiltinsArrayBuffer::GetByteLength(ecmaRuntimeCallInfo); in HWTEST_F_L0()
119 JSTaggedValue result1 = BuiltinsArrayBuffer::Slice(ecmaRuntimeCallInfo); in HWTEST_F_L0()
127 JSTaggedValue result2 = BuiltinsArrayBuffer::GetByteLength(ecmaRuntimeCallInfo1); in HWTEST_F_L0()
Dbuiltins_sharedarraybuffer_test.cpp29 using BuiltinsArrayBuffer = builtins::BuiltinsArrayBuffer; typedef
Dbuiltins_dataview_test.cpp72 JSTaggedValue result = BuiltinsArrayBuffer::ArrayBufferConstructor(ecmaRuntimeCallInfo); in CreateBuiltinsDataviewArrayBuffer()
109 JSTaggedValue result = BuiltinsArrayBuffer::ArrayBufferConstructor(ecmaRuntimeCallInfo); in CreateArrayBuffer()
/arkcompiler/ets_runtime/ecmascript/
Dbyte_array.cpp26 builtins::BuiltinsArrayBuffer::SetValueInBuffer(thread, idx * GetByteLength(), block, in Set()
34 …return builtins::BuiltinsArrayBuffer::GetValueFromBuffer(thread, idx * GetByteLength(), block, typ… in Get()
Djs_typed_array.cpp24 using BuiltinsArrayBuffer = builtins::BuiltinsArrayBuffer; typedef
94 if (BuiltinsArrayBuffer::IsDetachedBuffer(buffer)) { in HasProperty()
380 if (BuiltinsArrayBuffer::IsDetachedBuffer(buffer)) { in IntegerIndexedElementGet()
417 …JSTaggedValue result = BuiltinsArrayBuffer::GetValueFromBuffer(thread, buffer, byteIndex, elementT… in IntegerIndexedElementGet()
428 if (BuiltinsArrayBuffer::IsDetachedBuffer(buffer)) { in IsValidIntegerIndex()
498 if (BuiltinsArrayBuffer::IsDetachedBuffer(bufferHandle.GetTaggedValue())) { in FastCopyElementToArray()
516 …JSTaggedValue result = BuiltinsArrayBuffer::GetValueFromBuffer(thread, bufferHandle.GetTaggedValue… in FastCopyElementToArray()
534 if (BuiltinsArrayBuffer::IsDetachedBuffer(buffer)) { in FastElementGet()
554 …JSTaggedValue result = BuiltinsArrayBuffer::GetValueFromBuffer(thread, buffer, byteIndex, elementT… in FastElementGet()
595BuiltinsArrayBuffer::SetValueInBuffer(thread, buffer, byteIndex, elementType, numValueHandle, true… in IntegerIndexedElementSet()
[all …]
Djs_stable_array.cpp32 using BuiltinsArrayBuffer = builtins::BuiltinsArrayBuffer; typedef
672 if (BuiltinsArrayBuffer::IsDetachedBuffer(targetBuffer.GetTaggedValue())) { in FastCopyFromArrayToTypedArray()
700BuiltinsArrayBuffer::SetValueInBuffer(thread, targetBuffer.GetTaggedValue(), targetByteIndex, in FastCopyFromArrayToTypedArray()
/arkcompiler/ets_runtime/test/fuzztest/builtinsarraybuffersetvalueinbufferforuint8clamped_fuzzer/
Dbuiltinsarraybuffersetvalueinbufferforuint8clamped_fuzzer.cpp56 BuiltinsArrayBuffer::AllocateArrayBuffer(thread, bufferConstructor, sizeof(uint8_t)); in BuiltinsArrayBufferSetValueInBufferForUint8ClampedFuzzTest()
59BuiltinsArrayBuffer::SetValueInBuffer(thread, arrayBuffer, 0, DataViewType::UINT8_CLAMPED, val, tr… in BuiltinsArrayBufferSetValueInBufferForUint8ClampedFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/builtinsarraybuffersetvalueinbufferforbyte_fuzzer/
Dbuiltinsarraybuffersetvalueinbufferforbyte_fuzzer.cpp55 …JSTaggedValue arrayBuffer = BuiltinsArrayBuffer::AllocateArrayBuffer(thread, bufferConstructor, MA… in BuiltinsArrayBufferSetValueInBufferForByteFuzzTest()
58BuiltinsArrayBuffer::SetValueInBuffer(thread, arrayBuffer, 0, DataViewType::UINT8, val, true); in BuiltinsArrayBufferSetValueInBufferForByteFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/builtinsarraybufferfastsetvalueinbuffer_fuzzer/
Dbuiltinsarraybufferfastsetvalueinbuffer_fuzzer.cpp55 …JSTaggedValue arrayBuffer = BuiltinsArrayBuffer::AllocateArrayBuffer(thread, bufferConstructor, MA… in BuiltinsArrayBufferFastSetValueInBufferFuzzTest()
58BuiltinsArrayBuffer::FastSetValueInBuffer(thread, arrayBuffer, 0, DataViewType::INT32, val, true); in BuiltinsArrayBufferFastSetValueInBufferFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/builtinsarraybufferclonearraybuffer_fuzzer/
Dbuiltinsarraybufferclonearraybuffer_fuzzer.cpp59 …JSTaggedValue arrayBuffer = BuiltinsArrayBuffer::AllocateArrayBuffer(thread, bufferConstructor, in… in BuiltinsArrayBufferCloneArrayBufferFuzzTest()
60 BuiltinsArrayBuffer::CloneArrayBuffer(thread, JSHandle<JSTaggedValue>(thread, arrayBuffer), in BuiltinsArrayBufferCloneArrayBufferFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/builtinsarraybufferallocatearraybuffer_fuzzer/
Dbuiltinsarraybufferallocatearraybuffer_fuzzer.cpp58 builtins::BuiltinsArrayBuffer::AllocateArrayBuffer(thread, bufferConstructor, input); in BuiltinsArrayBufferAllocateArrayBufferFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/builtinsarraybufferisview_fuzzer/
Dbuiltinsarraybufferisview_fuzzer.cpp72 builtins::BuiltinsArrayBuffer::IsView(ecmaRuntimeCallInfo); in BuiltinsArrayBufferIsViewFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/builtinsarraybufferarraybufferconstructor_fuzzer/
Dbuiltinsarraybufferarraybufferconstructor_fuzzer.cpp76 builtins::BuiltinsArrayBuffer::ArrayBufferConstructor(ecmaRuntimeCallInfo); in BuiltinsArrayBufferArrayBufferConstructorFuzzTest()
/arkcompiler/ets_runtime/ecmascript/base/tests/
Dtyped_array_helper_test.cpp423 EXPECT_FALSE(builtins::BuiltinsArrayBuffer::IsDetachedBuffer(buffer.GetTaggedValue())); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_serializer_test.cpp1536 BuiltinsArrayBuffer::SetValueInBuffer(thread, obj.GetTaggedValue(), 1, DataViewType::UINT8, in HWTEST_F_L0()
1539BuiltinsArrayBuffer::SetValueInBuffer(thread, obj.GetTaggedValue(), 3, DataViewType::UINT8, // 3:i… in HWTEST_F_L0()
1670 BuiltinsArrayBuffer::SetValueInBuffer(thread, obj.GetTaggedValue(), i, DataViewType::UINT8, in CreateTestJSArrayBuffer()

12