Lines Matching defs:thisHandle
242 int64_t ArrayHelper::GetLength(JSThread *thread, const JSHandle<JSTaggedValue> &thisHandle)
244 if (thisHandle->IsJSArray()) {
245 return JSArray::Cast(thisHandle->GetTaggedObject())->GetArrayLength();
247 if (thisHandle->IsJSSharedArray()) {
248 return JSSharedArray::Cast(thisHandle->GetTaggedObject())->GetArrayLength();
250 if (thisHandle->IsTypedArray() || thisHandle->IsSharedTypedArray()) {
251 return JSHandle<JSTypedArray>::Cast(thisHandle)->GetArrayLength();
254 JSHandle<JSTaggedValue> lenResult = JSTaggedValue::GetProperty(thread, thisHandle, lengthKey).GetValue();
261 int64_t ArrayHelper::GetArrayLength(JSThread *thread, const JSHandle<JSTaggedValue> &thisHandle)
263 if (thisHandle->IsJSArray()) {
264 return JSArray::Cast(thisHandle->GetTaggedObject())->GetArrayLength();
266 if (thisHandle->IsJSSharedArray()) {
267 return JSSharedArray::Cast(thisHandle->GetTaggedObject())->GetArrayLength();
270 JSHandle<JSTaggedValue> lenResult = JSTaggedValue::GetProperty(thread, thisHandle, lengthKey).GetValue();