Home
last modified time | relevance | path

Searched full:cast (Results 1 – 25 of 630) sorted by relevance

12345678910>>...26

/arkcompiler/ets_runtime/ecmascript/mem/
Dobject_xray.h140 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/runtime_core/docs/
DPBC2IR.md115 | 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/containers/
Dcontainers_vector.cpp60 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 …]
Dcontainers_lightweightset.cpp44 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 …]
Dcontainers_linked_list.cpp46 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 …]
Dcontainers_lightweightmap.cpp49 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 …]
Dcontainers_treemap.cpp50 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 …]
Dcontainers_list.cpp46 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 …]
Dcontainers_hashmap.cpp51 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 …]
Dcontainers_plainarray.cpp43 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 …]
Dcontainers_treeset.cpp49 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 …]
Dcontainers_arraylist.cpp62 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 …]
Dcontainers_deque.cpp62 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 …]
Dcontainers_stack.cpp47 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 …]
Dcontainers_hashset.cpp48 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 …]
Dcontainers_queue.cpp59 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIQueue()) { in Add()
60 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Add()
69 JSAPIQueue::Add(thread, JSHandle<JSAPIQueue>::Cast(self), value); in Add()
82 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIQueue()) { in GetFirst()
83 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in GetFirst()
91 JSTaggedValue value = JSAPIQueue::GetFirst(thread, JSHandle<JSAPIQueue>::Cast(self)); in GetFirst()
105 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIQueue()) { in Pop()
106 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Pop()
114 JSTaggedValue value = JSAPIQueue::Pop(thread, JSHandle<JSAPIQueue>::Cast(self)); in Pop()
129 … if (thisHandle->IsJSProxy() && JSHandle<JSProxy>::Cast(thisHandle)->GetTarget().IsJSAPIQueue()) { in ForEach()
[all …]
/arkcompiler/ets_runtime/ecmascript/
Dobject_factory.cpp210 …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 …]
Ddump.cpp507 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 …]
Djs_relative_time_format.cpp62 … 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 …]
Djs_weak_container.cpp30 …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 …]
Djs_map.cpp29 …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()
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/
Dpgo_profiler.cpp34 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/runtime_core/tests/cts-generator/cts-template/
Dcheckcast.yaml46 title: Check cast
48 Resolve object type by specified id and if an object in accumulator can be cast to the
58 description: Check that null object reference can be cast to any type
61 'null' object reference can be cast to every type.
100 description: Check that null object reference can be cast to any type
103 'null' object reference can be cast to every type.
150 description: Check that null object reference can be cast to any array type
153 'null' object reference can be cast to every type.
193 description: Check that null object reference can be cast to any array type
196 'null' object reference can be cast to every type.
[all …]
/arkcompiler/ets_runtime/ecmascript/module/
Djs_module_manager.cpp50 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/ic/
Dic_runtime_stub-inl.h73 TaggedArray *array = TaggedArray::Cast(cachedValue.GetTaggedObject()); in CheckPolyHClass()
117 return LoadElement(JSObject::Cast(receiver.GetTaggedObject()), key); in TryLoadICByValue()
145 … return StoreElement(thread, JSObject::Cast(receiver.GetTaggedObject()), key, value, secondValue); in TryStoreICByValue()
201 StoreField(thread, JSObject::Cast(receiver.GetTaggedObject()), value, handlerInfo); in StoreICWithHandler()
205 auto accessor = LoadFromField(JSObject::Cast(holder.GetTaggedObject()), handlerInfo); in StoreICWithHandler()
209 StoreWithTransition(thread, JSObject::Cast(receiver.GetTaggedObject()), value, handler); in StoreICWithHandler()
213 … return StoreTransWithProto(thread, JSObject::Cast(receiver.GetTaggedObject()), value, handler); in StoreICWithHandler()
232 PrototypeHandler *prototypeHandler = PrototypeHandler::Cast(handler.GetTaggedObject()); in StorePrototype()
235 ProtoChangeMarker *cell = ProtoChangeMarker::Cast(cellValue.GetTaggedObject()); in StorePrototype()
249 StoreTSHandler *storeTSHandler = StoreTSHandler::Cast(handler.GetTaggedObject()); in StoreWithTS()
[all …]

12345678910>>...26