Home
last modified time | relevance | path

Searched refs:JSDataView (Results 1 – 12 of 12) 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.cpp717 CHECK_DUMP_FIELDS(JSObject::SIZE, JSDataView::SIZE, 3U); in HWTEST_F_L0()
718 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.h70 class JSDataView; variable
453 …JSHandle<JSDataView> NewJSDataView(JSHandle<JSArrayBuffer> buffer, uint32_t offset, uint32_t lengt…
Dobject_factory.cpp315 JSHandle<JSDataView> ObjectFactory::NewJSDataView(JSHandle<JSArrayBuffer> buffer, uint32_t offset, … in NewJSDataView()
320 JSHandle<JSDataView>(thread_, JSTaggedValue::Undefined())); in NewJSDataView()
325 JSHandle<JSDataView> arrayBuffer(NewJSObjectByConstructor(constructor)); in NewJSDataView()
1144 JSDataView::Cast(*obj)->SetDataView(thread_, JSTaggedValue(false)); in InitializeJSObject()
1145 JSDataView::Cast(*obj)->SetViewedArrayBuffer(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1146 JSDataView::Cast(*obj)->SetByteLength(0); in InitializeJSObject()
1147 JSDataView::Cast(*obj)->SetByteOffset(0); in InitializeJSObject()
Ddump.cpp767 JSDataView::Cast(obj)->Dump(os); in DumpObject()
2547 void JSDataView::Dump(std::ostream &os) const in Dump()
3816 JSDataView::Cast(obj)->DumpForSnapshot(vec); in DumpObject()
4872 void JSDataView::DumpForSnapshot(std::vector<std::pair<CString, JSTaggedValue>> &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()
381 JSHandle<JSDataView> dataView(view); in GetViewValue()
392 uint32_t elementSize = JSDataView::GetElementSize(type); in GetViewValue()
437 JSHandle<JSDataView> dataView(view); in SetViewValue()
448 uint32_t elementSize = JSDataView::GetElementSize(type); in SetViewValue()
Dbuiltins.cpp2865 factory_->NewEcmaHClass(JSDataView::SIZE, JSType::JS_DATA_VIEW, dataViewFuncPrototypeValue); in InitializeDataView()
/arkcompiler/ets_runtime/ecmascript/mem/
Dobject_xray.h283 JSDataView::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody()
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi.cpp120 using ecmascript::JSDataView;
2222 JSHandle<JSDataView> dataView = factory->NewJSDataView(buffer, byteOffset, byteLength); in New()
2229 JSHandle<JSDataView> dataView(JSNApiHelper::ToJSHandle(this)); in ByteLength()
2236 JSHandle<JSDataView> dataView(JSNApiHelper::ToJSHandle(this)); in ByteOffset()
2245 JSHandle<JSDataView> dataView(JSNApiHelper::ToJSHandle(this)); in GetArrayBuffer()