| /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/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/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() 106 …return JSTaggedValue(JSAPILightWeightSet::AddAll(thread, JSHandle<JSAPILightWeightSet>::Cast(self)… in AddAll() 117 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPILightWeightSet()) { in IsEmpty() [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_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() 113 return JSAPILightWeightMap::HasAll(thread, JSHandle<JSAPILightWeightMap>::Cast(self), in HasAll() 114 JSHandle<JSAPILightWeightMap>::Cast(lightWeightMap)); in HasAll() [all …]
|
| D | containers_treemap.cpp | 50 JSHandle<JSAPITreeMap> map = JSHandle<JSAPITreeMap>::Cast(obj); in TreeMapConstructor() 67 TaggedTreeMap::Cast(internal.GetTaggedObject())->SetCompare(thread, compareFn.GetTaggedValue()); in TreeMapConstructor() 80 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPITreeMap()) { in Set() 81 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Set() 92 JSHandle<JSAPITreeMap> map = JSHandle<JSAPITreeMap>::Cast(self); in Set() 107 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPITreeMap()) { in Get() 108 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Get() 116 JSHandle<JSAPITreeMap> map = JSHandle<JSAPITreeMap>::Cast(self); in Get() 129 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPITreeMap()) { in Remove() 130 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Remove() [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() 101 …JSAPIArrayList::Insert(thread, JSHandle<JSAPIArrayList>::Cast(self), value, JSTaggedValue::ToUint3… in Insert() 116 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIArrayList()) { in Clear() 117 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Clear() 125 JSAPIArrayList::Clear(thread, JSHandle<JSAPIArrayList>::Cast(self)); in Clear() 139 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIArrayList()) { in Clone() [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() 102 JSHandle<JSAPIList> jSAPIList = JSHandle<JSAPIList>::Cast(self); in Insert() 116 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIList()) { in GetFirst() 117 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in GetFirst() 124 JSHandle<JSAPIList> jSAPIList = JSHandle<JSAPIList>::Cast(self); in GetFirst() [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() 147 JSHandle<JSAPIHashMap> hashMap = JSHandle<JSAPIHashMap>::Cast(thisHandle); in ForEach() [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() 78 JSAPIPlainArray::Add(thread, JSHandle<JSAPIPlainArray>::Cast(self), key, value); in Add() 90 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIPlainArray()) { in Clear() 91 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Clear() 98 JSAPIPlainArray *array = JSAPIPlainArray::Cast(self->GetTaggedObject()); in Clear() 111 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPIPlainArray()) { in Clone() 112 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Clone() 120 JSAPIPlainArray::Clone(thread, JSHandle<JSAPIPlainArray>::Cast(self)); in Clone() [all …]
|
| D | containers_treeset.cpp | 49 JSHandle<JSAPITreeSet> set = JSHandle<JSAPITreeSet>::Cast(obj); in TreeSetConstructor() 66 TaggedTreeSet::Cast(internal.GetTaggedObject())->SetCompare(thread, compareFn.GetTaggedValue()); in TreeSetConstructor() 79 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPITreeSet()) { in Add() 80 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Add() 89 JSHandle<JSAPITreeSet> set = JSHandle<JSAPITreeSet>::Cast(self); in Add() 103 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPITreeSet()) { in Remove() 104 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Remove() 112 JSHandle<JSAPITreeSet> set = JSHandle<JSAPITreeSet>::Cast(self); in Remove() 125 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget().IsJSAPITreeSet()) { in Has() 126 self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget()); in Has() [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_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_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 …]
|
| D | containers_queue.cpp | 59 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/ |
| D | object_factory.cpp | 207 …return NewEcmaHClass(JSHClass::Cast(thread_->GlobalConstants()->GetHClassClass().GetTaggedObject()… in NewEcmaHClass() 233 auto *pointer = JSNativePointer::Cast(data.GetTaggedObject()); in NewJSArrayBufferData() 370 JSNativePointer *native = JSNativePointer::Cast(data.GetTaggedObject()); in NewJSRegExpByteCodeData() 389 JSHandle<JSObject> obj(thread_, JSObject::Cast(NewObject(jshclass))); in NewJSObject() 617 … JSObject::Cast(NewNonMovableObject(jshclass, jshclass->GetInlinedProperties()))); in NewNonMovableJSObject() 627 JSHandle<JSPrimitiveRef> obj = JSHandle<JSPrimitiveRef>::Cast(NewJSObject(hclass)); in NewJSPrimitiveRef() 644 JSHandle<JSForInIterator> it = JSHandle<JSForInIterator>::Cast(NewJSObject(hclass)); in NewJSForinIterator() 764 JSHandle<JSHClass> hclass = JSHandle<JSHClass>::Cast(env->GetArgumentsClass()); in NewJSArguments() 765 JSHandle<JSArguments> obj = JSHandle<JSArguments>::Cast(NewJSObject(hclass)); in NewJSArguments() 831 JSHandle<JSFunction> nativeFunc = JSHandle<JSFunction>::Cast(nativeConstructor); in NewJSError() [all …]
|
| D | js_relative_time_format.cpp | 53 …JSHandle<JSTaggedValue> property = JSHandle<JSTaggedValue>::Cast(globalConst->GetHandledNumberingS… in InitializeRelativeTimeFormat() 62 … JSHandle<EcmaString> numberingSystemString = JSHandle<EcmaString>::Cast(numberingSystemValue); in InitializeRelativeTimeFormat() 103 property = JSHandle<JSTaggedValue>::Cast(globalConst->GetHandledStyleString()); in InitializeRelativeTimeFormat() 113 property = JSHandle<JSTaggedValue>::Cast(globalConst->GetHandledNumericString()); in InitializeRelativeTimeFormat() 165 ASSERT(JSHandle<JSTaggedValue>::Cast(unit)->IsString()); in SingularUnitToIcuUnit() 176 JSHandle<EcmaString> second = JSHandle<EcmaString>::Cast(globalConst->GetHandledSecondString()); in SingularUnitToIcuUnit() 177 JSHandle<EcmaString> minute = JSHandle<EcmaString>::Cast(globalConst->GetHandledMinuteString()); in SingularUnitToIcuUnit() 178 JSHandle<EcmaString> hour = JSHandle<EcmaString>::Cast(globalConst->GetHandledHourString()); in SingularUnitToIcuUnit() 179 JSHandle<EcmaString> day = JSHandle<EcmaString>::Cast(globalConst->GetHandledDayString()); in SingularUnitToIcuUnit() 180 JSHandle<EcmaString> week = JSHandle<EcmaString>::Cast(globalConst->GetHandledWeekString()); in SingularUnitToIcuUnit() [all …]
|
| D | dump.cpp | 486 DumpStringClass(EcmaString::Cast(key.GetTaggedObject()), os); in DumpPropertyKey() 488 JSSymbol *sym = JSSymbol::Cast(key.GetTaggedObject()); in DumpPropertyKey() 489 DumpStringClass(EcmaString::Cast(sym->GetDescription().GetTaggedObject()), os); in DumpPropertyKey() 509 LayoutInfo *layoutInfo = LayoutInfo::Cast(attrs.GetTaggedObject()); in DumpHClass() 583 DumpArrayClass(TaggedArray::Cast(obj), os); in DumpObject() 586 DumpConstantPoolClass(ConstantPool::Cast(obj), os); in DumpObject() 589 DumpStringClass(EcmaString::Cast(obj), os); in DumpObject() 606 JSObject::Cast(obj)->Dump(os); in DumpObject() 609 JSFunctionBase::Cast(obj)->Dump(os); in DumpObject() 612 GlobalEnv::Cast(obj)->Dump(os); in DumpObject() [all …]
|
| D | object_operator.cpp | 44 …key_ = JSHandle<JSTaggedValue>::Cast(base::NumberHelper::NumberToString(thread_, JSTaggedValue(key… in HandleKey() 72 …key_ = JSHandle<JSTaggedValue>::Cast(base::NumberHelper::NumberToString(thread_, key.GetTaggedValu… in HandleKey() 88 … JSHandle<JSTaggedValue>::Cast(JSTaggedValue::ToString(thread_, keyHandle)))); in HandleKey() 107 auto hclass = JSHandle<JSObject>::Cast(holder_)->GetClass(); in UpdateIsTSHClass() 192 value_.Update(PropertyBox::Cast(value_->GetTaggedObject())->GetValue()); in FastGetValue() 197 AccessorData *accessor = AccessorData::Cast(value_->GetTaggedObject()); in FastGetValue() 229 result = PropertyBox::Cast(result.GetTaggedObject())->GetValue(); in ToPropertyDescriptor() 231 AccessorData *accessor = AccessorData::Cast(result.GetTaggedObject()); in ToPropertyDescriptor() 235 auto val = accessor->CallInternalGet(thread_, JSHandle<JSObject>::Cast(GetHolder())); in ToPropertyDescriptor() 295 TaggedArray *array = TaggedArray::Cast(obj->GetProperties().GetTaggedObject()); in LookupGlobal() [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()
|
| /arkcompiler/runtime_core/tests/cts-generator/cts-template/ |
| D | checkcast.yaml | 46 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/ |
| D | js_module_manager.cpp | 60 return JSFunction::Cast(currentFunc.GetTaggedObject())->GetModule(); in GetCurrentModule() 69 …return SourceTextModule::Cast(currentModule.GetTaggedObject())->GetModuleValue(vm_->GetJSThread(),… in GetModuleValueInner() 74 JSTaggedValue currentModule = JSFunction::Cast(jsFunc.GetTaggedObject())->GetModule(); in GetModuleValueInner() 78 …return SourceTextModule::Cast(currentModule.GetTaggedObject())->GetModuleValue(vm_->GetJSThread(),… in GetModuleValueInner() 89 SourceTextModule *module = SourceTextModule::Cast(currentModule.GetTaggedObject()); in GetModuleName() 100 JSTaggedValue currentModule = JSFunction::Cast(jsFunc.GetTaggedObject())->GetModule(); in GetModuleValueOutter() 111 …JSTaggedValue moduleEnvironment = SourceTextModule::Cast(currentModule.GetTaggedObject())->GetEnvi… in GetModuleValueOutterInternal() 116 …JSTaggedValue resolvedBinding = TaggedArray::Cast(moduleEnvironment.GetTaggedObject())->Get(index); in GetModuleValueOutterInternal() 118 … ResolvedIndexBinding *binding = ResolvedIndexBinding::Cast(resolvedBinding.GetTaggedObject()); in GetModuleValueOutterInternal() 121 SourceTextModule *module = SourceTextModule::Cast(resolvedModule.GetTaggedObject()); in GetModuleValueOutterInternal() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/jspandafile/ |
| D | quick_fix_loader.cpp | 272 JSFunctionBase *func = JSFunctionBase::Cast(literalItem.GetTaggedObject()); in ReplaceMethod() 273 Method *baseMethod = Method::Cast(func->GetMethod().GetTaggedObject()); in ReplaceMethod() 299 Method *baseMethod = Method::Cast(constpoolValue.GetTaggedObject()); in ReplaceMethod() 398 ConstantPool *baseConstpool = ConstantPool::Cast(baseConstpoolValue.GetTaggedObject()); in UnloadPatch() 405 Method *method = Method::Cast(value.GetTaggedObject()); in UnloadPatch() 422 JSFunctionBase *func = JSFunctionBase::Cast(value.GetTaggedObject()); in UnloadPatch() 423 Method *method = Method::Cast(func->GetMethod().GetTaggedObject()); in UnloadPatch() 519 JSHandle<SourceTextModule>::Cast(moduleManager->ResolveModuleWithMerge(thread, in CheckIsInvalidPatch() 571 auto patchArr = TaggedArray::Cast(patch); in CheckImportEntriesMismatch() 572 auto baseArr = TaggedArray::Cast(base); in CheckImportEntriesMismatch() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ic/ |
| D | ic_runtime_stub-inl.h | 73 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 …]
|