/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_arraybuffer.cpp | 37 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 …]
|
D | builtins_dataview.cpp | 62 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()
|
D | builtins_typedarray.cpp | 41 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() 1138 … BuiltinsArrayBuffer::SetValueInBuffer(thread, targetBuffer.GetTaggedValue(), targetByteIndex, in Set() 1154 if (BuiltinsArrayBuffer::IsDetachedBuffer(srcBuffer)) { in Set() 1191 …BuiltinsArrayBuffer::CloneArrayBuffer(thread, targetBuffer, srcByteOffset, env->GetArrayBufferFunc… in Set() 1217 BuiltinsArrayBuffer::GetValueFromBuffer(thread, srcBufferHandle.GetTaggedValue(), in Set() [all …]
|
D | builtins_atomics.cpp | 26 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()
|
D | builtins_arraybuffer.h | 39 class BuiltinsArrayBuffer : public base::BuiltinsBase {
|
/arkcompiler/ets_runtime/ecmascript/base/ |
D | atomic_helper.cpp | 20 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() 120 …BuiltinsArrayBuffer::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()
|
D | typed_array_helper.cpp | 38 using BuiltinsArrayBuffer = builtins::BuiltinsArrayBuffer; typedef 217 if (BuiltinsArrayBuffer::IsDetachedBuffer(srcData.GetTaggedValue())) { in CreateFromTypedArray() 246 …BuiltinsArrayBuffer::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() 278 …BuiltinsArrayBuffer::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/ |
D | builtinsarraybuffergetvaluefrombufferforinteger_fuzzer.cpp | 55 …JSTaggedValue arrayBuffer = BuiltinsArrayBuffer::AllocateArrayBuffer(thread, bufferConstructor, MA… in BuiltinsArrayBufferGetValueFromBufferForIntegerFuzzTest() 59 … BuiltinsArrayBuffer::SetValueInBuffer(thread, arrayBuffer, 0, DataViewType::UINT16, val, false); in BuiltinsArrayBufferGetValueFromBufferForIntegerFuzzTest() 60 … BuiltinsArrayBuffer::GetValueFromBuffer(thread, arrayBuffer, 0, DataViewType::UINT16, false); in BuiltinsArrayBufferGetValueFromBufferForIntegerFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/builtinsarraybuffergetvaluefrombufferforfloat_fuzzer/ |
D | builtinsarraybuffergetvaluefrombufferforfloat_fuzzer.cpp | 59 …JSTaggedValue arrayBuffer = BuiltinsArrayBuffer::AllocateArrayBuffer(thread, bufferConstructor, MA… in BuiltinsArrayBufferGetValueFromBufferForFloatFuzzTest() 62 … BuiltinsArrayBuffer::SetValueInBuffer(thread, arrayBuffer, 0, DataViewType::FLOAT64, val, false); in BuiltinsArrayBufferGetValueFromBufferForFloatFuzzTest() 63 … BuiltinsArrayBuffer::GetValueFromBuffer(thread, arrayBuffer, 0, DataViewType::FLOAT64, false); in BuiltinsArrayBufferGetValueFromBufferForFloatFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/builtinsarraybuffergetvaluefrombufferforbigint_fuzzer/ |
D | builtinsarraybuffergetvaluefrombufferforbigint_fuzzer.cpp | 53 BuiltinsArrayBuffer::AllocateArrayBuffer(thread, bufferConstructor, sizeof(uint64_t)); in BuiltinsArrayBufferGetValueFromBufferForBigIntFuzzTest() 56 … BuiltinsArrayBuffer::SetValueInBuffer(thread, arrayBuffer, 0, DataViewType::BIGUINT64, val, true); in BuiltinsArrayBufferGetValueFromBufferForBigIntFuzzTest() 57 … BuiltinsArrayBuffer::GetValueFromBuffer(thread, arrayBuffer, 0, DataViewType::BIGUINT64, true); in BuiltinsArrayBufferGetValueFromBufferForBigIntFuzzTest()
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
D | builtins_arraybuffer_test.cpp | 70 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()
|
D | builtins_sharedarraybuffer_test.cpp | 29 using BuiltinsArrayBuffer = builtins::BuiltinsArrayBuffer; typedef
|
D | builtins_dataview_test.cpp | 72 JSTaggedValue result = BuiltinsArrayBuffer::ArrayBufferConstructor(ecmaRuntimeCallInfo); in CreateBuiltinsDataviewArrayBuffer() 109 JSTaggedValue result = BuiltinsArrayBuffer::ArrayBufferConstructor(ecmaRuntimeCallInfo); in CreateArrayBuffer()
|
/arkcompiler/ets_runtime/ecmascript/ |
D | byte_array.cpp | 26 builtins::BuiltinsArrayBuffer::SetValueInBuffer(thread, idx * GetByteLength(), block, in Set() 34 …return builtins::BuiltinsArrayBuffer::GetValueFromBuffer(thread, idx * GetByteLength(), block, typ… in Get()
|
D | js_typed_array.cpp | 24 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() 595 …BuiltinsArrayBuffer::SetValueInBuffer(thread, buffer, byteIndex, elementType, numValueHandle, true… in IntegerIndexedElementSet() [all …]
|
D | js_stable_array.cpp | 32 using BuiltinsArrayBuffer = builtins::BuiltinsArrayBuffer; typedef 672 if (BuiltinsArrayBuffer::IsDetachedBuffer(targetBuffer.GetTaggedValue())) { in FastCopyFromArrayToTypedArray() 700 … BuiltinsArrayBuffer::SetValueInBuffer(thread, targetBuffer.GetTaggedValue(), targetByteIndex, in FastCopyFromArrayToTypedArray()
|
/arkcompiler/ets_runtime/test/fuzztest/builtinsarraybuffersetvalueinbufferforuint8clamped_fuzzer/ |
D | builtinsarraybuffersetvalueinbufferforuint8clamped_fuzzer.cpp | 56 BuiltinsArrayBuffer::AllocateArrayBuffer(thread, bufferConstructor, sizeof(uint8_t)); in BuiltinsArrayBufferSetValueInBufferForUint8ClampedFuzzTest() 59 …BuiltinsArrayBuffer::SetValueInBuffer(thread, arrayBuffer, 0, DataViewType::UINT8_CLAMPED, val, tr… in BuiltinsArrayBufferSetValueInBufferForUint8ClampedFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/builtinsarraybuffersetvalueinbufferforbyte_fuzzer/ |
D | builtinsarraybuffersetvalueinbufferforbyte_fuzzer.cpp | 55 …JSTaggedValue arrayBuffer = BuiltinsArrayBuffer::AllocateArrayBuffer(thread, bufferConstructor, MA… in BuiltinsArrayBufferSetValueInBufferForByteFuzzTest() 58 … BuiltinsArrayBuffer::SetValueInBuffer(thread, arrayBuffer, 0, DataViewType::UINT8, val, true); in BuiltinsArrayBufferSetValueInBufferForByteFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/builtinsarraybufferfastsetvalueinbuffer_fuzzer/ |
D | builtinsarraybufferfastsetvalueinbuffer_fuzzer.cpp | 55 …JSTaggedValue arrayBuffer = BuiltinsArrayBuffer::AllocateArrayBuffer(thread, bufferConstructor, MA… in BuiltinsArrayBufferFastSetValueInBufferFuzzTest() 58 … BuiltinsArrayBuffer::FastSetValueInBuffer(thread, arrayBuffer, 0, DataViewType::INT32, val, true); in BuiltinsArrayBufferFastSetValueInBufferFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/builtinsarraybufferclonearraybuffer_fuzzer/ |
D | builtinsarraybufferclonearraybuffer_fuzzer.cpp | 59 …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/ |
D | builtinsarraybufferallocatearraybuffer_fuzzer.cpp | 58 builtins::BuiltinsArrayBuffer::AllocateArrayBuffer(thread, bufferConstructor, input); in BuiltinsArrayBufferAllocateArrayBufferFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/builtinsarraybufferisview_fuzzer/ |
D | builtinsarraybufferisview_fuzzer.cpp | 72 builtins::BuiltinsArrayBuffer::IsView(ecmaRuntimeCallInfo); in BuiltinsArrayBufferIsViewFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/builtinsarraybufferarraybufferconstructor_fuzzer/ |
D | builtinsarraybufferarraybufferconstructor_fuzzer.cpp | 76 builtins::BuiltinsArrayBuffer::ArrayBufferConstructor(ecmaRuntimeCallInfo); in BuiltinsArrayBufferArrayBufferConstructorFuzzTest()
|
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
D | typed_array_helper_test.cpp | 423 EXPECT_FALSE(builtins::BuiltinsArrayBuffer::IsDetachedBuffer(buffer.GetTaggedValue())); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_serializer_test.cpp | 1536 BuiltinsArrayBuffer::SetValueInBuffer(thread, obj.GetTaggedValue(), 1, DataViewType::UINT8, in HWTEST_F_L0() 1539 …BuiltinsArrayBuffer::SetValueInBuffer(thread, obj.GetTaggedValue(), 3, DataViewType::UINT8, // 3:i… in HWTEST_F_L0() 1670 BuiltinsArrayBuffer::SetValueInBuffer(thread, obj.GetTaggedValue(), i, DataViewType::UINT8, in CreateTestJSArrayBuffer()
|