Searched refs:dataView (Results 1 – 4 of 4) sorted by relevance
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_dataview.cpp | 94 JSHandle<JSDataView> dataView(obj); in DataViewConstructor() local 96 dataView->SetDataView(thread, JSTaggedValue::True()); in DataViewConstructor() 98 dataView->SetViewedArrayBuffer(thread, bufferHandle.GetTaggedValue()); in DataViewConstructor() 100 dataView->SetByteLength(viewByteLen); in DataViewConstructor() 102 dataView->SetByteOffset(offset); in DataViewConstructor() 104 return JSTaggedValue(dataView.GetTaggedValue()); in DataViewConstructor() 124 JSHandle<JSDataView> dataView(thisHandle); in GetBuffer() local 126 JSTaggedValue buffer = dataView->GetViewedArrayBuffer(); in GetBuffer() 148 JSHandle<JSDataView> dataView(thisHandle); in GetByteLength() local 150 JSTaggedValue buffer = dataView->GetViewedArrayBuffer(); in GetByteLength() [all …]
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
D | builtins_dataview_test.cpp | 80 JSHandle<JSFunction> dataView(thread, env->GetDataViewFunction().GetTaggedValue()); in CreateBuiltinsDataView() local 85 …o ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*dataView), 8); in CreateBuiltinsDataView() 86 ecmaRuntimeCallInfo->SetFunction(dataView.GetTaggedValue()); in CreateBuiltinsDataView() 131 JSHandle<JSFunction> dataView(thread, env->GetDataViewFunction().GetTaggedValue()); in HWTEST_F_L0() local 135 …o ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*dataView), 8); in HWTEST_F_L0() 136 ecmaRuntimeCallInfo->SetFunction(dataView.GetTaggedValue()); in HWTEST_F_L0() 148 … ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*dataView), 8); in HWTEST_F_L0() 149 ecmaRuntimeCallInfo->SetFunction(dataView.GetTaggedValue()); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/napi/test/ |
D | jsnapi_tests.cpp | 528 Local<DataViewRef> dataView = DataViewRef::New(vm_, arrayBuffer, 5, 7); in HWTEST_F_L0() local 529 ASSERT_TRUE(dataView->IsDataView()); in HWTEST_F_L0() 530 ASSERT_EQ(dataView->GetArrayBuffer(vm_)->GetBuffer(), arrayBuffer->GetBuffer()); in HWTEST_F_L0() 531 ASSERT_EQ(dataView->ByteLength(), 7U); // 7 : size of arguments in HWTEST_F_L0() 532 ASSERT_EQ(dataView->ByteOffset(), 5U); // 5 : size of arguments in HWTEST_F_L0() 535 dataView = DataViewRef::New(vm_, arrayBuffer, 5, 11); in HWTEST_F_L0() 536 ASSERT_TRUE(dataView->IsUndefined()); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/napi/ |
D | jsnapi.cpp | 2222 JSHandle<JSDataView> dataView = factory->NewJSDataView(buffer, byteOffset, byteLength); in New() local 2224 return JSNApiHelper::ToLocal<DataViewRef>(JSHandle<JSTaggedValue>(dataView)); in New() 2229 JSHandle<JSDataView> dataView(JSNApiHelper::ToJSHandle(this)); in ByteLength() local 2230 LOG_IF_SPECIAL(dataView, FATAL); in ByteLength() 2231 return dataView->GetByteLength(); in ByteLength() 2236 JSHandle<JSDataView> dataView(JSNApiHelper::ToJSHandle(this)); in ByteOffset() local 2237 LOG_IF_SPECIAL(dataView, FATAL); in ByteOffset() 2238 return dataView->GetByteOffset(); in ByteOffset() 2245 JSHandle<JSDataView> dataView(JSNApiHelper::ToJSHandle(this)); in GetArrayBuffer() local 2246 LOG_IF_SPECIAL(dataView, FATAL); in GetArrayBuffer() [all …]
|