| /arkcompiler/ets_frontend/es2panda/typescript/core/ |
| D | object.cpp | 49 ObjectType *objType = type->AsObjectType(); in CheckIndexConstraints() local 50 ResolveStructuredTypeMembers(objType); in CheckIndexConstraints() 52 IndexInfo *numberInfo = objType->NumberIndexInfo(); in CheckIndexConstraints() 53 IndexInfo *stringInfo = objType->StringIndexInfo(); in CheckIndexConstraints() 54 const ArenaVector<binder::LocalVariable *> &properties = objType->Properties(); in CheckIndexConstraints() 88 ObjectType *objType = type->AsObjectType(); in ResolveStructuredTypeMembers() local 90 if (objType->IsObjectLiteralType()) { in ResolveStructuredTypeMembers() 91 ResolveObjectTypeMembers(objType); in ResolveStructuredTypeMembers() 95 if (objType->IsInterfaceType()) { in ResolveStructuredTypeMembers() 96 ResolveInterfaceOrClassTypeMembers(objType->AsInterfaceType()); in ResolveStructuredTypeMembers() [all …]
|
| D | typeCreation.cpp | 128 … auto *objType = allocator_->New<ObjectLiteralType>(allocator_->New<ObjectDescriptor>(allocator_)); in CreateObjectTypeWithCallSignature() local 129 objType->AddCallSignature(callSignature); in CreateObjectTypeWithCallSignature() 130 return objType; in CreateObjectTypeWithCallSignature() 135 … auto *objType = allocator_->New<ObjectLiteralType>(allocator_->New<ObjectDescriptor>(allocator_)); in CreateObjectTypeWithConstructSignature() local 136 objType->AddConstructSignature(constructSignature); in CreateObjectTypeWithConstructSignature() 137 return objType; in CreateObjectTypeWithConstructSignature()
|
| D | destructuringContext.cpp | 98 void DestructuringContext::ValidateObjectLiteralType(ObjectType *objType, const ir::ObjectExpressio… in ValidateObjectLiteralType() argument 100 for (const auto *sourceProp : objType->Properties()) { in ValidateObjectLiteralType() 536 Type *ObjectDestructuringContext::CreateObjectTypeForRest(ObjectType *objType) in CreateObjectTypeForRest() argument 540 for (auto *it : objType->AsObjectType()->Properties()) { in CreateObjectTypeForRest() 620 checker::ObjectType *objType = inferedType_->AsObjectType(); in NextInferedType() local 622 if (objType->StringIndexInfo()) { in NextInferedType() 623 return objType->StringIndexInfo()->GetType(); in NextInferedType()
|
| D | destructuringContext.h | 56 void ValidateObjectLiteralType(ObjectType *objType, const ir::ObjectExpression *objPattern); 118 Type *CreateObjectTypeForRest(ObjectType *objType);
|
| /arkcompiler/ets_frontend/ets2panda/checker/ts/ |
| D | object.cpp | 47 ObjectType *objType = type->AsObjectType(); in CheckIndexConstraints() local 48 ResolveStructuredTypeMembers(objType); in CheckIndexConstraints() 50 IndexInfo *numberInfo = objType->NumberIndexInfo(); in CheckIndexConstraints() 51 IndexInfo *stringInfo = objType->StringIndexInfo(); in CheckIndexConstraints() 52 const ArenaVector<varbinder::LocalVariable *> &properties = objType->Properties(); in CheckIndexConstraints() 86 ObjectType *objType = type->AsObjectType(); in ResolveStructuredTypeMembers() local 88 if (objType->IsObjectLiteralType()) { in ResolveStructuredTypeMembers() 89 ResolveObjectTypeMembers(objType); in ResolveStructuredTypeMembers() 93 if (objType->IsInterfaceType()) { in ResolveStructuredTypeMembers() 94 ResolveInterfaceOrClassTypeMembers(objType->AsInterfaceType()); in ResolveStructuredTypeMembers() [all …]
|
| D | typeCreation.cpp | 127 …auto *objType = Allocator()->New<ObjectLiteralType>(Allocator()->New<ObjectDescriptor>(Allocator()… in CreateObjectTypeWithCallSignature() local 128 objType->AddCallSignature(callSignature); in CreateObjectTypeWithCallSignature() 129 return objType; in CreateObjectTypeWithCallSignature() 134 …auto *objType = Allocator()->New<ObjectLiteralType>(Allocator()->New<ObjectDescriptor>(Allocator()… in CreateObjectTypeWithConstructSignature() local 135 objType->AddConstructSignature(constructSignature); in CreateObjectTypeWithConstructSignature() 136 return objType; in CreateObjectTypeWithConstructSignature()
|
| D | destructuringContext.cpp | 99 void DestructuringContext::ValidateObjectLiteralType(ObjectType *objType, ir::ObjectExpression *obj… in ValidateObjectLiteralType() argument 101 for (const auto *sourceProp : objType->Properties()) { in ValidateObjectLiteralType() 537 Type *ObjectDestructuringContext::CreateObjectTypeForRest(ObjectType *objType) in CreateObjectTypeForRest() argument 541 for (auto *it : objType->AsObjectType()->Properties()) { in CreateObjectTypeForRest() 621 checker::ObjectType *objType = inferredType_->AsObjectType(); in NextInferredType() local 623 if (objType->StringIndexInfo() != nullptr) { in NextInferredType() 624 return objType->StringIndexInfo()->GetType(); in NextInferredType()
|
| D | destructuringContext.h | 56 void ValidateObjectLiteralType(ObjectType *objType, ir::ObjectExpression *objPattern); 118 Type *CreateObjectTypeForRest(ObjectType *objType);
|
| /arkcompiler/ets_frontend/es2panda/ir/ts/ |
| D | tsQualifiedName.cpp | 47 checker::ObjectType *objType = baseType->AsObjectType(); in Check() local 49 if (objType->StringIndexInfo()) { in Check() 50 return objType->StringIndexInfo()->GetType(); in Check()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | mcr_circuit_builder.h | 179 GateRef objType = GetObjectType(LoadHClass(obj)); in TaggedIsSymbol() local 180 result = Equal(objType, Int32(static_cast<int32_t>(JSType::SYMBOL))); in TaggedIsSymbol() 205 GateRef objType = GetObjectType(LoadHClass(obj)); in TaggedIsStringOrSymbol() local 206 result = Equal(objType, Int32(static_cast<int32_t>(JSType::SYMBOL))); in TaggedIsStringOrSymbol() 226 GateRef objType = GetObjectType(LoadHClass(obj)); in TaggedIsProtoChangeMarker() local 227 result = Equal(objType, Int32(static_cast<int32_t>(JSType::PROTO_CHANGE_MARKER))); in TaggedIsProtoChangeMarker() 238 GateRef objType = GetObjectType(LoadHClass(obj)); in TaggedObjectIsJSMap() local 239 return Equal(objType, Int32(static_cast<int32_t>(JSType::JS_MAP))); in TaggedObjectIsJSMap() 244 GateRef objType = GetObjectType(LoadHClass(obj)); in TaggedObjectIsJSSet() local 245 return Equal(objType, Int32(static_cast<int32_t>(JSType::JS_SET))); in TaggedObjectIsJSSet() [all …]
|
| D | hcr_circuit_builder.h | 158 GateRef objType = GetObjectType(LoadHClass(x)); in IsAOTLiteralInfo() local 159 GateRef isAOTLiteralInfoObj = Equal(objType, in IsAOTLiteralInfo()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/type_inference/ |
| D | method_type_infer.cpp | 745 …auto objType = gateAccessor_.GetGateType(gateAccessor_.GetValueIn(gate, 2)); // 2: the third para… in InferLdObjByName() local 746 if (objType.IsAnyType()) { in InferLdObjByName() 749 objType = tsManager_->TryNarrowUnionType(objType); in InferLdObjByName() 750 if (ShouldConvertToBuiltinArray(objType)) { in InferLdObjByName() 751 GlobalTSTypeRef builtinGt = ConvertPrimitiveToBuiltin(objType); in InferLdObjByName() 753 objType = GateType(builtinInstanceType); in InferLdObjByName() 755 if (tsManager_->IsPrimitiveTypeKind(objType)) { in InferLdObjByName() 756 GlobalTSTypeRef builtinGt = ConvertPrimitiveToBuiltin(objType); in InferLdObjByName() 759 objType = GateType(builtinInstanceType); in InferLdObjByName() 763 if (ShouldInferWithLdObjByName(objType)) { in InferLdObjByName() [all …]
|
| D | method_type_infer.h | 118 bool GetObjPropWithName(GateRef gate, GateType objType, uint64_t index);
|
| /arkcompiler/ets_frontend/ets2panda/checker/ets/ |
| D | typeCreation.cpp | 273 ETSObjectType *ETSChecker::UpdateBoxedGlobalType(ETSObjectType *objType, util::StringView name) in UpdateBoxedGlobalType() argument 286 GetGlobalTypesHolder()->GlobalTypes()[static_cast<size_t>(id->second)] = objType; in UpdateBoxedGlobalType() 290 return objType; in UpdateBoxedGlobalType() 293 ETSObjectType *ETSChecker::UpdateGlobalType(ETSObjectType *objType, util::StringView name) in UpdateGlobalType() argument 306 GetGlobalTypesHolder()->GlobalTypes()[static_cast<size_t>(id->second)] = objType; in UpdateGlobalType() 311 …CreateNullishType(objType, checker::TypeFlag::NULLISH, Allocator(), Relation(), GetGlobalTypesHold… in UpdateGlobalType() 316 return objType; in UpdateGlobalType() 347 auto *objType = CreateNewETSObjectType(name, declNode, flags); in CreateETSObjectTypeCheckBuiltins() local 350 return UpdateBoxedGlobalType(objType, name); in CreateETSObjectTypeCheckBuiltins() 353 return UpdateGlobalType(objType, name); in CreateETSObjectTypeCheckBuiltins() [all …]
|
| /arkcompiler/ets_frontend/es2panda/ir/expressions/ |
| D | memberExpression.cpp | 163 checker::ObjectType *objType = baseType->AsObjectType(); in Check() local 165 if (objType->StringIndexInfo()) { in Check() 166 checker::Type *indexType = objType->StringIndexInfo()->GetType(); in Check() 167 if (objType->StringIndexInfo()->Readonly()) { in Check()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/mem/ |
| D | ets_reference.h | 114 EtsReference *NewEtsRef(EtsObject *obj, EtsReference::EtsObjectType objType) in NewEtsRef() argument 116 mem::Reference *ref = NewRef(obj->GetCoreType(), objType); in NewEtsRef()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/ |
| D | Type.ets | 877 const objType = Type.of(obj) 878 if (!this.equals(objType)) { 960 const objType = Type.of(obj) 961 if (!this.equals(objType)) { 1043 const objType = Type.of(obj) 1044 if (this.equals(objType)) { 1047 if (!this.assignableFrom(objType)) { 1137 const objType = Type.of(obj) 1138 if (this.equals(objType)) { 1141 if (!this.assignableFrom(objType)) { [all …]
|
| /arkcompiler/ets_runtime/ecmascript/pgo_profiler/ |
| D | pgo_profiler_layout.h | 204 RootHClassLayoutDesc(ProfileType type, JSType objType, uint32_t objSize) in RootHClassLayoutDesc() argument 205 : HClassLayoutDesc(type), objType_(objType), objSize_(objSize) {} in RootHClassLayoutDesc() 233 void SetObjectType(JSType objType) in SetObjectType() argument 235 objType_ = objType; in SetObjectType() 456 void SetObjectType(JSType objType) in SetObjectType() argument 458 objType_ = objType; in SetObjectType()
|
| /arkcompiler/ets_frontend/ets2panda/ir/expressions/ |
| D | memberExpression.h | 143 void SetObjectType(checker::ETSObjectType *objType) noexcept in DEFINE_BITOPS() 145 objType_ = objType; in DEFINE_BITOPS()
|
| /arkcompiler/ets_frontend/ets2panda/checker/ |
| D | ETSAnalyzer.cpp | 127 checker::ETSObjectType *objType, in CheckExtensionIsShadowedInCurrentClassOrInterface() argument 133 …auto *const variable = objType->GetOwnProperty<checker::PropertyType::INSTANCE_METHOD>(methodName); in CheckExtensionIsShadowedInCurrentClassOrInterface() 146 funcSignature, "' in class ", objType->Name()}, in CheckExtensionIsShadowedInCurrentClassOrInterface() 152 …oid CheckExtensionIsShadowedByMethod(checker::ETSChecker *checker, checker::ETSObjectType *objType, in CheckExtensionIsShadowedByMethod() argument 155 if (objType == nullptr) { in CheckExtensionIsShadowedByMethod() 159 CheckExtensionIsShadowedInCurrentClassOrInterface(checker, objType, extensionFunc, signature); in CheckExtensionIsShadowedByMethod() 161 for (auto *interface : objType->Interfaces()) { in CheckExtensionIsShadowedByMethod() 165 CheckExtensionIsShadowedByMethod(checker, objType->SuperType(), extensionFunc, signature); in CheckExtensionIsShadowedByMethod() 1357 checker::ETSObjectType *objType = expr->PreferredType()->AsETSObjectType(); in Check() local 1358 …if (objType->HasObjectFlag(checker::ETSObjectFlags::ABSTRACT | checker::ETSObjectFlags::INTERFACE)… in Check() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/compiler/core/ |
| D | ASTVerifier.cpp | 138 auto *objType = ast->ObjType(); in ValidateVariableAccess() local 139 if (objType == nullptr) { in ValidateVariableAccess() 142 const auto *objTypeDeclNode = objType->GetDeclNode(); in ValidateVariableAccess() 158 auto ret = objType->IsPropertyInherited(propVar); in ValidateVariableAccess()
|
| /arkcompiler/ets_runtime/ecmascript/snapshot/mem/ |
| D | snapshot_processor.h | 123 …void HandleRootObject(SnapshotType type, uintptr_t rootObjectAddr, size_t objType, size_t &constSp…
|
| D | snapshot_processor.cpp | 1400 size_t objType, size_t &constSpecialIndex) in HandleRootObject() argument 1404 if (JSType(objType) == JSType::GLOBAL_ENV) { in HandleRootObject() 1407 } else if (JSType(objType) == JSType::MICRO_JOB_QUEUE) { in HandleRootObject() 1559 auto objType = encodeBit.GetObjectType(); in RelocateSpaceObject() local 1560 if (objType == Constants::MASK_METHOD_SPACE_BEGIN) { in RelocateSpaceObject() 1570 … (JSType(objType) >= JSType::STRING_FIRST && JSType(objType) <= JSType::STRING_LAST)) { in RelocateSpaceObject() 1574 if (JSType(objType) == JSType::CONSTANT_STRING) { in RelocateSpaceObject() 1582 HandleRootObject(type, begin, objType, constSpecialIndex); in RelocateSpaceObject()
|
| /arkcompiler/runtime_core/static_core/verification/absint/ |
| D | abs_int_inl.h | 1729 Type objType = TypeOfClass(ctor->GetClass()); in CheckCallCtor() local 1734 SetAcc(objType); in CheckCallCtor() 1742 bool check = CheckMethodArgs(ctorNameGetter, ctor, regs, objType); in CheckCallCtor() 1744 SetAcc(objType); in CheckCallCtor() 1905 Type objType = GetRegType(regIdx); in CheckFieldAccess() local 1906 if (objType == nullRefType_) { in CheckFieldAccess() 1915 if (!IsSubtype(objType, fieldObjType, GetTypeSystem())) { in CheckFieldAccess() 1917 … LOG_VERIFIER_INCONSISTENT_REGISTER_AND_FIELD_TYPES(GetFieldName(field), regIdx, ToString(objType), in CheckFieldAccess() 2632 Type objType = GetRegType(regIdx); in CheckFieldAccessByName() local 2633 if (objType == nullRefType_) { in CheckFieldAccessByName() [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/ir/ |
| D | ir_constructor.h | 854 IrConstructor &ObjectType(ObjectType objType) in ObjectType() argument 859 inst->CastToLoadObject()->SetObjectType(objType); in ObjectType() 862 inst->CastToStoreObject()->SetObjectType(objType); in ObjectType() 870 IrConstructor &ObjectTypeLoadImm(LoadImmediateInst::ObjectType objType) in ObjectTypeLoadImm() argument 874 inst->CastToLoadImmediate()->SetObjectType(objType); in ObjectTypeLoadImm()
|