• Home
  • Raw
  • Download

Lines Matching full:cast

170         JSHClass::Cast(thread_->GlobalConstants()->GetHClassClass().GetTaggedObject()), classSize));  in NewEcmaHClass()
196 …return NewEcmaHClass(JSHClass::Cast(thread_->GlobalConstants()->GetHClassClass().GetTaggedObject()… in NewEcmaHClass()
222 auto *pointer = JSNativePointer::Cast(data.GetTaggedObject()); in NewJSArrayBufferData()
259 auto *pointer = JSNativePointer::Cast(data.GetTaggedObject()); in NewJSSendableArrayBufferData()
449 JSNativePointer *native = JSNativePointer::Cast(data.GetTaggedObject()); in NewJSRegExpByteCodeData()
473 JSHClass::Cast(thread_->GlobalConstants()->GetHClassClass().GetTaggedObject()), classSize)); in NewEcmaHClass()
482 JSHandle<JSObject> obj(thread_, JSObject::Cast(NewObject(jshclass))); in NewJSObject()
645 auto layout = LayoutInfo::Cast(klass->GetLayout().GetTaggedObject()); in CloneObjectLiteral()
702 jshclass = JSHandle<JSHClass>::Cast(env->GetFunctionClassWithoutProto()); in CreateJSFunctionFromTemplate()
704 jshclass = JSHandle<JSHClass>::Cast(env->GetAsyncFunctionClass()); in CreateJSFunctionFromTemplate()
706 jshclass = JSHandle<JSHClass>::Cast(env->GetGeneratorFunctionClass()); in CreateJSFunctionFromTemplate()
725 jshclass = JSHandle<JSHClass>::Cast(env->GetSFunctionClassWithoutProto()); in CreateSFunctionFromTemplate()
727 jshclass = JSHandle<JSHClass>::Cast(env->GetAsyncFunctionClass()); in CreateSFunctionFromTemplate()
729 jshclass = JSHandle<JSHClass>::Cast(env->GetGeneratorFunctionClass()); in CreateSFunctionFromTemplate()
757 auto layout = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in CloneClassCtor()
784 … JSObject::Cast(NewNonMovableObject(jshclass, jshclass->GetInlinedProperties()))); in NewNonMovableJSObject()
794 JSHandle<JSPrimitiveRef> obj = JSHandle<JSPrimitiveRef>::Cast(NewJSObject(hclass)); in NewJSPrimitiveRef()
809 JSArray::Cast(*obj)->SetLength(length); in NewJSArray()
810 JSArray::Cast(*obj)->SetTrackInfo(thread_, JSTaggedValue::Undefined()); in NewJSArray()
812 …JSArray::Cast(*obj)->SetPropertyInlinedProps(thread_, JSArray::LENGTH_INLINE_PROPERTY_INDEX, acces… in NewJSArray()
839 JSHandle<JSForInIterator> it = JSHandle<JSForInIterator>::Cast(NewJSObject(hclass)); in NewJSForinIterator()
844 uint32_t enumLength = JSHandle<TaggedArray>::Cast(keys)->GetLength(); in NewJSForinIterator()
960 JSHandle<JSHClass> hclass = JSHandle<JSHClass>::Cast(env->GetArgumentsClass()); in NewJSArguments()
961 JSHandle<JSArguments> obj = JSHandle<JSArguments>::Cast(NewJSObject(hclass)); in NewJSArguments()
1030 JSHandle<JSFunction> nativeFunc = JSHandle<JSFunction>::Cast(nativeConstructor); in NewJSError()
1260 JSIntl::Cast(*obj)->SetFallbackSymbol(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1262 JSIntl::Cast(*obj)->SetFallbackSymbol(thread_, jsSymbol); in InitializeJSObject()
1266 JSLocale::Cast(*obj)->SetIcuField(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1270 JSDateTimeFormat::Cast(*obj)->SetLocale(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1271 JSDateTimeFormat::Cast(*obj)->SetCalendar(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1272 JSDateTimeFormat::Cast(*obj)->SetNumberingSystem(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1273 JSDateTimeFormat::Cast(*obj)->SetTimeZone(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1274 JSDateTimeFormat::Cast(*obj)->SetLocaleIcu(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1275 … JSDateTimeFormat::Cast(*obj)->SetSimpleDateTimeFormatIcu(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1276 JSDateTimeFormat::Cast(*obj)->SetIso8601(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1277 JSDateTimeFormat::Cast(*obj)->SetBoundFormat(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1278 JSDateTimeFormat::Cast(*obj)->SetHourCycle(HourCycleOption::EXCEPTION); in InitializeJSObject()
1279 JSDateTimeFormat::Cast(*obj)->SetDateStyle(DateTimeStyleOption::EXCEPTION); in InitializeJSObject()
1280 JSDateTimeFormat::Cast(*obj)->SetTimeStyle(DateTimeStyleOption::EXCEPTION); in InitializeJSObject()
1284 JSNumberFormat::Cast(*obj)->SetLocale(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1285 JSNumberFormat::Cast(*obj)->SetNumberingSystem(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1286 JSNumberFormat::Cast(*obj)->SetCurrency(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1287 JSNumberFormat::Cast(*obj)->SetUnit(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1288 … JSNumberFormat::Cast(*obj)->SetMinimumIntegerDigits(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1289 … JSNumberFormat::Cast(*obj)->SetMinimumFractionDigits(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1290 … JSNumberFormat::Cast(*obj)->SetMaximumFractionDigits(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1291 … JSNumberFormat::Cast(*obj)->SetMinimumSignificantDigits(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1292 … JSNumberFormat::Cast(*obj)->SetMaximumSignificantDigits(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1293 JSNumberFormat::Cast(*obj)->SetUseGrouping(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1294 JSNumberFormat::Cast(*obj)->SetBoundFormat(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1295 JSNumberFormat::Cast(*obj)->SetIcuField(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1296 JSNumberFormat::Cast(*obj)->SetStyle(StyleOption::EXCEPTION); in InitializeJSObject()
1297 JSNumberFormat::Cast(*obj)->SetCurrencySign(CurrencySignOption::EXCEPTION); in InitializeJSObject()
1298 JSNumberFormat::Cast(*obj)->SetCurrencyDisplay(CurrencyDisplayOption::EXCEPTION); in InitializeJSObject()
1299 JSNumberFormat::Cast(*obj)->SetUnitDisplay(UnitDisplayOption::EXCEPTION); in InitializeJSObject()
1300 JSNumberFormat::Cast(*obj)->SetSignDisplay(SignDisplayOption::EXCEPTION); in InitializeJSObject()
1301 JSNumberFormat::Cast(*obj)->SetCompactDisplay(CompactDisplayOption::EXCEPTION); in InitializeJSObject()
1302 JSNumberFormat::Cast(*obj)->SetNotation(NotationOption::EXCEPTION); in InitializeJSObject()
1303 JSNumberFormat::Cast(*obj)->SetRoundingType(RoundingType::EXCEPTION); in InitializeJSObject()
1307 JSRelativeTimeFormat::Cast(*obj)->SetLocale(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1308 … JSRelativeTimeFormat::Cast(*obj)->SetNumberingSystem(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1309 JSRelativeTimeFormat::Cast(*obj)->SetIcuField(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1310 JSRelativeTimeFormat::Cast(*obj)->SetStyle(RelativeStyleOption::EXCEPTION); in InitializeJSObject()
1311 JSRelativeTimeFormat::Cast(*obj)->SetNumeric(NumericOption::EXCEPTION); in InitializeJSObject()
1315 JSCollator::Cast(*obj)->SetIcuField(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1316 JSCollator::Cast(*obj)->SetLocale(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1317 JSCollator::Cast(*obj)->SetCollation(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1318 JSCollator::Cast(*obj)->SetBoundCompare(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1319 JSCollator::Cast(*obj)->SetUsage(UsageOption::EXCEPTION); in InitializeJSObject()
1320 JSCollator::Cast(*obj)->SetCaseFirst(CaseFirstOption::EXCEPTION); in InitializeJSObject()
1321 JSCollator::Cast(*obj)->SetSensitivity(SensitivityOption::EXCEPTION); in InitializeJSObject()
1322 JSCollator::Cast(*obj)->SetIgnorePunctuation(false); in InitializeJSObject()
1323 JSCollator::Cast(*obj)->SetNumeric(false); in InitializeJSObject()
1327 JSPluralRules::Cast(*obj)->SetLocale(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1328 JSPluralRules::Cast(*obj)->SetMinimumIntegerDigits(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1329 … JSPluralRules::Cast(*obj)->SetMinimumFractionDigits(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1330 … JSPluralRules::Cast(*obj)->SetMaximumFractionDigits(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1331 … JSPluralRules::Cast(*obj)->SetMinimumSignificantDigits(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1332 … JSPluralRules::Cast(*obj)->SetMaximumSignificantDigits(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1333 JSPluralRules::Cast(*obj)->SetIcuPR(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1334 JSPluralRules::Cast(*obj)->SetIcuNF(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1335 JSPluralRules::Cast(*obj)->SetRoundingType(RoundingType::EXCEPTION); in InitializeJSObject()
1336 JSPluralRules::Cast(*obj)->SetType(TypeOption::EXCEPTION); in InitializeJSObject()
1340 JSDisplayNames::Cast(*obj)->SetLocale(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1341 JSDisplayNames::Cast(*obj)->SetType(TypednsOption::EXCEPTION); in InitializeJSObject()
1342 JSDisplayNames::Cast(*obj)->SetStyle(StyOption::EXCEPTION); in InitializeJSObject()
1343 JSDisplayNames::Cast(*obj)->SetFallback(FallbackOption::EXCEPTION); in InitializeJSObject()
1344 JSDisplayNames::Cast(*obj)->SetIcuLDN(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1348 JSSegmenter::Cast(*obj)->SetLocale(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1349 JSSegmenter::Cast(*obj)->SetGranularity(GranularityOption::EXCEPTION); in InitializeJSObject()
1350 JSSegmenter::Cast(*obj)->SetIcuField(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1354 JSSegments::Cast(*obj)->SetIcuField(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1355 JSSegments::Cast(*obj)->SetSegmentsString(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1356 JSSegments::Cast(*obj)->SetUnicodeString(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1357 JSSegments::Cast(*obj)->SetGranularity(GranularityOption::EXCEPTION); in InitializeJSObject()
1361 JSSegmentIterator::Cast(*obj)->SetIcuField(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1362 JSSegmentIterator::Cast(*obj)->SetIteratedString(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1363 JSSegmentIterator::Cast(*obj)->SetUnicodeString(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1364 JSSegmentIterator::Cast(*obj)->SetGranularity(GranularityOption::EXCEPTION); in InitializeJSObject()
1368 JSListFormat::Cast(*obj)->SetLocale(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1369 JSListFormat::Cast(*obj)->SetType(ListTypeOption::EXCEPTION); in InitializeJSObject()
1370 JSListFormat::Cast(*obj)->SetStyle(ListStyleOption::EXCEPTION); in InitializeJSObject()
1371 JSListFormat::Cast(*obj)->SetIcuLF(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1391 JSArray::Cast(*obj)->SetLength(0); in InitializeJSObject()
1392 JSArray::Cast(*obj)->SetTrackInfo(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1395 …JSArray::Cast(*obj)->SetPropertyInlinedProps(thread_, JSArray::LENGTH_INLINE_PROPERTY_INDEX, acces… in InitializeJSObject()
1399 JSSharedArray::Cast(*obj)->SetLength(0); in InitializeJSObject()
1400 JSSharedArray::Cast(*obj)->SetTrackInfo(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1402 JSSharedArray::Cast(*obj)->SetModRecord(0); in InitializeJSObject()
1404 … JSSharedArray::Cast(*obj)->SetPropertyInlinedProps(thread_, JSArray::LENGTH_INLINE_PROPERTY_INDEX, in InitializeJSObject()
1409 JSDate::Cast(*obj)->SetTimeValue(thread_, JSTaggedValue(0.0)); in InitializeJSObject()
1410 JSDate::Cast(*obj)->SetLocalOffset(thread_, JSTaggedValue(JSDate::MAX_DOUBLE)); in InitializeJSObject()
1424 … JSTypedArray::Cast(*obj)->SetViewedArrayBufferOrByteArray(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1425 JSTypedArray::Cast(*obj)->SetTypedArrayName(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1426 JSTypedArray::Cast(*obj)->SetByteLength(0); in InitializeJSObject()
1427 JSTypedArray::Cast(*obj)->SetByteOffset(0); in InitializeJSObject()
1428 JSTypedArray::Cast(*obj)->SetArrayLength(0); in InitializeJSObject()
1429 JSTypedArray::Cast(*obj)->SetContentType(ContentType::None); in InitializeJSObject()
1443 …JSSharedTypedArray::Cast(*obj)->SetViewedArrayBufferOrByteArray(thread_, JSTaggedValue::Undefined(… in InitializeJSObject()
1444 JSSharedTypedArray::Cast(*obj)->SetTypedArrayName(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1445 JSSharedTypedArray::Cast(*obj)->SetByteLength(0); in InitializeJSObject()
1446 JSSharedTypedArray::Cast(*obj)->SetByteOffset(0); in InitializeJSObject()
1447 JSSharedTypedArray::Cast(*obj)->SetArrayLength(0); in InitializeJSObject()
1448 JSSharedTypedArray::Cast(*obj)->SetContentType(ContentType::None); in InitializeJSObject()
1449 JSSharedTypedArray::Cast(*obj)->SetModRecord(0); in InitializeJSObject()
1452 JSRegExp::Cast(*obj)->SetByteCodeBuffer(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1453 JSRegExp::Cast(*obj)->SetOriginalSource(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1454 JSRegExp::Cast(*obj)->SetOriginalFlags(thread_, JSTaggedValue(0)); in InitializeJSObject()
1455 JSRegExp::Cast(*obj)->SetGroupName(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1456 JSRegExp::Cast(*obj)->SetLength(0); in InitializeJSObject()
1459 JSPrimitiveRef::Cast(*obj)->SetValue(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1462 JSSet::Cast(*obj)->SetLinkedSet(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1465 JSSharedSet::Cast(*obj)->SetLinkedSet(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1466 JSSharedSet::Cast(*obj)->SetModRecord(0); in InitializeJSObject()
1469 JSMap::Cast(*obj)->SetLinkedMap(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1472 JSSharedMap::Cast(*obj)->SetLinkedMap(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1473 JSSharedMap::Cast(*obj)->SetModRecord(0); in InitializeJSObject()
1476 JSWeakMap::Cast(*obj)->SetLinkedMap(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1479 JSWeakSet::Cast(*obj)->SetLinkedSet(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1482 JSWeakRef::Cast(*obj)->SetWeakObject(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1485 … JSFinalizationRegistry::Cast(*obj)->SetCleanupCallback(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1486 … JSFinalizationRegistry::Cast(*obj)->SetNoUnregister(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1487 … JSFinalizationRegistry::Cast(*obj)->SetMaybeUnregister(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1488 JSFinalizationRegistry::Cast(*obj)->SetNext(thread_, JSTaggedValue::Null()); in InitializeJSObject()
1489 JSFinalizationRegistry::Cast(*obj)->SetPrev(thread_, JSTaggedValue::Null()); in InitializeJSObject()
1492 JSGeneratorObject::Cast(*obj)->SetGeneratorContext(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1493 JSGeneratorObject::Cast(*obj)->SetResumeResult(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1494 JSGeneratorObject::Cast(*obj)->SetGeneratorState(JSGeneratorState::UNDEFINED); in InitializeJSObject()
1495 JSGeneratorObject::Cast(*obj)->SetResumeMode(GeneratorResumeMode::UNDEFINED); in InitializeJSObject()
1498 … JSAsyncGeneratorObject::Cast(*obj)->SetGeneratorContext(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1499 …JSAsyncGeneratorObject::Cast(*obj)->SetAsyncGeneratorQueue(thread_, GetEmptyTaggedQueue().GetTagge… in InitializeJSObject()
1500 … JSAsyncGeneratorObject::Cast(*obj)->SetGeneratorBrand(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1501 … JSAsyncGeneratorObject::Cast(*obj)->SetResumeResult(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1502 … JSAsyncGeneratorObject::Cast(*obj)->SetAsyncGeneratorState(JSAsyncGeneratorState::UNDEFINED); in InitializeJSObject()
1503 JSAsyncGeneratorObject::Cast(*obj)->SetResumeMode(AsyncGeneratorResumeMode::UNDEFINED); in InitializeJSObject()
1506 JSStringIterator::Cast(*obj)->SetStringIteratorNextIndex(0); in InitializeJSObject()
1507 JSStringIterator::Cast(*obj)->SetIteratedString(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1510 … JSAsyncFromSyncIterator::Cast(*obj)->SetSyncIteratorRecord(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1513 … JSAsyncFromSyncIterUnwarpFunction::Cast(*obj)->SetDone(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1516 JSArrayBuffer::Cast(*obj)->SetArrayBufferData(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1517 JSArrayBuffer::Cast(*obj)->SetArrayBufferByteLength(0); in InitializeJSObject()
1518 JSArrayBuffer::Cast(*obj)->ClearBitField(); in InitializeJSObject()
1521 JSArrayBuffer::Cast(*obj)->SetArrayBufferData(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1522 JSArrayBuffer::Cast(*obj)->SetArrayBufferByteLength(0); in InitializeJSObject()
1523 JSArrayBuffer::Cast(*obj)->SetShared(true); in InitializeJSObject()
1526 … JSSendableArrayBuffer::Cast(*obj)->SetArrayBufferData(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1527 JSSendableArrayBuffer::Cast(*obj)->SetArrayBufferByteLength(0); in InitializeJSObject()
1530 JSPromise::Cast(*obj)->SetPromiseState(PromiseState::PENDING); in InitializeJSObject()
1531 JSPromise::Cast(*obj)->SetPromiseResult(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1532 … JSPromise::Cast(*obj)->SetPromiseRejectReactions(thread_, GetEmptyTaggedQueue().GetTaggedValue()); in InitializeJSObject()
1533 …JSPromise::Cast(*obj)->SetPromiseFulfillReactions(thread_, GetEmptyTaggedQueue().GetTaggedValue()); in InitializeJSObject()
1534 JSPromise::Cast(*obj)->SetAsyncTaskId(vm_->GetAsyncTaskId()); in InitializeJSObject()
1536 JSPromise::Cast(*obj)->SetPromiseIsHandled(false); in InitializeJSObject()
1539 JSDataView::Cast(*obj)->SetDataView(thread_, JSTaggedValue(false)); in InitializeJSObject()
1540 JSDataView::Cast(*obj)->SetViewedArrayBuffer(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1541 JSDataView::Cast(*obj)->SetByteLength(0); in InitializeJSObject()
1542 JSDataView::Cast(*obj)->SetByteOffset(0); in InitializeJSObject()
1546 JSAPIArrayList::Cast(*obj)->SetLength(thread_, JSTaggedValue(0)); in InitializeJSObject()
1550 JSAPIHashMap::Cast(*obj)->SetSize(0); in InitializeJSObject()
1551 JSAPIHashMap::Cast(*obj)->SetTable(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1555 JSAPIHashSet::Cast(*obj)->SetSize(0); in InitializeJSObject()
1556 JSAPIHashSet::Cast(*obj)->SetTable(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1560 JSAPITreeMap::Cast(*obj)->SetTreeMap(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1564 JSAPITreeSet::Cast(*obj)->SetTreeSet(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1568 JSAPIQueue::Cast(*obj)->SetLength(thread_, JSTaggedValue(0)); in InitializeJSObject()
1569 JSAPIQueue::Cast(*obj)->SetFront(0); in InitializeJSObject()
1570 JSAPIQueue::Cast(*obj)->SetTail(0); in InitializeJSObject()
1574 JSAPIPlainArray::Cast(*obj)->SetLength(0); in InitializeJSObject()
1575 JSAPIPlainArray::Cast(*obj)->SetValues(thread_, JSTaggedValue(0)); in InitializeJSObject()
1576 JSAPIPlainArray::Cast(*obj)->SetKeys(thread_, JSTaggedValue(0)); in InitializeJSObject()
1580 JSAPIStack::Cast(*obj)->SetTop(0); in InitializeJSObject()
1584 JSAPIDeque::Cast(*obj)->SetFirst(0); in InitializeJSObject()
1585 JSAPIDeque::Cast(*obj)->SetLast(0); in InitializeJSObject()
1589 JSAPILightWeightMap::Cast(*obj)->SetLength(0); in InitializeJSObject()
1590 JSAPILightWeightMap::Cast(*obj)->SetHashes(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1591 JSAPILightWeightMap::Cast(*obj)->SetKeys(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1592 JSAPILightWeightMap::Cast(*obj)->SetValues(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1596 JSAPILightWeightSet::Cast(*obj)->SetLength(0); in InitializeJSObject()
1597 JSAPILightWeightSet::Cast(*obj)->SetHashes(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1598 JSAPILightWeightSet::Cast(*obj)->SetValues(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1602 JSAPIVector::Cast(*obj)->SetLength(0); in InitializeJSObject()
1606 JSAPIBitVector::Cast(*obj)->SetNativePointer(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1607 JSAPIBitVector::Cast(*obj)->SetLength(0); in InitializeJSObject()
1608 JSAPIBitVector::Cast(*obj)->SetModRecord(0); in InitializeJSObject()
1612 JSAPIList::Cast(*obj)->SetSingleList(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1613 JSAPIList::Cast(*obj)->SetBitField(0UL); in InitializeJSObject()
1617 JSAPILinkedList::Cast(*obj)->SetDoubleList(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1621 JSAsyncFuncObject::Cast(*obj)->SetGeneratorContext(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1622 JSAsyncFuncObject::Cast(*obj)->SetResumeResult(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1623 JSAsyncFuncObject::Cast(*obj)->SetPromise(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1634 … JSProxyRevocFunction::Cast(*obj)->SetRevocableProxy(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1638 JSPromiseReactionsFunction::Cast(*obj)->SetPromise(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1639 … JSPromiseReactionsFunction::Cast(*obj)->SetAlreadyResolved(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1643 … JSPromiseExecutorFunction::Cast(*obj)->SetCapability(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1647 … JSAsyncModuleFulfilledFunction::Cast(*obj)->SetModule(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1651 … JSAsyncModuleRejectedFunction::Cast(*obj)->SetModule(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1655 JSAsyncGeneratorResNextRetProRstFtn::Cast(*obj)->SetAsyncGeneratorObject(thread_, in InitializeJSObject()
1660 … JSPromiseAllResolveElementFunction::Cast(*obj)->SetIndex(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1661 … JSPromiseAllResolveElementFunction::Cast(*obj)->SetValues(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1662 …JSPromiseAllResolveElementFunction::Cast(*obj)->SetCapabilities(thread_, JSTaggedValue::Undefined(… in InitializeJSObject()
1663 …JSPromiseAllResolveElementFunction::Cast(*obj)->SetRemainingElements(thread_, JSTaggedValue::Undef… in InitializeJSObject()
1664 …JSPromiseAllResolveElementFunction::Cast(*obj)->SetAlreadyCalled(thread_, JSTaggedValue::Undefined… in InitializeJSObject()
1668 JSPromiseAnyRejectElementFunction::Cast(*obj)->SetIndex(0); in InitializeJSObject()
1669 … JSPromiseAnyRejectElementFunction::Cast(*obj)->SetErrors(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1670 … JSPromiseAnyRejectElementFunction::Cast(*obj)->SetCapability(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1671 …JSPromiseAnyRejectElementFunction::Cast(*obj)->SetRemainingElements(thread_, JSTaggedValue::Undefi… in InitializeJSObject()
1672 …JSPromiseAnyRejectElementFunction::Cast(*obj)->SetAlreadyCalled(thread_, JSTaggedValue::Undefined(… in InitializeJSObject()
1676 JSPromiseAllSettledElementFunction::Cast(*obj)->SetIndex(0); in InitializeJSObject()
1677 … JSPromiseAllSettledElementFunction::Cast(*obj)->SetValues(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1678 …JSPromiseAllSettledElementFunction::Cast(*obj)->SetCapability(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1679 …JSPromiseAllSettledElementFunction::Cast(*obj)->SetRemainingElements(thread_, JSTaggedValue::Undef… in InitializeJSObject()
1680 …JSPromiseAllSettledElementFunction::Cast(*obj)->SetAlreadyCalled(thread_, JSTaggedValue::Undefined… in InitializeJSObject()
1684 JSPromiseFinallyFunction::Cast(*obj)->SetOnFinally(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1685 … JSPromiseFinallyFunction::Cast(*obj)->SetConstructor(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1689 … JSPromiseValueThunkOrThrowerFunction::Cast(*obj)->SetResult(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1693 JSIntlBoundFunction::Cast(*obj)->SetNumberFormat(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1694 JSIntlBoundFunction::Cast(*obj)->SetDateTimeFormat(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1695 JSIntlBoundFunction::Cast(*obj)->SetCollator(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1698 JSBoundFunction::Cast(*obj)->SetMethod(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1699 JSBoundFunction::Cast(*obj)->SetBoundTarget(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1700 JSBoundFunction::Cast(*obj)->SetBoundThis(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1701 JSBoundFunction::Cast(*obj)->SetBoundArguments(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1725 CjsModule::Cast(*obj)->SetId(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1726 CjsModule::Cast(*obj)->SetExports(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1727 CjsModule::Cast(*obj)->SetPath(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1728 CjsModule::Cast(*obj)->SetFilename(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1729 CjsModule::Cast(*obj)->SetStatus(CjsModuleStatus::UNLOAD); in InitializeJSObject()
1732 CjsExports::Cast(*obj)->SetExports(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1735 CjsRequire::Cast(*obj)->SetCache(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1736 CjsRequire::Cast(*obj)->SetParent(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1751 …object->SetClassWithoutBarrier(JSHClass::Cast(globalConst->GetFreeObjectWithOneFieldClass().GetTag… in FillFreeObject()
1756 JSHClass::Cast(globalConst->GetFreeObjectWithTwoFieldClass().GetTaggedObject())); in FillFreeObject()
1765 JSHClass::Cast(globalConst->GetFreeObjectWithNoneFieldClass().GetTaggedObject())); in FillFreeObject()
1838 hclass = JSHandle<JSHClass>::Cast(env->GetFunctionClassWithProto()); in GetHClassByFunctionKind()
1840 hclass = JSHandle<JSHClass>::Cast(env->GetConstructorFunctionClass()); in GetHClassByFunctionKind()
1842 hclass = JSHandle<JSHClass>::Cast(env->GetAsyncFunctionClass()); in GetHClassByFunctionKind()
1844 hclass = JSHandle<JSHClass>::Cast(env->GetNormalFunctionClass()); in GetHClassByFunctionKind()
1875 JSHandle<JSHClass> hclass = JSHandle<JSHClass>::Cast(env->GetSFunctionClassWithoutProto()); in NewSFunction()
2049 function = JSHandle<JSFunction>::Cast(NewJSObject(clazz)); in NewJSFunctionByHClass()
2052 function = JSHandle<JSFunction>::Cast(NewOldSpaceJSObject(clazz)); in NewJSFunctionByHClass()
2055 function = JSHandle<JSFunction>::Cast(NewNonMovableJSObject(clazz)); in NewJSFunctionByHClass()
2067 SetNativePointerToFunctionFromMethod(JSHandle<JSFunctionBase>::Cast(function), method); in NewJSFunctionByHClass()
2143 function = JSHandle<JSFunction>::Cast(NewJSObject(clazz)); in NewNativeFunctionByHClass()
2146 function = JSHandle<JSFunction>::Cast(NewOldSpaceJSObject(clazz)); in NewNativeFunctionByHClass()
2149 function = JSHandle<JSFunction>::Cast(NewNonMovableJSObject(clazz)); in NewNativeFunctionByHClass()
2167 JSHandle<JSFunction> function = JSHandle<JSFunction>::Cast(NewJSObject(clazz)); in NewJSFunctionByHClass()
2180 JSHandle<JSFunction> function = JSHandle<JSFunction>::Cast(NewJSObject(clazz)); in NewJSFunctionByHClassWithoutAccessor()
2215 JSHClass::Cast(thread_->GlobalConstants()->GetMethodClass().GetTaggedObject())); in NewMethod()
2218 JSHClass::Cast(thread_->GlobalConstants()->GetMethodClass().GetTaggedObject())); in NewMethod()
2247 JSHandle<JSHClass> hclass = JSHandle<JSHClass>::Cast(env->GetNativeErrorFunctionClass()); in NewJSNativeErrorFunction()
2255 JSHandle<JSHClass> hclass = JSHandle<JSHClass>::Cast(env->GetSpecificTypedArrayFunctionClass()); in NewSpecificTypedArrayFunction()
2289 JSHandle<JSHClass> hclass = JSHandle<JSHClass>::Cast(env->GetBoundFunctionClass()); in NewJSBoundFunction()
2290 JSHandle<JSBoundFunction> bundleFunction = JSHandle<JSBoundFunction>::Cast(NewJSObject(hclass)); in NewJSBoundFunction()
2308 SetNativePointerToFunctionFromMethod(JSHandle<JSFunctionBase>::Cast(bundleFunction), method); in NewJSBoundFunction()
2315 JSHandle<JSHClass> hclass = JSHandle<JSHClass>::Cast(env->GetJSIntlBoundFunctionClass()); in NewJSIntlBoundFunction()
2317 …JSHandle<JSIntlBoundFunction> intlBoundFunc = JSHandle<JSIntlBoundFunction>::Cast(NewJSObject(hcla… in NewJSIntlBoundFunction()
2321 JSHandle<JSFunction> function = JSHandle<JSFunction>::Cast(intlBoundFunc); in NewJSIntlBoundFunction()
2325 SetNativePointerToFunctionFromMethod(JSHandle<JSFunctionBase>::Cast(function), method); in NewJSIntlBoundFunction()
2331 …JSTaggedValue::DefinePropertyOrThrow(thread_, JSHandle<JSTaggedValue>::Cast(function), nameKey, na… in NewJSIntlBoundFunction()
2340 JSHandle<JSHClass> hclass = JSHandle<JSHClass>::Cast(env->GetProxyRevocFunctionClass()); in NewJSProxyRevocFunction()
2342 …JSHandle<JSProxyRevocFunction> revocFunction = JSHandle<JSProxyRevocFunction>::Cast(NewJSObject(hc… in NewJSProxyRevocFunction()
2345 JSHandle<JSFunction> function = JSHandle<JSFunction>::Cast(revocFunction); in NewJSProxyRevocFunction()
2349 SetNativePointerToFunctionFromMethod(JSHandle<JSFunctionBase>::Cast(function), method); in NewJSProxyRevocFunction()
2354 …JSTaggedValue::DefinePropertyOrThrow(thread_, JSHandle<JSTaggedValue>::Cast(function), nameKey, na… in NewJSProxyRevocFunction()
2362 JSHandle<JSHClass> hclass = JSHandle<JSHClass>::Cast(env->GetAsyncAwaitStatusFunctionClass()); in NewJSAsyncAwaitStatusFunction()
2365 JSHandle<JSAsyncAwaitStatusFunction>::Cast(NewJSObject(hclass)); in NewJSAsyncAwaitStatusFunction()
2367 JSFunction::InitializeJSFunction(thread_, JSHandle<JSFunction>::Cast(awaitFunction)); in NewJSAsyncAwaitStatusFunction()
2370 SetNativePointerToFunctionFromMethod(JSHandle<JSFunctionBase>::Cast(awaitFunction), method); in NewJSAsyncAwaitStatusFunction()
2376 …JSHandle<JSTaggedValue> proto(thread_, JSHandle<JSFunction>::Cast(generatorFunction)->GetProtoOrHC… in NewJSGeneratorObject()
2383 …JSHandle<JSGeneratorObject> generatorObject = JSHandle<JSGeneratorObject>::Cast(NewJSObjectWithIni… in NewJSGeneratorObject()
2391 …JSHandle<JSTaggedValue> proto(thread_, JSHandle<JSFunction>::Cast(generatorFunction)->GetProtoOrHC… in NewJSAsyncGeneratorObject()
2400 JSHandle<JSAsyncGeneratorObject>::Cast(NewJSObjectWithInit(hclass)); in NewJSAsyncGeneratorObject()
2409 …JSHandle<JSAsyncFuncObject> asyncFuncObject = JSHandle<JSAsyncFuncObject>::Cast(NewJSObjectWithIni… in NewJSAsyncFuncObject()
2417 JSHClass::Cast(thread_->GlobalConstants()->GetCompletionRecordClass().GetTaggedObject())); in NewCompletionRecord()
2428 JSHClass::Cast(thread_->GlobalConstants()->GetGeneratorContextClass().GetTaggedObject())); in NewGeneratorContext()
2495 obj = JSHandle<JSPrimitiveRef>::Cast(NewJSObjectByConstructor(stringFunc)); in NewJSString()
2499 obj = JSHandle<JSPrimitiveRef>::Cast(newObject); in NewJSString()
2512 return JSHandle<GlobalEnv>(thread_, GlobalEnv::Cast(header)); in NewGlobalEnv()
2520 JSHClass::Cast(thread_->GlobalConstants()->GetEnvClass().GetTaggedObject()), size); in NewLexicalEnv()
2530 JSHClass::Cast(thread_->GlobalConstants()->GetSymbolClass().GetTaggedObject())); in NewEmptySymbol()
2531 JSHandle<JSSymbol> obj(thread_, JSSymbol::Cast(header)); in NewEmptySymbol()
2542 JSHClass::Cast(thread_->GlobalConstants()->GetSymbolClass().GetTaggedObject())); in NewJSSymbol()
2543 JSHandle<JSSymbol> obj(thread_, JSSymbol::Cast(header)); in NewJSSymbol()
2561 JSHClass::Cast(thread_->GlobalConstants()->GetSymbolClass().GetTaggedObject())); in NewPrivateNameSymbol()
2562 JSHandle<JSSymbol> obj(thread_, JSSymbol::Cast(header)); in NewPrivateNameSymbol()
2574 JSHClass::Cast(thread_->GlobalConstants()->GetSymbolClass().GetTaggedObject())); in NewWellKnownSymbol()
2575 JSHandle<JSSymbol> obj(thread_, JSSymbol::Cast(header)); in NewWellKnownSymbol()
2587 JSHClass::Cast(thread_->GlobalConstants()->GetSymbolClass().GetTaggedObject())); in NewPublicSymbol()
2588 JSHandle<JSSymbol> obj(thread_, JSSymbol::Cast(header)); in NewPublicSymbol()
2640 JSHClass::Cast(thread_->GlobalConstants()->GetAccessorDataClass().GetTaggedObject())); in NewAccessorData()
2641 JSHandle<AccessorData> acc(thread_, AccessorData::Cast(header)); in NewAccessorData()
2651 JSHClass::Cast(thread_->GlobalConstants()->GetInternalAccessorClass().GetTaggedObject())); in NewInternalAccessor()
2652 JSHandle<InternalAccessor> obj(thread_, InternalAccessor::Cast(header)); in NewInternalAccessor()
2656 return JSHandle<AccessorData>::Cast(obj); in NewInternalAccessor()
2663 JSHClass::Cast(thread_->GlobalConstants()->GetCapabilityRecordClass().GetTaggedObject())); in NewPromiseCapability()
2675 JSHClass::Cast(thread_->GlobalConstants()->GetReactionsRecordClass().GetTaggedObject())); in NewPromiseReaction()
2687 … JSHClass::Cast(thread_->GlobalConstants()->GetPromiseIteratorRecordClass().GetTaggedObject())); in NewPromiseIteratorRecord()
2698 JSHClass::Cast(thread_->GlobalConstants()->GetMicroJobQueueClass().GetTaggedObject())); in NewMicroJobQueue()
2710 JSHClass::Cast(thread_->GlobalConstants()->GetPendingJobClass().GetTaggedObject())); in NewPendingJob()
2733 …auto jsProxyCallableClass = JSHClass::Cast(globalConst->GetJSProxyCallableClass().GetTaggedObject(… in NewJSProxy()
2734 …auto jsProxyConstructClass = JSHClass::Cast(globalConst->GetJSProxyConstructClass().GetTaggedObjec… in NewJSProxy()
2739 … JSHClass::Cast(thread_->GlobalConstants()->GetJSProxyOrdinaryClass().GetTaggedObject())); in NewJSProxy()
2773 … PropertyDescriptor realmDesc(thread_, JSHandle<JSTaggedValue>::Cast(realmObj), true, false, true); in NewJSRealm()
2775 JSObject::DefineOwnProperty(thread_, JSHandle<JSObject>::Cast(realm), realmkey, realmDesc); in NewJSRealm()
2798 …JSHClass *arrayClass = JSHClass::Cast(thread_->GlobalConstants()->GetArrayClass().GetTaggedObject(… in NewTaggedArray()
2896 TaggedArray *srcElements = TaggedArray::Cast(thisObjHandle->GetElements().GetTaggedObject()); in NewAndCopyTaggedArrayByObject()
2918 …MutantTaggedArray *srcElements = MutantTaggedArray::Cast(thisObjHandle->GetElements().GetTaggedObj… in NewAndCopyMutantTaggedArrayByObject()
2948 auto arrayClass = JSHClass::Cast(thread_->GlobalConstants()->GetArrayClass().GetTaggedObject()); in NewTaggedArrayWithoutInit()
2978 …auto arrayClass = JSHClass::Cast(thread_->GlobalConstants()->GetMutantTaggedArrayClass().GetTagged… in NewMutantTaggedArrayWithoutInit()
3014 JSHClass::Cast(thread_->GlobalConstants()->GetCOWArrayClass().GetTaggedObject()), size); in NewCOWTaggedArray()
3027 …JSHClass::Cast(thread_->GlobalConstants()->GetCOWMutantTaggedArrayClass().GetTaggedObject()), size… in NewCOWMutantTaggedArray()
3040 … JSHClass::Cast(thread_->GlobalConstants()->GetMutantTaggedArrayClass().GetTaggedObject()), size); in NewMutantTaggedArray()
3049 return JSHandle<TaggedHashArray>::Cast(EmptyArray()); in NewTaggedHashArray()
3054 JSHClass::Cast(thread_->GlobalConstants()->GetArrayClass().GetTaggedObject()), size); in NewTaggedHashArray()
3064 …JSHClass *arrayClass = JSHClass::Cast(thread_->GlobalConstants()->GetByteArrayClass().GetTaggedObj… in NewByteArray()
3094 JSHClass::Cast(globalConst->GetLinkedNode().GetTaggedObject()), LinkedNode::SIZE); in NewLinkedNode()
3107 JSHClass::Cast(globalConst->GetRBTreeNode().GetTaggedObject()), RBTreeNode::SIZE); in NewTreeNode()
3120 JSHClass::Cast(thread_->GlobalConstants()->GetDictionaryClass().GetTaggedObject()), size); in NewDictionaryArray()
3137 …arrayClass = JSHClass::Cast(thread_->GlobalConstants()->GetMutantTaggedArrayClass().GetTaggedObjec… in ExtendArray()
3139 arrayClass = JSHClass::Cast(thread_->GlobalConstants()->GetArrayClass().GetTaggedObject()); in ExtendArray()
3183 JSHClass::Cast(thread_->GlobalConstants()->GetArrayClass().GetTaggedObject()), size); in CopyPartArray()
3213 … cowArrayClass = JSHClass::Cast(thread_->GlobalConstants()->GetCOWMutantTaggedArrayClass() in CopyArray()
3216 … cowArrayClass = JSHClass::Cast(thread_->GlobalConstants()->GetCOWArrayClass().GetTaggedObject()); in CopyArray()
3222 …arrayClass = JSHClass::Cast(thread_->GlobalConstants()->GetMutantTaggedArrayClass().GetTaggedObjec… in CopyArray()
3224 … arrayClass = JSHClass::Cast(thread_->GlobalConstants()->GetArrayClass().GetTaggedObject()); in CopyArray()
3248 JSHClass::Cast(thread_->GlobalConstants()->GetArrayClass().GetTaggedObject()), size); in CopyFromEnumCache()
3265 …JSHandle<LayoutInfo> layoutInfoHandle = JSHandle<LayoutInfo>::Cast(NewTaggedArrayWithoutInit(array… in CreateLayoutInfo()
3278 JSHandle<LayoutInfo>::Cast(newArray)->Initialize(thread_, oldArray->GetExtraLength()); in ExtendLayoutInfo()
3285 return JSHandle<LayoutInfo>::Cast(newArray); in ExtendLayoutInfo()
3292 JSHandle<TaggedArray>::Cast(old), newLength, newLength, JSTaggedValue::Hole(), in CopyLayoutInfo()
3313 JSHClass::Cast(thread_->GlobalConstants()->GetConstantPoolClass().GetTaggedObject()), size); in NewConstantPool()
3323 JSHClass::Cast(thread_->GlobalConstants()->GetProgramClass().GetTaggedObject())); in NewProgram()
3334 JSHandle<JSHClass> hclass = JSHandle<JSHClass>::Cast(env->GetModuleNamespaceClass()); in NewModuleNamespace()
3337 JSHandle<ModuleNamespace> moduleNamespace = JSHandle<ModuleNamespace>::Cast(obj); in NewModuleNamespace()
3348 JSHandle<JSHClass> hclass = JSHandle<JSHClass>::Cast(env->GetNativeModuleFailureInfoClass()); in NewNativeModuleFailureInfo()
3351 …le<NativeModuleFailureInfo> nativeModuleFailureInfo = JSHandle<NativeModuleFailureInfo>::Cast(obj); in NewNativeModuleFailureInfo()
3488 JSHClass::Cast(thread_->GlobalConstants()->GetPropertyBoxClass().GetTaggedObject())); in NewPropertyBox()
3498 JSHClass::Cast(thread_->GlobalConstants()->GetProtoChangeMarkerClass().GetTaggedObject())); in NewProtoChangeMarker()
3508 JSHClass::Cast(thread_->GlobalConstants()->GetMarkerCellClass().GetTaggedObject())); in NewMarkerCell()
3518 JSHClass::Cast(thread_->GlobalConstants()->GetProtoChangeDetailsClass().GetTaggedObject())); in NewProtoChangeDetails()
3530 … JSHClass::Cast(thread_->GlobalConstants()->GetProfileTypeInfoClass().GetTaggedObject()), size); in NewProfileTypeInfo()
3555 JSHClass::Cast(thread_->GlobalConstants()->GetBigIntClass().GetTaggedObject()), size); in NewBigInt()
3585 auto queue = JSHandle<TaggedQueue>::Cast(NewTaggedArray(queueLength, JSTaggedValue::Hole())); in NewTaggedQueue()
3756 JSHandle<JSHClass> hclass = JSHandle<JSHClass>::Cast(env->GetPromiseReactionFunctionClass()); in CreateJSPromiseReactionsFunction()
3759 JSHandle<JSPromiseReactionsFunction>::Cast(NewJSObject(hclass)); in CreateJSPromiseReactionsFunction()
3762 JSHandle<JSFunction> function = JSHandle<JSFunction>::Cast(reactionsFunction); in CreateJSPromiseReactionsFunction()
3766 SetNativePointerToFunctionFromMethod(JSHandle<JSFunctionBase>::Cast(reactionsFunction), method); in CreateJSPromiseReactionsFunction()
3774 JSHandle<JSHClass> hclass = JSHandle<JSHClass>::Cast(env->GetPromiseExecutorFunctionClass()); in CreateJSPromiseExecutorFunction()
3776 JSHandle<JSPromiseExecutorFunction>::Cast(NewJSObject(hclass)); in CreateJSPromiseExecutorFunction()
3778 JSHandle<JSFunction> function = JSHandle<JSFunction>::Cast(executorFunction); in CreateJSPromiseExecutorFunction()
3782 SetNativePointerToFunctionFromMethod(JSHandle<JSFunctionBase>::Cast(executorFunction), method); in CreateJSPromiseExecutorFunction()
3790 … JSHandle<JSHClass> hclass = JSHandle<JSHClass>::Cast(env->GetAsyncModuleFulfilledFunctionClass()); in CreateJSAsyncModuleFulfilledFunction()
3792 JSHandle<JSAsyncModuleFulfilledFunction>::Cast(NewJSObject(hclass)); in CreateJSAsyncModuleFulfilledFunction()
3794 JSHandle<JSFunction> function = JSHandle<JSFunction>::Cast(fulfilledFunction); in CreateJSAsyncModuleFulfilledFunction()
3798 SetNativePointerToFunctionFromMethod(JSHandle<JSFunctionBase>::Cast(fulfilledFunction), method); in CreateJSAsyncModuleFulfilledFunction()
3806 … JSHandle<JSHClass> hclass = JSHandle<JSHClass>::Cast(env->GetAsyncModuleRejectedFunctionClass()); in CreateJSAsyncModuleRejectedFunction()
3808 JSHandle<JSAsyncModuleRejectedFunction>::Cast(NewJSObject(hclass)); in CreateJSAsyncModuleRejectedFunction()
3810 JSHandle<JSFunction> function = JSHandle<JSFunction>::Cast(rejectedFunction); in CreateJSAsyncModuleRejectedFunction()
3814 SetNativePointerToFunctionFromMethod(JSHandle<JSFunctionBase>::Cast(rejectedFunction), method); in CreateJSAsyncModuleRejectedFunction()
3822 …JSHandle<JSHClass> hclass = JSHandle<JSHClass>::Cast(env->GetPromiseAllResolveElementFunctionClass… in NewJSPromiseAllResolveElementFunction()
3824 JSHandle<JSPromiseAllResolveElementFunction>::Cast(NewJSObject(hclass)); in NewJSPromiseAllResolveElementFunction()
3825 JSFunction::InitializeJSFunction(thread_, JSHandle<JSFunction>::Cast(function)); in NewJSPromiseAllResolveElementFunction()
3829 SetNativePointerToFunctionFromMethod(JSHandle<JSFunctionBase>::Cast(function), method); in NewJSPromiseAllResolveElementFunction()
3835 JSFunction::SetFunctionLength(thread_, JSHandle<JSFunction>::Cast(function), JSTaggedValue(1)); in NewJSPromiseAllResolveElementFunction()
3842 …JSHandle<JSHClass> hclass = JSHandle<JSHClass>::Cast(env->GetPromiseAnyRejectElementFunctionClass(… in NewJSPromiseAnyRejectElementFunction()
3844 JSHandle<JSPromiseAnyRejectElementFunction>::Cast(NewJSObject(hclass)); in NewJSPromiseAnyRejectElementFunction()
3845 JSFunction::InitializeJSFunction(thread_, JSHandle<JSFunction>::Cast(function)); in NewJSPromiseAnyRejectElementFunction()
3849 SetNativePointerToFunctionFromMethod(JSHandle<JSFunctionBase>::Cast(function), method); in NewJSPromiseAnyRejectElementFunction()
3855 JSFunction::SetFunctionLength(thread_, JSHandle<JSFunction>::Cast(function), JSTaggedValue(1)); in NewJSPromiseAnyRejectElementFunction()
3862 …JSHandle<JSHClass> hclass = JSHandle<JSHClass>::Cast(env->GetPromiseAllSettledElementFunctionClass… in NewJSPromiseAllSettledResolveElementFunction()
3864 JSHandle<JSPromiseAllSettledElementFunction>::Cast(NewJSObject(hclass)); in NewJSPromiseAllSettledResolveElementFunction()
3865 JSFunction::InitializeJSFunction(thread_, JSHandle<JSFunction>::Cast(function)); in NewJSPromiseAllSettledResolveElementFunction()
3869 SetNativePointerToFunctionFromMethod(JSHandle<JSFunctionBase>::Cast(function), method); in NewJSPromiseAllSettledResolveElementFunction()
3875 JSFunction::SetFunctionLength(thread_, JSHandle<JSFunction>::Cast(function), JSTaggedValue(1)); in NewJSPromiseAllSettledResolveElementFunction()
3882 …JSHandle<JSHClass> hclass = JSHandle<JSHClass>::Cast(env->GetPromiseAllSettledElementFunctionClass… in NewJSPromiseAllSettledRejectElementFunction()
3884 JSHandle<JSPromiseAllSettledElementFunction>::Cast(NewJSObject(hclass)); in NewJSPromiseAllSettledRejectElementFunction()
3885 JSFunction::InitializeJSFunction(thread_, JSHandle<JSFunction>::Cast(function)); in NewJSPromiseAllSettledRejectElementFunction()
3889 SetNativePointerToFunctionFromMethod(JSHandle<JSFunctionBase>::Cast(function), method); in NewJSPromiseAllSettledRejectElementFunction()
3895 JSFunction::SetFunctionLength(thread_, JSHandle<JSFunction>::Cast(function), JSTaggedValue(1)); in NewJSPromiseAllSettledRejectElementFunction()
3902 JSHandle<JSHClass> hclass = JSHandle<JSHClass>::Cast(env->GetPromiseFinallyFunctionClass()); in NewJSPromiseThenFinallyFunction()
3904 JSHandle<JSPromiseFinallyFunction>::Cast(NewJSObject(hclass)); in NewJSPromiseThenFinallyFunction()
3905 JSFunction::InitializeJSFunction(thread_, JSHandle<JSFunction>::Cast(function)); in NewJSPromiseThenFinallyFunction()
3909 SetNativePointerToFunctionFromMethod(JSHandle<JSFunctionBase>::Cast(function), method); in NewJSPromiseThenFinallyFunction()
3912 JSFunction::SetFunctionLength(thread_, JSHandle<JSFunction>::Cast(function), JSTaggedValue(1)); in NewJSPromiseThenFinallyFunction()
3919 JSHandle<JSHClass> hclass = JSHandle<JSHClass>::Cast(env->GetPromiseFinallyFunctionClass()); in NewJSPromiseCatchFinallyFunction()
3921 JSHandle<JSPromiseFinallyFunction>::Cast(NewJSObject(hclass)); in NewJSPromiseCatchFinallyFunction()
3922 JSFunction::InitializeJSFunction(thread_, JSHandle<JSFunction>::Cast(function)); in NewJSPromiseCatchFinallyFunction()
3926 SetNativePointerToFunctionFromMethod(JSHandle<JSFunctionBase>::Cast(function), method); in NewJSPromiseCatchFinallyFunction()
3929 JSFunction::SetFunctionLength(thread_, JSHandle<JSFunction>::Cast(function), JSTaggedValue(1)); in NewJSPromiseCatchFinallyFunction()
3936 JSHandle<JSHClass> hclass = JSHandle<JSHClass>::Cast( in NewJSAsyGenResNextRetProRstFulfilledFtn()
3939 JSHandle<JSAsyncGeneratorResNextRetProRstFtn>::Cast(NewJSObject(hclass)); in NewJSAsyGenResNextRetProRstFulfilledFtn()
3940 JSFunction::InitializeJSFunction(thread_, JSHandle<JSFunction>::Cast(function)); in NewJSAsyGenResNextRetProRstFulfilledFtn()
3944 SetNativePointerToFunctionFromMethod(JSHandle<JSFunctionBase>::Cast(function), method); in NewJSAsyGenResNextRetProRstFulfilledFtn()
3946 JSFunction::SetFunctionLength(thread_, JSHandle<JSFunction>::Cast(function), JSTaggedValue(1)); in NewJSAsyGenResNextRetProRstFulfilledFtn()
3953 JSHandle<JSHClass> hclass = JSHandle<JSHClass>::Cast(env->GetAsyncFromSyncIterUnwarpClass()); in NewJSAsyncFromSyncIterUnwarpFunction()
3955 JSHandle<JSAsyncFromSyncIterUnwarpFunction>::Cast(NewJSObject(hclass)); in NewJSAsyncFromSyncIterUnwarpFunction()
3956 JSFunction::InitializeJSFunction(thread_, JSHandle<JSFunction>::Cast(function)); in NewJSAsyncFromSyncIterUnwarpFunction()
3959 SetNativePointerToFunctionFromMethod(JSHandle<JSFunctionBase>::Cast(function), method); in NewJSAsyncFromSyncIterUnwarpFunction()
3961 JSFunction::SetFunctionLength(thread_, JSHandle<JSFunction>::Cast(function), JSTaggedValue(1)); in NewJSAsyncFromSyncIterUnwarpFunction()
3968 JSHandle<JSHClass> hclass = JSHandle<JSHClass>::Cast( in NewJSAsyGenResNextRetProRstRejectedFtn()
3971 JSHandle<JSAsyncGeneratorResNextRetProRstFtn>::Cast(NewJSObject(hclass)); in NewJSAsyGenResNextRetProRstRejectedFtn()
3972 JSFunction::InitializeJSFunction(thread_, JSHandle<JSFunction>::Cast(function)); in NewJSAsyGenResNextRetProRstRejectedFtn()
3976 SetNativePointerToFunctionFromMethod(JSHandle<JSFunctionBase>::Cast(function), method); in NewJSAsyGenResNextRetProRstRejectedFtn()
3978 JSFunction::SetFunctionLength(thread_, JSHandle<JSFunction>::Cast(function), JSTaggedValue(1)); in NewJSAsyGenResNextRetProRstRejectedFtn()
3985 …JSHandle<JSHClass> hclass = JSHandle<JSHClass>::Cast(env->GetPromiseValueThunkOrThrowerFunctionCla… in NewJSPromiseValueThunkFunction()
3987 JSHandle<JSPromiseValueThunkOrThrowerFunction>::Cast(NewJSObject(hclass)); in NewJSPromiseValueThunkFunction()
3988 JSFunction::InitializeJSFunction(thread_, JSHandle<JSFunction>::Cast(function)); in NewJSPromiseValueThunkFunction()
3992 SetNativePointerToFunctionFromMethod(JSHandle<JSFunctionBase>::Cast(function), method); in NewJSPromiseValueThunkFunction()
3994 JSFunction::SetFunctionLength(thread_, JSHandle<JSFunction>::Cast(function), JSTaggedValue(0)); in NewJSPromiseValueThunkFunction()
4001 …JSHandle<JSHClass> hclass = JSHandle<JSHClass>::Cast(env->GetPromiseValueThunkOrThrowerFunctionCla… in NewJSPromiseThrowerFunction()
4003 JSHandle<JSPromiseValueThunkOrThrowerFunction>::Cast(NewJSObject(hclass)); in NewJSPromiseThrowerFunction()
4004 JSFunction::InitializeJSFunction(thread_, JSHandle<JSFunction>::Cast(function)); in NewJSPromiseThrowerFunction()
4007 SetNativePointerToFunctionFromMethod(JSHandle<JSFunctionBase>::Cast(function), method); in NewJSPromiseThrowerFunction()
4009 JSFunction::SetFunctionLength(thread_, JSHandle<JSFunction>::Cast(function), JSTaggedValue(0)); in NewJSPromiseThrowerFunction()
4015 EcmaString *str = EcmaString::Cast(key->GetTaggedObject()); in InternString()
4027 TransitionHandler *handler = TransitionHandler::Cast(heap_->AllocateYoungOrHugeObject( in NewTransitionHandler()
4028 JSHClass::Cast(thread_->GlobalConstants()->GetTransitionHandlerClass().GetTaggedObject()))); in NewTransitionHandler()
4038 PrototypeHandler::Cast(heap_->AllocateYoungOrHugeObject( in NewPrototypeHandler()
4039 … JSHClass::Cast(thread_->GlobalConstants()->GetPrototypeHandlerClass().GetTaggedObject()))); in NewPrototypeHandler()
4053 TransWithProtoHandler::Cast(heap_->AllocateYoungOrHugeObject( in NewTransWithProtoHandler()
4054 … JSHClass::Cast(thread_->GlobalConstants()->GetTransWithProtoHandlerClass().GetTaggedObject()))); in NewTransWithProtoHandler()
4066 StoreAOTHandler::Cast(heap_->AllocateYoungOrHugeObject( in NewStoreAOTHandler()
4067 … JSHClass::Cast(thread_->GlobalConstants()->GetStoreAOTHandlerClass().GetTaggedObject()))); in NewStoreAOTHandler()
4079 JSHClass::Cast(thread_->GlobalConstants()->GetPromiseRecordClass().GetTaggedObject())); in NewPromiseRecord()
4089 …JSHClass::Cast(thread_->GlobalConstants()->GetPromiseResolvingFunctionsRecordClass().GetTaggedObje… in NewResolvingFunctionsRecord()
4183 JSHandle<TaggedArray> hclassCacheArr = JSHandle<TaggedArray>::Cast(maybeCache); in GetObjectLiteralRootHClass()
4236 JSHClass::Cast(thread_->GlobalConstants()->GetMachineCodeClass().GetTaggedObject()), in NewMachineCodeObject()
4246 JSHClass::Cast(thread_->GlobalConstants()->GetMachineCodeClass().GetTaggedObject()), in NewMachineCodeObject()
4254 MachineCode *code = MachineCode::Cast(obj); in SetMachineCodeObjectData()
4256 LOG_FULL(FATAL) << "machine code cast failed"; in SetMachineCodeObjectData()
4272 … JSHClass::Cast(thread_->GlobalConstants()->GetClassInfoExtractorHClass().GetTaggedObject())); in NewClassInfoExtractor()
4616 JSHClass::Cast(thread_->GlobalConstants()->GetArrayClass().GetTaggedObject()), size); in CopyDeque()
4654 JSHClass::Cast(thread_->GlobalConstants()->GetArrayClass().GetTaggedObject()), size); in CopyQueue()
4816 return JSHandle<JSAPIList>::Cast(NewJSObjectByConstructor(function)); in NewJSAPIList()
4823 return JSHandle<JSAPILinkedList>::Cast(NewJSObjectByConstructor(function)); in NewJSAPILinkedList()
4842 JSHClass::Cast(thread_->GlobalConstants()->GetImportEntryClass().GetTaggedObject())); in NewImportEntry()
4865 JSHClass::Cast(thread_->GlobalConstants()->GetLocalExportEntryClass().GetTaggedObject())); in NewLocalExportEntry()
4889 … JSHClass::Cast(thread_->GlobalConstants()->GetIndirectExportEntryClass().GetTaggedObject())); in NewIndirectExportEntry()
4910 JSHClass::Cast(thread_->GlobalConstants()->GetStarExportEntryClass().GetTaggedObject())); in NewStarExportEntry()
4920 JSHClass::Cast(thread_->GlobalConstants()->GetSourceTextModuleClass().GetTaggedObject())); in NewSourceTextModule()
4967 JSHClass::Cast(thread_->GlobalConstants()->GetResolvedBindingClass().GetTaggedObject())); in NewResolvedBindingRecord()
4987 … JSHClass::Cast(thread_->GlobalConstants()->GetResolvedIndexBindingClass().GetTaggedObject())); in NewResolvedIndexBindingRecord()
4998 JSHClass::Cast(thread_->GlobalConstants()->GetCellRecordClass().GetTaggedObject())); in NewCellRecord()
5050 JSHandle<JSObject> obj(thread_, JSObject::Cast(NewOldSpaceObject(jshclass))); in NewOldSpaceJSObject()
5066 … JSHandle<JSFunction>::Cast(vm_->GetGlobalEnv()->GetArrayFunction())->GetProtoOrHClass()); in NewJSStableArrayWithElements()
5067 JSHandle<JSArray> array = JSHandle<JSArray>::Cast(NewJSObject(cls)); in NewJSStableArrayWithElements()
5081 JSHandle<JSHClass> hclass = JSHandle<JSHClass>::Cast(env->GetAsyncGeneratorFunctionClass()); in NewJSAsyncGeneratorFunction()
5082 JSHandle<JSFunction> asyncGeneratorFunc = JSHandle<JSFunction>::Cast(NewJSObject(hclass)); in NewJSAsyncGeneratorFunction()
5092 …JSHClass::Cast(thread_->GlobalConstants()->GetAsyncGeneratorRequestRecordClass().GetTaggedObject()… in NewAsyncGeneratorRequest()
5104 … JSHClass::Cast(thread_->GlobalConstants()->GetAsyncIteratorRecordClass().GetTaggedObject())); in NewAsyncIteratorRecord()
5117 … JSHClass::Cast(thread_->GlobalConstants()->GetAOTLiteralInfoClass().GetTaggedObject()), size); in NewAOTLiteralInfo()
5128 … JSHClass::Cast(thread_->GlobalConstants()->GetExtraProfileTypeInfoClass().GetTaggedObject())); in NewExtraProfileTypeInfo()
5139 … JSHClass::Cast(thread_->GlobalConstants()->GetProfileTypeInfoCell0Class().GetTaggedObject())); in NewProfileTypeInfoCell()
5154 JSHClass::Cast(globalConstants->GetFunctionTemplateClass().GetTaggedObject())); in NewFunctionTemplate()
5168 JSHClass::Cast(thread_->GlobalConstants()->GetVTableClass().GetTaggedObject()), size); in NewVTable()
5180 JSHClass::Cast(thread_->GlobalConstants()->GetClassLiteralClass().GetTaggedObject())); in NewClassLiteral()
5198 hclass = JSHandle<JSHClass>::Cast(env->GetFunctionClassWithProto()); in NewJSFunction()
5202 hclass = JSHandle<JSHClass>::Cast(env->GetFunctionClassWithoutProto()); in NewJSFunction()
5206 hclass = JSHandle<JSHClass>::Cast(env->GetGeneratorFunctionClass()); in NewJSFunction()
5212 hclass = JSHandle<JSHClass>::Cast(env->GetAsyncFunctionClass()); in NewJSFunction()
5216 hclass = JSHandle<JSHClass>::Cast(env->GetAsyncGeneratorFunctionClass()); in NewJSFunction()
5234 JSHandle<JSHClass> hclass = JSHandle<JSHClass>::Cast(env->GetFunctionClassWithoutProto()); in NewJSFunction()
5310 LayoutInfo *layout = LayoutInfo::Cast(layoutHandle.GetTaggedValue().GetTaggedObject()); in CreateLargeJSObjectWithProperties()
5413 LayoutInfo *layout = LayoutInfo::Cast(layoutHandle.GetTaggedValue().GetTaggedObject()); in CreateLargeJSObjectWithNamedProperties()