| /arkcompiler/ets_runtime/ecmascript/mem/ |
| D | object_xray.h | 181 JSObject::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody() 184 auto jsSharedObject = JSSharedObject::Cast(object); in VisitObjectBody() 189 JSAsyncFromSyncIterator::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody() 192 JSGlobalObject::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody() 195 auto jsFunctionBase = JSFunctionBase::Cast(object); in VisitObjectBody() 200 auto jsFunction = JSFunction::Cast(object); in VisitObjectBody() 205 auto jsSharedFunction = JSSharedFunction::Cast(object); in VisitObjectBody() 210 auto jsGeneratorFunction = JSGeneratorFunction::Cast(object); in VisitObjectBody() 215 auto jsGeneratorFunction = JSAsyncGeneratorFunction::Cast(object); in VisitObjectBody() 220 auto jsProxyRevocFunction = JSProxyRevocFunction::Cast(object); in VisitObjectBody() [all …]
|
| /arkcompiler/runtime_core/static_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/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 | 55 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIVector()) { in Add() 56 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Add() 62 JSAPIVector::Add(thread, JSHandle<JSAPIVector>::Cast(self), value); in Add() 77 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIVector()) { in Insert() 78 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Insert() 89 JSAPIVector::Insert(thread, JSHandle<JSAPIVector>::Cast(self), value, indexInt); in Insert() 104 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIVector()) { in SetLength() 105 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in SetLength() 117 …JSAPIVector::SetLength(thread, JSHandle<JSAPIVector>::Cast(self), JSTaggedValue::ToUint32(thread, … in SetLength() 131 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIVector()) { in GetCapacity() [all …]
|
| D | containers_treemap.cpp | 48 JSHandle<JSAPITreeMap> map = JSHandle<JSAPITreeMap>::Cast(obj); in TreeMapConstructor() 66 TaggedTreeMap::Cast(internal.GetTaggedObject())->SetCompare(thread, compareFn.GetTaggedValue()); in TreeMapConstructor() 79 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPITreeMap()) { in Set() 80 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Set() 91 JSHandle<JSAPITreeMap> map = JSHandle<JSAPITreeMap>::Cast(self); in Set() 106 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPITreeMap()) { in Get() 107 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Get() 115 JSHandle<JSAPITreeMap> map = JSHandle<JSAPITreeMap>::Cast(self); in Get() 128 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPITreeMap()) { in Remove() 129 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Remove() [all …]
|
| D | containers_linked_list.cpp | 42 JSHandle<JSAPILinkedList> linkedList = JSHandle<JSAPILinkedList>::Cast(obj); in LinkedListConstructor() 56 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILinkedList()) { in Add() 57 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Add() 66 JSHandle<JSAPILinkedList> jsAPILinkedList = JSHandle<JSAPILinkedList>::Cast(self); in Add() 79 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILinkedList()) { in AddFirst() 80 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in AddFirst() 89 JSHandle<JSAPILinkedList> jsAPILinkedList = JSHandle<JSAPILinkedList>::Cast(self); in AddFirst() 102 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILinkedList()) { in GetFirst() 103 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in GetFirst() 110 JSHandle<JSAPILinkedList> jsAPILinkedList = JSHandle<JSAPILinkedList>::Cast(self); in GetFirst() [all …]
|
| D | containers_lightweightset.cpp | 41 JSHandle<JSAPILightWeightSet> lightweightSet = JSHandle<JSAPILightWeightSet>::Cast(obj); in LightWeightSetConstructor() 60 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightSet())… in Add() 61 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Add() 69 bool flag = JSAPILightWeightSet::Add(thread, JSHandle<JSAPILightWeightSet>::Cast(self), value); in Add() 81 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightSet())… in AddAll() 82 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in AddAll() 92 …if (value->IsJSProxy() && JSHandle<JSProxy>::Cast(value)->GetTarget(thread).IsJSAPILightWeightSet(… in AddAll() 93 … value = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(value)->GetTarget(thread)); in AddAll() 104 …return JSTaggedValue(JSAPILightWeightSet::AddAll(thread, JSHandle<JSAPILightWeightSet>::Cast(self)… in AddAll() 115 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightSet())… in IsEmpty() [all …]
|
| D | containers_treeset.cpp | 47 JSHandle<JSAPITreeSet> set = JSHandle<JSAPITreeSet>::Cast(obj); in TreeSetConstructor() 65 TaggedTreeSet::Cast(internal.GetTaggedObject())->SetCompare(thread, compareFn.GetTaggedValue()); in TreeSetConstructor() 78 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPITreeSet()) { in Add() 79 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Add() 88 JSHandle<JSAPITreeSet> set = JSHandle<JSAPITreeSet>::Cast(self); in Add() 102 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPITreeSet()) { in Remove() 103 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Remove() 111 JSHandle<JSAPITreeSet> set = JSHandle<JSAPITreeSet>::Cast(self); in Remove() 124 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPITreeSet()) { in Has() 125 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Has() [all …]
|
| D | containers_deque.cpp | 55 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIDeque()) { in InsertFront() 56 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in InsertFront() 65 JSAPIDeque::InsertFront(thread, JSHandle<JSAPIDeque>::Cast(self), value); in InsertFront() 80 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIDeque()) { in InsertEnd() 81 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in InsertEnd() 90 JSAPIDeque::InsertEnd(thread, JSHandle<JSAPIDeque>::Cast(self), value); in InsertEnd() 104 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIDeque()) { in GetFirst() 105 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in GetFirst() 113 JSHandle<JSAPIDeque> deque = JSHandle<JSAPIDeque>::Cast(self); in GetFirst() 127 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIDeque()) { in GetLast() [all …]
|
| D | containers_hashmap.cpp | 44 JSHandle<JSAPIHashMap> hashMap = JSHandle<JSAPIHashMap>::Cast(obj); in HashMapConstructor() 60 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIHashMap()) { in Keys() 61 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Keys() 81 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIHashMap()) { in Values() 82 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Values() 102 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIHashMap()) { in GetIteratorObj() 103 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in GetIteratorObj() 123 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIHashMap()) { in Entries() 124 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Entries() 144 …if (thisHandle->IsJSProxy() && JSHandle<JSProxy>::Cast(thisHandle)->GetTarget(thread).IsJSAPIHashM… in ForEach() [all …]
|
| D | containers_lightweightmap.cpp | 42 JSHandle<JSAPILightWeightMap> lwMap = JSHandle<JSAPILightWeightMap>::Cast(obj); in LightWeightMapConstructor() 62 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightMap())… in Length() 63 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Length() 71 return JSTaggedValue(JSHandle<JSAPILightWeightMap>::Cast(self)->GetLength()); in Length() 83 …if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPILightWeightMap())… in HasAll() 84 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in HasAll() 95 JSHandle<JSProxy>::Cast(lightWeightMap)->GetTarget(thread).IsJSAPILightWeightMap()) { in HasAll() 97 … JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(lightWeightMap)->GetTarget(thread)); in HasAll() 108 return JSAPILightWeightMap::HasAll(thread, JSHandle<JSAPILightWeightMap>::Cast(self), in HasAll() 109 JSHandle<JSAPILightWeightMap>::Cast(lightWeightMap)); in HasAll() [all …]
|
| D | containers_arraylist.cpp | 56 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIArrayList()) { in Add() 57 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Add() 66 … return GetTaggedBoolean(JSAPIArrayList::Add(thread, JSHandle<JSAPIArrayList>::Cast(self), value)); in Add() 78 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIArrayList()) { in Insert() 79 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Insert() 90 // Math.floor(1) will produce TaggedDouble, we need to cast into TaggedInt in Insert() 102 …JSAPIArrayList::Insert(thread, JSHandle<JSAPIArrayList>::Cast(self), value, JSTaggedValue::ToUint3… in Insert() 117 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIArrayList()) { in Clear() 118 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Clear() 126 JSAPIArrayList::Clear(thread, JSHandle<JSAPIArrayList>::Cast(self)); in Clear() [all …]
|
| D | containers_list.cpp | 42 JSHandle<JSAPIList> list = JSHandle<JSAPIList>::Cast(obj); in ListConstructor() 59 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIList()) { in Add() 60 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Add() 69 JSHandle<JSAPIList> jSAPIList = JSHandle<JSAPIList>::Cast(self); in Add() 82 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIList()) { in Insert() 83 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Insert() 103 JSHandle<JSAPIList> jSAPIList = JSHandle<JSAPIList>::Cast(self); in Insert() 117 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIList()) { in GetFirst() 118 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in GetFirst() 125 JSHandle<JSAPIList> jSAPIList = JSHandle<JSAPIList>::Cast(self); in GetFirst() [all …]
|
| D | containers_stack.cpp | 42 JSHandle<JSAPIStack> stack = JSHandle<JSAPIStack>::Cast(obj); in StackConstructor() 57 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIStack()) { in IsEmpty() 58 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in IsEmpty() 65 JSHandle<JSAPIStack> stack = JSHandle<JSAPIStack>::Cast(self); in IsEmpty() 80 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIStack()) { in Push() 81 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Push() 90 JSTaggedValue jsValue = JSAPIStack::Push(thread, JSHandle<JSAPIStack>::Cast(self), value); in Push() 103 if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIStack()) { in Peek() 104 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Peek() 112 JSHandle<JSAPIStack> stack = JSHandle<JSAPIStack>::Cast(self); in Peek() [all …]
|
| D | containers_bitvector.cpp | 75 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIBitVector()) { in Push() 76 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Push() 85 …return GetTaggedBoolean(JSAPIBitVector::Push(thread, JSHandle<JSAPIBitVector>::Cast(self), value)); in Push() 96 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIBitVector()) { in Pop() 97 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Pop() 105 return JSHandle<JSAPIBitVector>::Cast(self)->Pop(thread, JSHandle<JSAPIBitVector>::Cast(self)); in Pop() 117 … if (self->IsJSProxy() && JSHandle<JSProxy>::Cast(self)->GetTarget(thread).IsJSAPIBitVector()) { in Has() 118 … self = JSHandle<JSTaggedValue>(thread, JSHandle<JSProxy>::Cast(self)->GetTarget(thread)); in Has() 144 bool isHas = JSHandle<JSAPIBitVector>::Cast(self)->Has( in Has() 145 thread, JSHandle<JSAPIBitVector>::Cast(self), value, startIndex, endIndex); in Has() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/shared_objects/ |
| D | js_shared_map.cpp | 31 JSHandle<JSTaggedValue>::Cast(map)); in Set() 34 …JSHandle<LinkedHashMap> mapHandle(thread, LinkedHashMap::Cast(map->GetLinkedMap(thread).GetTaggedO… in Set() 42 JSHandle<JSTaggedValue>::Cast(map)); in Delete() 44 …JSHandle<LinkedHashMap> mapHandle(thread, LinkedHashMap::Cast(map->GetLinkedMap(thread).GetTaggedO… in Delete() 56 JSHandle<JSTaggedValue>::Cast(map)); in Clear() 58 …JSHandle<LinkedHashMap> mapHandle(thread, LinkedHashMap::Cast(map->GetLinkedMap(thread).GetTaggedO… in Clear() 65 …[[maybe_unused]] ConcurrentApiScope<JSSharedMap> scope(thread, JSHandle<JSTaggedValue>::Cast(map)); in Has() 67 return LinkedHashMap::Cast(map->GetLinkedMap(thread).GetTaggedObject())->Has(thread, key); in Has() 72 …[[maybe_unused]] ConcurrentApiScope<JSSharedMap> scope(thread, JSHandle<JSTaggedValue>::Cast(map)); in Get() 74 return LinkedHashMap::Cast(map->GetLinkedMap(thread).GetTaggedObject())->Get(thread, key); in Get() [all …]
|
| D | js_shared_set.cpp | 30 JSHandle<JSTaggedValue>::Cast(set)); in Add() 33 …JSHandle<LinkedHashSet> setHandle(thread, LinkedHashSet::Cast(set->GetLinkedSet(thread).GetTaggedO… in Add() 41 JSHandle<JSTaggedValue>::Cast(set)); in Delete() 43 …JSHandle<LinkedHashSet> setHandle(thread, LinkedHashSet::Cast(set->GetLinkedSet(thread).GetTaggedO… in Delete() 55 JSHandle<JSTaggedValue>::Cast(set)); in Clear() 57 …JSHandle<LinkedHashSet> setHandle(thread, LinkedHashSet::Cast(set->GetLinkedSet(thread).GetTaggedO… in Clear() 64 …[[maybe_unused]] ConcurrentApiScope<JSSharedSet> scope(thread, JSHandle<JSTaggedValue>::Cast(set)); in Has() 66 return LinkedHashSet::Cast(set->GetLinkedSet(thread).GetTaggedObject())->Has(thread, value); in Has() 71 …[[maybe_unused]] ConcurrentApiScope<JSSharedSet> scope(thread, JSHandle<JSTaggedValue>::Cast(set)); in GetSize() 73 return LinkedHashSet::Cast(set->GetLinkedSet(thread).GetTaggedObject())->NumberOfElements(); in GetSize() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/01.subtyping/subtyping_among_primitive_types/ |
| D | primitive_types_cast.params.yaml | 16 - {type: float, cast: double} 17 - {type: long, cast: float} 18 - {type: int, cast: long} 19 - {type: char, cast: int} 20 - {type: short, cast: int} 21 - {type: byte, cast: short}
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/ |
| D | escape_analysis_casted.ets | 16 //! CHECKER Check escape analysis create cast in different sign types char 21 //! INST_COUNT "Cast", 0 23 //! INST_COUNT "Cast", 1 24 //! INST_COUNT ".u16 Cast i8", 1 46 //! CHECKER Check escape analysis create cast in different sign types cutted char 51 //! INST_COUNT "Cast", 1 52 //! INST_COUNT ".u16 Cast i8", 0 54 //! INST_COUNT "Cast", 2 55 //! INST_COUNT ".u16 Cast i8", 1
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | object_factory.cpp | 178 JSHClass::Cast(thread_->GlobalConstants()->GetHClassClass().GetTaggedObject()), classSize)); in NewEcmaHClass() 204 …return NewEcmaHClass(JSHClass::Cast(thread_->GlobalConstants()->GetHClassClass().GetTaggedObject()… in NewEcmaHClass() 230 auto *pointer = JSNativePointer::Cast(data.GetTaggedObject()); in NewJSArrayBufferData() 270 auto *pointer = JSNativePointer::Cast(data.GetTaggedObject()); in NewJSSendableArrayBufferData() 463 JSNativePointer *native = JSNativePointer::Cast(data.GetTaggedObject()); in NewJSRegExpByteCodeData() 496 JSHClass::Cast(thread_->GlobalConstants()->GetHClassClass().GetTaggedObject()), classSize)); in NewEcmaHClass() 505 JSHandle<JSObject> obj(thread_, JSObject::Cast(NewObject(jshclass))); in NewJSObject() 670 auto layout = LayoutInfo::Cast(klass->GetLayout(thread_).GetTaggedObject()); in CloneObjectLiteral() 727 jshclass = JSHandle<JSHClass>::Cast(env->GetFunctionClassWithoutProto()); in CreateJSFunctionFromTemplate() 729 jshclass = JSHandle<JSHClass>::Cast(env->GetAsyncFunctionClass()); in CreateJSFunctionFromTemplate() [all …]
|
| /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/tests/ |
| D | shared_object_factory_test.cpp | 39 JSHandle<JSTaggedValue> moduleNamespaceTag = JSHandle<JSTaggedValue>::Cast(np); in HWTEST_F_L0() 52 … JSHandle<JSTaggedValue>::Cast(importName), in HWTEST_F_L0() 53 … JSHandle<JSTaggedValue>::Cast(localName)); in HWTEST_F_L0() 54 …ASSERT_EQ(entry->GetImportName(thread).GetRawData(), JSHandle<JSTaggedValue>::Cast(importName)->Ge… in HWTEST_F_L0() 55 …ASSERT_EQ(entry->GetLocalName(thread).GetRawData(), JSHandle<JSTaggedValue>::Cast(localName)->GetR… in HWTEST_F_L0() 63 … factory->NewSLocalExportEntry(JSHandle<JSTaggedValue>::Cast(factory->NewFromASCII("exportName")), in HWTEST_F_L0() 64 … JSHandle<JSTaggedValue>::Cast(factory->NewFromASCII("localName")), 1); in HWTEST_F_L0() 66 JSHandle<JSTaggedValue>::Cast(factory->NewFromASCII("exportName"))->GetRawData()); in HWTEST_F_L0() 68 JSHandle<JSTaggedValue>::Cast(factory->NewFromASCII("localName"))->GetRawData()); in HWTEST_F_L0() 75 JSHandle<JSTaggedValue>::Cast(factory->NewFromASCII("exportName")), 0, in HWTEST_F_L0() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/attempt_invalid_type_conversion/ |
| D | attemp_invalid_type_conversion_only_compile.params.yaml | 16 …- desc: Verify that attempting to cast a readonly property to a mutable property results in a type… 25 - desc: Verify that attempting to cast a function to a number results in a type error. 31 - desc: Verify that attempting to cast a boolean to a number results in a type error. 37 - desc: Verify that attempting to cast null to a number results in a type error. 43 - desc: Verify that attempting to cast a string to a number results in a type error. 55 - desc: Verify that attempting to cast a number to a string results in a type error. 61 - desc: Verify that attempting to cast a class instance to a number results in a type error. 67 - desc: Verify that attempting to cast a class instance to a number results in a type error. 73 - desc: Verify that attempting to cast an array to a string results in a type error.
|
| /arkcompiler/runtime_core/static_core/irtoc/scripts/ |
| D | string_helpers.irt | 51 str1 := Cast(str1_ref).SrcType(Constants::COMPILER_REFERENCE).ptr 52 str2 := Cast(str2_ref).SrcType(Constants::COMPILER_REFERENCE).ptr 66 length := Cast(length).SrcType("DataType::UINT32").u64 131 length := Cast(length1.u32).u64 143 length := Cast(length1.u32).u64 207 _data_size := Cast(data_size).word 219 Intrinsic(:WRITE_TLAB_STATS_SAFE, _start, _size, Cast(-1).u64).void if defines.DEBUG 242 _data_size := Cast(data_size).word 276 _size := Cast(elements_num).word 289 Intrinsic(:WRITE_TLAB_STATS_SAFE, _start, _size, Cast(-1).u64).void if defines.DEBUG [all …]
|
| /arkcompiler/runtime_core/static_core/tests/cts-generator/cts-template/ |
| D | checkcast.yaml | 25 title: Check cast 27 Resolve object type by specified id and if an object in accumulator can be cast to the 36 description: Check that null object reference can be cast to any type 39 'null' object reference can be cast to every type. 76 description: Check that null object reference can be cast to any array type 79 'null' object reference can be cast to every type. 117 description: Check that any object can be cast to the base type 119 … description: Object of type O can be cast to type T if O is the same as T or is subtype of T. 159 description: Check that any object can be cast to its type 161 … description: Object of type O can be cast to type T if O is the same as T or is subtype of T. [all …]
|