Home
last modified time | relevance | path

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

/arkcompiler/ets_runtime/ecmascript/tests/
Djs_dataview_test.cpp60 EXPECT_EQ(JSDataView::GetElementSize(DataViewType::INT8), 1U); in HWTEST_F_L0()
61 EXPECT_EQ(JSDataView::GetElementSize(DataViewType::UINT8), 1U); in HWTEST_F_L0()
62 EXPECT_EQ(JSDataView::GetElementSize(DataViewType::UINT8_CLAMPED), 1U); in HWTEST_F_L0()
63 EXPECT_EQ(JSDataView::GetElementSize(DataViewType::INT16), 2U); in HWTEST_F_L0()
64 EXPECT_EQ(JSDataView::GetElementSize(DataViewType::UINT16), 2U); in HWTEST_F_L0()
65 EXPECT_EQ(JSDataView::GetElementSize(DataViewType::INT32), 4U); in HWTEST_F_L0()
66 EXPECT_EQ(JSDataView::GetElementSize(DataViewType::UINT32), 4U); in HWTEST_F_L0()
67 EXPECT_EQ(JSDataView::GetElementSize(DataViewType::FLOAT32), 4U); in HWTEST_F_L0()
68 EXPECT_EQ(JSDataView::GetElementSize(DataViewType::FLOAT64), 8U); in HWTEST_F_L0()
95 JSHandle<JSDataView> handleDataView = factory->NewJSDataView(handleArrayBuf, offsetDataView, in HWTEST_F_L0()
[all …]
Ddump_test.cpp750 CHECK_DUMP_FIELDS(JSObject::SIZE, JSDataView::SIZE, 3U); in HWTEST_F_L0()
751 NEW_OBJECT_AND_DUMP(JSDataView, JS_DATA_VIEW); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_dataview_test.cpp114 void SetUint8(JSThread *thread, const JSHandle<JSDataView> &view, int32_t offset, JSTaggedValue val… in SetUint8()
166 …JSHandle<JSDataView> view(thread, JSDataView::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawD… in HWTEST_F_L0()
197 …JSHandle<JSDataView> view(thread, JSDataView::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawD… in HWTEST_F_L0()
228 …JSHandle<JSDataView> view(thread, JSDataView::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawD… in HWTEST_F_L0()
243 …JSHandle<JSDataView> view(thread, JSDataView::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawD… in HWTEST_F_L0()
272 …JSHandle<JSDataView> view(thread, JSDataView::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawD… in HWTEST_F_L0()
301 …JSHandle<JSDataView> view(thread, JSDataView::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawD… in HWTEST_F_L0()
323 …JSHandle<JSDataView> view(thread, JSDataView::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawD… in HWTEST_F_L0()
345 …JSHandle<JSDataView> view(thread, JSDataView::Cast(reinterpret_cast<TaggedObject *>(tagged.GetRawD… in HWTEST_F_L0()
363 …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.cpp21 uint32_t JSDataView::GetElementSize(DataViewType type) in GetElementSize()
Dobject_factory.h72 class JSDataView; variable
490 …JSHandle<JSDataView> NewJSDataView(JSHandle<JSArrayBuffer> buffer, uint32_t offset, uint32_t lengt…
Dobject_factory.cpp327 JSHandle<JSDataView> ObjectFactory::NewJSDataView(JSHandle<JSArrayBuffer> buffer, uint32_t offset, … in NewJSDataView()
332 JSHandle<JSDataView>(thread_, JSTaggedValue::Undefined())); in NewJSDataView()
337 JSHandle<JSDataView> arrayBuffer(NewJSObjectByConstructor(constructor)); in NewJSDataView()
1243 JSDataView::Cast(*obj)->SetDataView(thread_, JSTaggedValue(false)); in InitializeJSObject()
1244 JSDataView::Cast(*obj)->SetViewedArrayBuffer(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1245 JSDataView::Cast(*obj)->SetByteLength(0); in InitializeJSObject()
1246 JSDataView::Cast(*obj)->SetByteOffset(0); in InitializeJSObject()
Ddump.cpp848 JSDataView::Cast(obj)->Dump(os); in DumpObject()
2696 void JSDataView::Dump(std::ostream &os) const in Dump()
4053 JSDataView::Cast(obj)->DumpForSnapshot(vec); in DumpObject()
5291 void JSDataView::DumpForSnapshot(std::vector<Reference> &vec) const in DumpForSnapshot()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_dataview.cpp94 JSHandle<JSDataView> dataView(obj); in DataViewConstructor()
124 JSHandle<JSDataView> dataView(thisHandle); in GetBuffer()
148 JSHandle<JSDataView> dataView(thisHandle); in GetByteLength()
178 JSHandle<JSDataView> dataView(thisHandle); in GetOffset()
388 JSHandle<JSDataView> dataView(view); in GetViewValue()
399 uint32_t elementSize = JSDataView::GetElementSize(type); in GetViewValue()
453 JSHandle<JSDataView> dataView(view); in SetViewValue()
464 uint32_t elementSize = JSDataView::GetElementSize(type); in SetViewValue()
Dbuiltins.cpp2587 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/napi/
Djsnapi.cpp122 using ecmascript::JSDataView;
Djsnapi_expo.cpp120 using ecmascript::JSDataView;
807 JSHandle<JSDataView> dataView = factory->NewJSDataView(buffer, byteOffset, byteLength); in New()
815 JSHandle<JSDataView> dataView(JSNApiHelper::ToJSHandle(this)); in ByteLength()
822 JSHandle<JSDataView> dataView(JSNApiHelper::ToJSHandle(this)); in ByteOffset()
829 JSHandle<JSDataView> dataView(JSNApiHelper::ToJSHandle(this)); in GetArrayBuffer()
/arkcompiler/ets_runtime/ecmascript/mem/
Dobject_xray.h306 JSDataView::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody()