/arkcompiler/ets_runtime/ecmascript/mem/ |
D | object_xray.h | 140 JSObject::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody() 143 JSAsyncFromSyncIterator::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody() 146 JSGlobalObject::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody() 149 auto jsFunctionBase = JSFunctionBase::Cast(object); in VisitObjectBody() 154 auto jsFunction = JSFunction::Cast(object); in VisitObjectBody() 159 auto jsGeneratorFunction = JSGeneratorFunction::Cast(object); in VisitObjectBody() 164 auto jsGeneratorFunction = JSAsyncGeneratorFunction::Cast(object); in VisitObjectBody() 169 auto jsProxyRevocFunction = JSProxyRevocFunction::Cast(object); in VisitObjectBody() 174 auto jsPromiseReactionsFunction = JSPromiseReactionsFunction::Cast(object); in VisitObjectBody() 179 auto jsPromiseExecutorFunction = JSPromiseExecutorFunction::Cast(object); in VisitObjectBody() [all …]
|
/arkcompiler/ets_runtime/ecmascript/containers/ |
D | containers_vector.cpp | 60 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIVector()) { in Add() 61 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Add() 67 JSAPIVector::Add(thread, JSHandle<JSAPIVector>::Cast(self), value); in Add() 82 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIVector()) { in Insert() 83 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Insert() 94 JSAPIVector::Insert(thread, JSHandle<JSAPIVector>::Cast(self), value, indexInt); in Insert() 109 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIVector()) { in SetLength() 110 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in SetLength() 122 …JSAPIVector::SetLength(thread, JSHandle<JSAPIVector>::Cast(self), JSTaggedValue::ToUint32(thread, … in SetLength() 136 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIVector()) { in GetCapacity() [all …]
|
D | containers_lightweightset.cpp | 44 JSHandle<JSAPILightWeightSet> lightweightSet = JSHandle<JSAPILightWeightSet>::Cast(obj); in LightWeightSetConstructor() 63 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPILightWeightSet()) { in Add() 64 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Add() 72 bool flag = JSAPILightWeightSet::Add(thread, JSHandle<JSAPILightWeightSet>::Cast(self), value); in Add() 84 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPILightWeightSet()) { in AddAll() 85 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in AddAll() 95 … if (value->IsJSProxy() && JSHandle<JSProxy>::Cast(value)->GetTarget().IsJSAPILightWeightSet()) { in AddAll() 96 value = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(value)->GetTarget()); in AddAll() 107 …return JSTaggedValue(JSAPILightWeightSet::AddAll(thread, JSHandle<JSAPILightWeightSet>::Cast(self)… in AddAll() 118 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPILightWeightSet()) { in IsEmpty() [all …]
|
D | containers_treemap.cpp | 50 JSHandle<JSAPITreeMap> map = JSHandle<JSAPITreeMap>::Cast(obj); in TreeMapConstructor() 68 TaggedTreeMap::Cast(internal.GetTaggedObject())->SetCompare(thread, compareFn.GetTaggedValue()); in TreeMapConstructor() 81 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPITreeMap()) { in Set() 82 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Set() 93 JSHandle<JSAPITreeMap> map = JSHandle<JSAPITreeMap>::Cast(self); in Set() 108 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPITreeMap()) { in Get() 109 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Get() 117 JSHandle<JSAPITreeMap> map = JSHandle<JSAPITreeMap>::Cast(self); in Get() 130 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPITreeMap()) { in Remove() 131 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Remove() [all …]
|
D | containers_treeset.cpp | 49 JSHandle<JSAPITreeSet> set = JSHandle<JSAPITreeSet>::Cast(obj); in TreeSetConstructor() 67 TaggedTreeSet::Cast(internal.GetTaggedObject())->SetCompare(thread, compareFn.GetTaggedValue()); in TreeSetConstructor() 80 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPITreeSet()) { in Add() 81 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Add() 90 JSHandle<JSAPITreeSet> set = JSHandle<JSAPITreeSet>::Cast(self); in Add() 104 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPITreeSet()) { in Remove() 105 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Remove() 113 JSHandle<JSAPITreeSet> set = JSHandle<JSAPITreeSet>::Cast(self); in Remove() 126 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPITreeSet()) { in Has() 127 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Has() [all …]
|
D | containers_hashmap.cpp | 51 JSHandle<JSAPIHashMap> hashMap = JSHandle<JSAPIHashMap>::Cast(obj); in HashMapConstructor() 67 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIHashMap()) { in Keys() 68 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Keys() 88 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIHashMap()) { in Values() 89 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Values() 109 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIHashMap()) { in Entries() 110 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Entries() 130 …if (thisHandle->IsJSProxy() && JSHandle<JSProxy>::Cast(thisHandle)->GetTarget().IsJSAPIHashMap()) { in ForEach() 131 … thisHandle = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(thisHandle)->GetTarget()); in ForEach() 148 JSHandle<JSAPIHashMap> hashMap = JSHandle<JSAPIHashMap>::Cast(thisHandle); in ForEach() [all …]
|
D | containers_lightweightmap.cpp | 49 JSHandle<JSAPILightWeightMap> lwMap = JSHandle<JSAPILightWeightMap>::Cast(obj); in LightWeightMapConstructor() 69 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPILightWeightMap()) { in Length() 70 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Length() 78 return JSTaggedValue(JSHandle<JSAPILightWeightMap>::Cast(self)->GetLength()); in Length() 90 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPILightWeightMap()) { in HasAll() 91 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in HasAll() 102 JSHandle<JSProxy>::Cast(lightWeightMap)->GetTarget().IsJSAPILightWeightMap()) { in HasAll() 103 …lightWeightMap = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(lightWeightMap)->GetTarge… in HasAll() 114 return JSAPILightWeightMap::HasAll(thread, JSHandle<JSAPILightWeightMap>::Cast(self), in HasAll() 115 JSHandle<JSAPILightWeightMap>::Cast(lightWeightMap)); in HasAll() [all …]
|
D | containers_linked_list.cpp | 46 JSHandle<JSAPILinkedList> linkedList = JSHandle<JSAPILinkedList>::Cast(obj); in LinkedListConstructor() 60 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPILinkedList()) { in Add() 61 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Add() 70 JSHandle<JSAPILinkedList> jsAPILinkedList = JSHandle<JSAPILinkedList>::Cast(self); in Add() 83 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPILinkedList()) { in AddFirst() 84 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in AddFirst() 93 JSHandle<JSAPILinkedList> jsAPILinkedList = JSHandle<JSAPILinkedList>::Cast(self); in AddFirst() 106 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPILinkedList()) { in GetFirst() 107 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in GetFirst() 114 JSHandle<JSAPILinkedList> jsAPILinkedList = JSHandle<JSAPILinkedList>::Cast(self); in GetFirst() [all …]
|
D | containers_list.cpp | 46 JSHandle<JSAPIList> list = JSHandle<JSAPIList>::Cast(obj); in ListConstructor() 62 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIList()) { in Add() 63 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Add() 72 JSHandle<JSAPIList> jSAPIList = JSHandle<JSAPIList>::Cast(self); in Add() 85 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIList()) { in Insert() 86 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Insert() 103 JSHandle<JSAPIList> jSAPIList = JSHandle<JSAPIList>::Cast(self); in Insert() 117 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIList()) { in GetFirst() 118 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in GetFirst() 125 JSHandle<JSAPIList> jSAPIList = JSHandle<JSAPIList>::Cast(self); in GetFirst() [all …]
|
D | containers_stack.cpp | 47 JSHandle<JSAPIStack> stack = JSHandle<JSAPIStack>::Cast(obj); in StackConstructor() 62 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIStack()) { in IsEmpty() 63 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in IsEmpty() 70 JSHandle<JSAPIStack> stack = JSHandle<JSAPIStack>::Cast(self); in IsEmpty() 85 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIStack()) { in Push() 86 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Push() 95 JSTaggedValue jsValue = JSAPIStack::Push(thread, JSHandle<JSAPIStack>::Cast(self), value); in Push() 108 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIStack()) { in Peek() 109 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Peek() 117 JSHandle<JSAPIStack> stack = JSHandle<JSAPIStack>::Cast(self); in Peek() [all …]
|
D | containers_arraylist.cpp | 62 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIArrayList()) { in Add() 63 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Add() 72 … return GetTaggedBoolean(JSAPIArrayList::Add(thread, JSHandle<JSAPIArrayList>::Cast(self), value)); in Add() 84 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIArrayList()) { in Insert() 85 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Insert() 102 …JSAPIArrayList::Insert(thread, JSHandle<JSAPIArrayList>::Cast(self), value, JSTaggedValue::ToUint3… in Insert() 117 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIArrayList()) { in Clear() 118 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Clear() 126 JSAPIArrayList::Clear(thread, JSHandle<JSAPIArrayList>::Cast(self)); in Clear() 140 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIArrayList()) { in Clone() [all …]
|
D | containers_deque.cpp | 62 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIDeque()) { in InsertFront() 63 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in InsertFront() 72 JSAPIDeque::InsertFront(thread, JSHandle<JSAPIDeque>::Cast(self), value); in InsertFront() 87 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIDeque()) { in InsertEnd() 88 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in InsertEnd() 97 JSAPIDeque::InsertEnd(thread, JSHandle<JSAPIDeque>::Cast(self), value); in InsertEnd() 111 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIDeque()) { in GetFirst() 112 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in GetFirst() 120 JSHandle<JSAPIDeque> deque = JSHandle<JSAPIDeque>::Cast(self); in GetFirst() 134 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIDeque()) { in GetLast() [all …]
|
D | containers_plainarray.cpp | 43 JSHandle<JSAPIPlainArray> plainArray = JSHandle<JSAPIPlainArray>::Cast(obj); in PlainArrayConstructor() 61 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIPlainArray()) { in Add() 62 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Add() 79 JSAPIPlainArray::Add(thread, JSHandle<JSAPIPlainArray>::Cast(self), key, value); in Add() 91 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIPlainArray()) { in Clear() 92 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Clear() 99 JSAPIPlainArray *array = JSAPIPlainArray::Cast(self->GetTaggedObject()); in Clear() 112 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIPlainArray()) { in Clone() 113 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Clone() 121 JSAPIPlainArray::Clone(thread, JSHandle<JSAPIPlainArray>::Cast(self)); in Clone() [all …]
|
D | containers_hashset.cpp | 48 JSHandle<JSAPIHashSet> hashSet = JSHandle<JSAPIHashSet>::Cast(obj); in HashSetConstructor() 64 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIHashSet()) { in Values() 65 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Values() 84 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIHashSet()) { in Entries() 85 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Entries() 106 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIHashSet()) { in Add() 107 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Add() 116 JSHandle<JSAPIHashSet> hashSet = JSHandle<JSAPIHashSet>::Cast(self); in Add() 131 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIHashSet()) { in Remove() 132 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Remove() [all …]
|
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/ |
D | pgo_profiler.cpp | 34 if (!JSFunction::Cast(calleeFunc)->GetMethod().IsMethod()) { in ProfileCall() 37 auto calleeMethod = Method::Cast(JSFunction::Cast(calleeFunc)->GetMethod()); in ProfileCall() 38 JSTaggedValue calleeRecordNameValue = JSFunction::Cast(calleeFunc)->GetRecordName(); in ProfileCall() 47 …if (pcOffset > 0 && currentFunc.IsJSFunction() && JSFunction::Cast(currentFunc)->GetMethod().IsMet… in ProfileCall() 48 auto currentMethod = Method::Cast(JSFunction::Cast(currentFunc)->GetMethod()); in ProfileCall() 49 JSTaggedValue currentRecordNameValue = JSFunction::Cast(currentFunc)->GetRecordName(); in ProfileCall() 84 if (funcValue.IsJSFunction() && JSFunction::Cast(funcValue)->GetMethod().IsMethod()) { in ProfileOpType() 85 auto jsMethod = Method::Cast(JSFunction::Cast(funcValue)->GetMethod()); in ProfileOpType() 86 JSTaggedValue recordNameValue = JSFunction::Cast(funcValue)->GetRecordName(); in ProfileOpType() 104 JSFunction *funcFunction = JSFunction::Cast(funcValue); in ProfileDefineClass() [all …]
|
/arkcompiler/ets_runtime/ecmascript/ |
D | object_factory.cpp | 210 …return NewEcmaHClass(JSHClass::Cast(thread_->GlobalConstants()->GetHClassClass().GetTaggedObject()… in NewEcmaHClass() 236 auto *pointer = JSNativePointer::Cast(data.GetTaggedObject()); in NewJSArrayBufferData() 378 JSNativePointer *native = JSNativePointer::Cast(data.GetTaggedObject()); in NewJSRegExpByteCodeData() 394 JSHClass::Cast(thread_->GlobalConstants()->GetHClassClass().GetTaggedObject()), classSize)); in NewEcmaHClass() 403 JSHandle<JSObject> obj(thread_, JSObject::Cast(NewObject(jshclass))); in NewJSObject() 562 auto layout = LayoutInfo::Cast(klass->GetLayout().GetTaggedObject()); in CloneObjectLiteral() 606 auto layout = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in CloneClassCtor() 633 … JSObject::Cast(NewNonMovableObject(jshclass, jshclass->GetInlinedProperties()))); in NewNonMovableJSObject() 643 JSHandle<JSPrimitiveRef> obj = JSHandle<JSPrimitiveRef>::Cast(NewJSObject(hclass)); in NewJSPrimitiveRef() 660 JSHandle<JSForInIterator> it = JSHandle<JSForInIterator>::Cast(NewJSObject(hclass)); in NewJSForinIterator() [all …]
|
D | js_map.cpp | 29 …JSHandle<LinkedHashMap> mapHandle(thread, LinkedHashMap::Cast(map->GetLinkedMap().GetTaggedObject(… in Set() 37 …JSHandle<LinkedHashMap> mapHandle(thread, LinkedHashMap::Cast(map->GetLinkedMap().GetTaggedObject(… in Delete() 48 LinkedHashMap *linkedMap = LinkedHashMap::Cast(map->GetLinkedMap().GetTaggedObject()); in Clear() 49 …JSHandle<LinkedHashMap> mapHandle(thread, LinkedHashMap::Cast(map->GetLinkedMap().GetTaggedObject(… in Clear() 56 return LinkedHashMap::Cast(GetLinkedMap().GetTaggedObject())->Has(key); in Has() 61 return LinkedHashMap::Cast(GetLinkedMap().GetTaggedObject())->Get(key); in Get() 66 return LinkedHashMap::Cast(GetLinkedMap().GetTaggedObject())->NumberOfElements(); in GetSize() 72 return LinkedHashMap::Cast(GetLinkedMap().GetTaggedObject())->GetKey(entry); in GetKey() 78 return LinkedHashMap::Cast(GetLinkedMap().GetTaggedObject())->GetValue(entry); in GetValue()
|
D | js_weak_container.cpp | 30 …JSHandle<LinkedHashMap> mapHandle(thread, LinkedHashMap::Cast(map->GetLinkedMap().GetTaggedObject(… in Set() 38 …JSHandle<LinkedHashMap> mapHandle(thread, LinkedHashMap::Cast(map->GetLinkedMap().GetTaggedObject(… in Delete() 52 return LinkedHashMap::Cast(GetLinkedMap().GetTaggedObject())->Has(key); in Has() 57 return LinkedHashMap::Cast(GetLinkedMap().GetTaggedObject())->Get(key); in Get() 62 return LinkedHashMap::Cast(GetLinkedMap().GetTaggedObject())->NumberOfElements(); in GetSize() 68 return LinkedHashMap::Cast(GetLinkedMap().GetTaggedObject())->GetKey(entry); in GetKey() 74 return LinkedHashMap::Cast(GetLinkedMap().GetTaggedObject())->GetValue(entry); in GetValue() 82 …JSHandle<LinkedHashSet> weakSetHandle(thread, LinkedHashSet::Cast(weakSet->GetLinkedSet().GetTagge… in Add() 90 …JSHandle<LinkedHashSet> weakSetHandle(thread, LinkedHashSet::Cast(weakSet->GetLinkedSet().GetTagge… in Delete() 103 return LinkedHashSet::Cast(GetLinkedSet().GetTaggedObject())->Has(value); in Has() [all …]
|
D | dump.cpp | 507 DumpStringClass(EcmaString::Cast(key.GetTaggedObject()), os); in DumpPropertyKey() 509 JSSymbol *sym = JSSymbol::Cast(key.GetTaggedObject()); in DumpPropertyKey() 510 DumpStringClass(EcmaString::Cast(sym->GetDescription().GetTaggedObject()), os); in DumpPropertyKey() 531 LayoutInfo *layoutInfo = LayoutInfo::Cast(attrs.GetTaggedObject()); in DumpHClass() 547 ProtoChangeMarker::Cast(marker.GetTaggedObject())->Dump(os); in DumpHClass() 556 ProtoChangeDetails::Cast(details.GetTaggedObject())->Dump(os); in DumpHClass() 564 length = WeakVector::Cast(supers.GetTaggedObject())->GetExtraLength(); in DumpHClass() 570 WeakVector::Cast(supers.GetTaggedObject())->Dump(os); in DumpHClass() 579 VTable::Cast(vtable.GetTaggedObject())->Dump(os); in DumpHClass() 599 DumpHClass(JSHClass::Cast(obj), os, true); in DumpClass() [all …]
|
D | js_relative_time_format.cpp | 62 … JSHandle<EcmaString> numberingSystemString = JSHandle<EcmaString>::Cast(numberingSystemValue); in InitializeRelativeTimeFormat() 175 ASSERT(JSHandle<JSTaggedValue>::Cast(unit)->IsString()); in SingularUnitToIcuUnit() 186 JSHandle<EcmaString> second = JSHandle<EcmaString>::Cast(globalConst->GetHandledSecondString()); in SingularUnitToIcuUnit() 187 JSHandle<EcmaString> minute = JSHandle<EcmaString>::Cast(globalConst->GetHandledMinuteString()); in SingularUnitToIcuUnit() 188 JSHandle<EcmaString> hour = JSHandle<EcmaString>::Cast(globalConst->GetHandledHourString()); in SingularUnitToIcuUnit() 189 JSHandle<EcmaString> day = JSHandle<EcmaString>::Cast(globalConst->GetHandledDayString()); in SingularUnitToIcuUnit() 190 JSHandle<EcmaString> week = JSHandle<EcmaString>::Cast(globalConst->GetHandledWeekString()); in SingularUnitToIcuUnit() 191 JSHandle<EcmaString> month = JSHandle<EcmaString>::Cast(globalConst->GetHandledMonthString()); in SingularUnitToIcuUnit() 192 … JSHandle<EcmaString> quarter = JSHandle<EcmaString>::Cast(globalConst->GetHandledQuarterString()); in SingularUnitToIcuUnit() 193 JSHandle<EcmaString> year = JSHandle<EcmaString>::Cast(globalConst->GetHandledYearString()); in SingularUnitToIcuUnit() [all …]
|
D | js_set.cpp | 29 …JSHandle<LinkedHashSet> setHandle(thread, LinkedHashSet::Cast(set->GetLinkedSet().GetTaggedObject(… in Add() 37 …JSHandle<LinkedHashSet> setHandle(thread, LinkedHashSet::Cast(set->GetLinkedSet().GetTaggedObject(… in Delete() 48 LinkedHashSet *linkedSet = LinkedHashSet::Cast(set->GetLinkedSet().GetTaggedObject()); in Clear() 49 …JSHandle<LinkedHashSet> setHandle(thread, LinkedHashSet::Cast(set->GetLinkedSet().GetTaggedObject(… in Clear() 56 return LinkedHashSet::Cast(GetLinkedSet().GetTaggedObject())->Has(value); in Has() 61 return LinkedHashSet::Cast(GetLinkedSet().GetTaggedObject())->NumberOfElements(); in GetSize() 67 return LinkedHashSet::Cast(GetLinkedSet().GetTaggedObject())->GetValue(entry); in GetValue()
|
D | object_operator.cpp | 45 …key_ = JSHandle<JSTaggedValue>::Cast(base::NumberHelper::NumberToString(thread_, JSTaggedValue(key… in HandleKey() 73 …key_ = JSHandle<JSTaggedValue>::Cast(base::NumberHelper::NumberToString(thread_, key.GetTaggedValu… in HandleKey() 89 … JSHandle<JSTaggedValue>::Cast(JSTaggedValue::ToString(thread_, keyHandle)))); in HandleKey() 109 auto hclass = JSHandle<JSObject>::Cast(holder_)->GetClass(); in UpdateIsTSHClass() 194 value_.Update(PropertyBox::Cast(value_->GetTaggedObject())->GetValue()); in FastGetValue() 199 AccessorData *accessor = AccessorData::Cast(value_->GetTaggedObject()); in FastGetValue() 232 result = PropertyBox::Cast(result.GetTaggedObject())->GetValue(); in ToPropertyDescriptor() 234 AccessorData *accessor = AccessorData::Cast(result.GetTaggedObject()); in ToPropertyDescriptor() 238 auto val = accessor->CallInternalGet(thread_, JSHandle<JSObject>::Cast(GetHolder())); in ToPropertyDescriptor() 306 TaggedArray *array = TaggedArray::Cast(obj->GetProperties().GetTaggedObject()); in LookupGlobal() [all …]
|
/arkcompiler/runtime_core/docs/ |
D | PBC2IR.md | 115 | i32tof32 | f32 Cast | 116 | i32tof64 | f64 Cast | 117 | u32tof32 | f32 Cast | 118 | u32tof64 | f64 Cast | 119 | i64tof32 | f32 Cast | 120 | i64tof64 | f64 Cast | 121 | u64tof32 | f32 Cast | 122 | u64tof64 | f64 Cast | 123 | f32tof64 | f64 Cast | 124 | f32toi32 | i32 Cast | [all …]
|
/arkcompiler/ets_runtime/ecmascript/module/ |
D | js_module_manager.cpp | 50 return JSFunction::Cast(currentFunc.GetTaggedObject())->GetModule(); in GetCurrentModule() 59 …return SourceTextModule::Cast(currentModule.GetTaggedObject())->GetModuleValue(vm_->GetJSThread(),… in GetModuleValueInner() 64 JSTaggedValue currentModule = JSFunction::Cast(jsFunc.GetTaggedObject())->GetModule(); in GetModuleValueInner() 68 …return SourceTextModule::Cast(currentModule.GetTaggedObject())->GetModuleValue(vm_->GetJSThread(),… in GetModuleValueInner() 76 …return SourceTextModule::Cast(currentModule->GetTaggedObject())->GetModuleValue(vm_->GetJSThread()… in GetModuleValueInner() 87 JSTaggedValue currentModule = JSFunction::Cast(jsFunc.GetTaggedObject())->GetModule(); in GetModuleValueOutter() 103 …JSTaggedValue moduleEnvironment = SourceTextModule::Cast(currentModule.GetTaggedObject())->GetEnvi… in GetModuleValueOutterInternal() 108 …JSTaggedValue resolvedBinding = TaggedArray::Cast(moduleEnvironment.GetTaggedObject())->Get(index); in GetModuleValueOutterInternal() 110 … ResolvedIndexBinding *binding = ResolvedIndexBinding::Cast(resolvedBinding.GetTaggedObject()); in GetModuleValueOutterInternal() 113 SourceTextModule *module = SourceTextModule::Cast(resolvedModule.GetTaggedObject()); in GetModuleValueOutterInternal() [all …]
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_date_time_format_test.cpp | 129 …JSHandle<JSDateTimeFormat>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(ctor), cto… in HWTEST_F_L0() 158 …JSHandle<JSDateTimeFormat>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(ctor), cto… in HWTEST_F_L0() 207 …JSHandle<JSLocale>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(localeCtor), local… in HWTEST_F_L0() 214 thread, JSHandle<JSTaggedValue>::Cast(options), RequiredOption::ANY, DefaultsOption::ALL); in HWTEST_F_L0() 218 …JSHandle<JSDateTimeFormat>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(dtfCtor), … in HWTEST_F_L0() 220 … thread, dtf, JSHandle<JSTaggedValue>::Cast(locales), JSHandle<JSTaggedValue>::Cast(options)); in HWTEST_F_L0() 223 JSHandle<EcmaString> localeEcmaStr = JSHandle<EcmaString>::Cast(localeTagVal); in HWTEST_F_L0() 253 …thread, JSHandle<JSTaggedValue>::Cast(options), RequiredOption::ANY, DefaultsOption::ALL); // test… in HWTEST_F_L0() 254 …auto yearEcmaStr = JSHandle<EcmaString>::Cast(JSObject::GetProperty(thread, options, yearKey).GetV… in HWTEST_F_L0() 256 …auto monthEcmaStr = JSHandle<EcmaString>::Cast(JSObject::GetProperty(thread, options, monthKey).Ge… in HWTEST_F_L0() [all …]
|