Searched refs:JSDataView (Results 1 – 14 of 14) sorted by relevance
| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | js_dataview_test.cpp | 60 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 …]
|
| D | dump_test.cpp | 750 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/ |
| D | builtins_dataview_test.cpp | 114 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/ |
| D | js_dataview.h | 30 class JSDataView : public JSObject { 32 CAST_CHECK(JSDataView, IsDataView);
|
| D | js_dataview.cpp | 21 uint32_t JSDataView::GetElementSize(DataViewType type) in GetElementSize()
|
| D | object_factory.h | 72 class JSDataView; variable 490 …JSHandle<JSDataView> NewJSDataView(JSHandle<JSArrayBuffer> buffer, uint32_t offset, uint32_t lengt…
|
| D | object_factory.cpp | 327 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()
|
| D | dump.cpp | 848 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/ |
| D | builtins_dataview.cpp | 94 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()
|
| D | builtins.cpp | 2587 factory_->NewEcmaHClass(JSDataView::SIZE, JSType::JS_DATA_VIEW, dataViewFuncPrototypeValue); in InitializeDataView()
|
| /arkcompiler/ets_runtime/test/aottest/tryldglobalbyname_global_object/ |
| D | tryldglobalbyname_global_object.ts | 462 function JSDataView() { function 715 JSDataView();
|
| /arkcompiler/ets_runtime/ecmascript/napi/ |
| D | jsnapi.cpp | 122 using ecmascript::JSDataView;
|
| D | jsnapi_expo.cpp | 120 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/ |
| D | object_xray.h | 306 JSDataView::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody()
|