Lines Matching defs:view
343 JSTaggedValue BuiltinsDataView::GetViewValue(JSThread *thread, const JSHandle<JSTaggedValue> &view,
349 // 1. If Type(view) is not Object, throw a TypeError exception.
350 if (!view->IsECMAObject()) {
353 // 2. If view does not have a [[DataView]] internal slot, throw a TypeError exception.
354 if (!view->IsDataView()) {
355 THROW_TYPE_ERROR_AND_RETURN(thread, "view is not dataview", JSTaggedValue::Exception());
381 // 8. Let buffer be the value of view’s [[ViewedArrayBuffer]] internal slot.
382 JSHandle<JSDataView> dataView(view);
388 // 10. Let viewOffset be the value of view’s [[ByteOffset]] internal slot.
390 // 11. Let viewSize be the value of view’s [[ByteLength]] internal slot.
405 JSTaggedValue BuiltinsDataView::SetViewValue(JSThread *thread, const JSHandle<JSTaggedValue> &view,
410 // 1. If Type(view) is not Object, throw a TypeError exception.
412 if (!view->IsECMAObject()) {
415 // 2. If view does not have a [[DataView]] internal slot, throw a TypeError exception.
416 if (!view->IsDataView()) {
417 THROW_TYPE_ERROR_AND_RETURN(thread, "view is not dataview", JSTaggedValue::Exception());
446 // 8. Let buffer be the value of view’s [[ViewedArrayBuffer]] internal slot.
447 JSHandle<JSDataView> dataView(view);
453 // 10. Let viewOffset be the value of view’s [[ByteOffset]] internal slot.
455 // 11. Let viewSize be the value of view’s [[ByteLength]] internal slot.