Home
last modified time | relevance | path

Searched refs:JSDataView (Results 1 – 17 of 17) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/tests/
Djs_dataview_test.cpp37 EXPECT_EQ(JSDataView::GetElementSize(DataViewType::INT8), 1U); in HWTEST_F_L0()
38 EXPECT_EQ(JSDataView::GetElementSize(DataViewType::UINT8), 1U); in HWTEST_F_L0()
39 EXPECT_EQ(JSDataView::GetElementSize(DataViewType::UINT8_CLAMPED), 1U); in HWTEST_F_L0()
40 EXPECT_EQ(JSDataView::GetElementSize(DataViewType::INT16), 2U); in HWTEST_F_L0()
41 EXPECT_EQ(JSDataView::GetElementSize(DataViewType::UINT16), 2U); in HWTEST_F_L0()
42 EXPECT_EQ(JSDataView::GetElementSize(DataViewType::INT32), 4U); in HWTEST_F_L0()
43 EXPECT_EQ(JSDataView::GetElementSize(DataViewType::UINT32), 4U); in HWTEST_F_L0()
44 EXPECT_EQ(JSDataView::GetElementSize(DataViewType::FLOAT32), 4U); in HWTEST_F_L0()
45 EXPECT_EQ(JSDataView::GetElementSize(DataViewType::FLOAT64), 8U); in HWTEST_F_L0()
69 …JSHandle<JSDataView> handleDataView = factory->NewJSDataView(handleArrayBuf, offsetDataView, lengt… in HWTEST_F_L0()
[all …]
Ddump_test.cpp822 CHECK_DUMP_FIELDS(JSObject::SIZE, JSDataView::SIZE, 3U); in HWTEST_F_L0()
823 NEW_OBJECT_AND_DUMP(JSDataView, JS_DATA_VIEW); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_dataview_test.cpp186 void SetUint8(JSThread *thread, const JSHandle<JSDataView> &view, int32_t offset, JSTaggedValue val… in SetUint8()
231 …JSHandle<JSDataView> view(thread, JSDataView::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawD… in HWTEST_F_L0()
253 …JSHandle<JSDataView> view(thread, JSDataView::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawD… in HWTEST_F_L0()
274 …JSHandle<JSDataView> view(thread, JSDataView::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawD… in HWTEST_F_L0()
284 …JSHandle<JSDataView> view(thread, JSDataView::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawD… in HWTEST_F_L0()
299 …JSHandle<JSDataView> view(thread, JSDataView::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawD… in HWTEST_F_L0()
310 static JSHandle<JSDataView> GetCommonInt32(JSThread *thread) in GetCommonInt32()
313 …JSHandle<JSDataView> view(thread, JSDataView::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawD… in GetCommonInt32()
343 …JSHandle<JSDataView> view(thread, JSDataView::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawD… in HWTEST_F_L0()
356 …JSHandle<JSDataView> view(thread, JSDataView::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawD… in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/
Djs_dataview.h30 class JSDataView : public JSObject {
32 CAST_CHECK(JSDataView, IsDataView);
Djs_dataview.cpp19 uint32_t JSDataView::GetElementSize(DataViewType type) in GetElementSize()
Dobject_factory.h81 class JSDataView; variable
518 …JSHandle<JSDataView> NewJSDataView(JSHandle<JSArrayBuffer> buffer, uint32_t offset, uint32_t lengt…
Dobject_factory.cpp386 JSHandle<JSDataView> ObjectFactory::NewJSDataView(JSHandle<JSArrayBuffer> buffer, uint32_t offset, … in NewJSDataView()
391 JSHandle<JSDataView>(thread_, JSTaggedValue::Undefined())); in NewJSDataView()
396 JSHandle<JSDataView> arrayBuffer(NewJSObjectByConstructor(constructor)); in NewJSDataView()
1470 JSDataView::Cast(*obj)->SetDataView(thread_, JSTaggedValue(false)); in InitializeJSObject()
1471 JSDataView::Cast(*obj)->SetViewedArrayBuffer(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1472 JSDataView::Cast(*obj)->SetByteLength(0); in InitializeJSObject()
1473 JSDataView::Cast(*obj)->SetByteOffset(0); in InitializeJSObject()
Ddump.cpp824 JSDataView::Cast(obj)->Dump(os); in DumpObject()
2855 void JSDataView::Dump(std::ostream &os) const in Dump()
4066 JSDataView::Cast(obj)->DumpForSnapshot(vec); in DumpObject()
5340 void JSDataView::DumpForSnapshot(std::vector<Reference> &vec) const in DumpForSnapshot()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_dataview.cpp83 JSHandle<JSDataView> dataView(obj); in DataViewConstructor()
113 JSHandle<JSDataView> dataView(thisHandle); in GetBuffer()
137 JSHandle<JSDataView> dataView(thisHandle); in GetByteLength()
167 JSHandle<JSDataView> dataView(thisHandle); in GetOffset()
376 JSHandle<JSDataView> dataView(view); in GetViewValue()
387 uint32_t elementSize = JSDataView::GetElementSize(type); in GetViewValue()
442 JSHandle<JSDataView> dataView(view); in SetViewValue()
453 uint32_t elementSize = JSDataView::GetElementSize(type); in SetViewValue()
Dbuiltins.cpp2682 factory_->NewEcmaHClass(JSDataView::SIZE, JSType::JS_DATA_VIEW, dataViewFuncPrototypeValue); in InitializeDataView()
/arkcompiler/ets_runtime/test/aottest/tryldglobalbyname_global_object/
Dtryldglobalbyname_global_object.ts462 function JSDataView() { function
715 JSDataView();
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/tests/
Djs_metadata_test.cpp617 {JSType::JS_DATA_VIEW, {JSDataView::DATA_VIEW_OFFSET, in JSMetadataTestHelper()
618 JSDataView::VIEW_ARRAY_BUFFER_OFFSET, in JSMetadataTestHelper()
619 JSDataView::LAST_OFFSET - JSDataView::DATA_VIEW_OFFSET}}, in JSMetadataTestHelper()
1397 … {JSType::JS_DATA_VIEW, {JSDataView::VIEW_ARRAY_BUFFER_OFFSET - JSDataView::DATA_VIEW_OFFSET, in JSMetadataTestHelper()
1398JSDataView::BYTE_LENGTH_OFFSET - JSDataView::VIEW_ARRAY_BUFFER_OFFSET}}, in JSMetadataTestHelper()
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi.cpp67 using ecmascript::JSDataView;
Djsnapi_expo.cpp62 using ecmascript::JSDataView;
1128 JSHandle<JSDataView> dataView(JSNApiHelper::ToJSHandle(this)); in GetDataViewInfo()
1161 JSHandle<JSDataView> dataView = factory->NewJSDataView(buffer, byteOffset, byteLength); in New()
1169 JSHandle<JSDataView> dataView(JSNApiHelper::ToJSHandle(this)); in ByteLength()
1176 JSHandle<JSDataView> dataView(JSNApiHelper::ToJSHandle(this)); in ByteOffset()
1184 JSHandle<JSDataView> dataView(JSNApiHelper::ToJSHandle(this)); in GetArrayBuffer()
/arkcompiler/ets_runtime/ecmascript/mem/
Dobject_xray.h344 JSDataView::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dstub_builder-inl.h3716 IntPtr(JSDataView::VIEW_ARRAY_BUFFER_OFFSET)); in GetViewedArrayBuffer()
3722 IntPtr(JSDataView::BYTE_OFFSET_OFFSET)); in GetByteOffset()
3728 IntPtr(JSDataView::BYTE_LENGTH_OFFSET)); in GetByteLength()
Dtyped_native_inline_lowering.cpp1348 GateRef viewedArrayBufferOffset = builder_.IntPtr(JSDataView::VIEW_ARRAY_BUFFER_OFFSET); in LowerDataViewProtoFunc()
1359 GateRef byteOffset = builder_.IntPtr(JSDataView::BYTE_OFFSET_OFFSET); in LowerDataViewProtoFunc()
1361 GateRef sizeOffset = builder_.IntPtr(JSDataView::BYTE_LENGTH_OFFSET); in LowerDataViewProtoFunc()