| /arkcompiler/runtime_core/static_core/libpandabase/taskmanager/ |
| D | task_queue.h | 2 * Copyright (c) 2023-2025 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 29 …* @brief TaskQueue is a thread-safe queue for tasks. Queues can be registered in TaskScheduler and… 31 * @tparam Allocator - allocator of Task that will be used in internal queues. By default is used 32 * std::allocator<Task> 34 template <class Allocator = std::allocator<Task>> 36 using TaskAllocatorType = typename Allocator::template rebind<Task>::other; 37 …using TaskQueueAllocatorType = typename Allocator::template rebind<TaskQueue<TaskAllocatorType>>::… 132 template <class Allocator> 133 inline SchedulableTaskQueueInterface *TaskQueue<Allocator>::Create(QueuePriority priority, TaskWait… in Create() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/unit/public/ |
| D | ast_builder_test.cpp | 7 * http://www.apache.org/licenses/LICENSE-2.0 18 #include "util/ast-builders/classDefinitionBuilder.h" 19 #include "util/ast-builders/binaryExpressionBuilder.h" 20 #include "util/ast-builders/classPropertyBuilder.h" 21 #include "util/ast-builders/identifierBuilder.h" 22 #include "util/ast-builders/numberLiteralBuilder.h" 23 #include "util/ast-builders/awaitExpressionBuilder.h" 24 #include "util/ast-builders/bigintLiteralBuilder.h" 25 #include "util/ast-builders/blockExpressionBuilder.h" 26 #include "util/ast-builders/blockStatementBuilder.h" [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/tests/ |
| D | region_allocator_test.cpp | 2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 29 #include "runtime/mem/region_allocator-inl.h" 44 options_.SetHeapSizeLimit(320_MB); // NOLINT(readability-magic-numbers) in RegionAllocatorTestBase() 51 // we don't need young space for non-movable or humongous allocator tests in RegionAllocatorTestBase() 59 thread_->ManagedCodeBegin(); in RegionAllocatorTestBase() 60 classLinker_ = Runtime::GetCurrent()->GetClassLinker(); in RegionAllocatorTestBase() 61 … auto lang = Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY); in RegionAllocatorTestBase() 62 auto *classLinkerExt = Runtime::GetCurrent()->GetClassLinker()->GetExtension(lang); in RegionAllocatorTestBase() 63 testClass_ = classLinkerExt->CreateClass(nullptr, 0, 0, sizeof(ark::Class)); in RegionAllocatorTestBase() [all …]
|
| D | allocator_test_base.h | 2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 31 #include "runtime/mem/bump-allocator.h" 38 template <class Allocator> 56 …d int seed_; // NOLINT(misc-non-private-member-variables-in-class… 57 …ray<uint8_t, BYTE_ARRAY_SIZE> byteArray_ {}; // NOLINT(misc-non-private-member-variables-in-class… 68 * @brief Add pool to allocator (maybe empty for some allocators) 69 * @param allocator - allocator for pool memory adding 71 virtual void AddMemoryPoolToAllocator([[maybe_unused]] Allocator &allocator) = 0; 74 * @brief Add pool to allocator and protect (maybe empty for some allocators) [all …]
|
| D | freelist_allocator_test.cpp | 2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 25 #include "runtime/mem/freelist_allocator-inl.h" 45 thread_->ManagedCodeBegin(); in FreeListAllocatorTest() 54 thread_->ManagedCodeEnd(); in ~FreeListAllocatorTest() 72 …Pool pool = PoolManager::GetMmapMemPool()->AllocPool(DEFAULT_POOL_SIZE_FOR_ALLOC, SpaceType::SPACE… in AddMemoryPoolToAllocator() 80 ASSERT_TRUE(0 && "Can't add mem pool to allocator"); in AddMemoryPoolToAllocator() 90 bool AllocatedByThisAllocator(NonObjectFreeListAllocator &allocator, void *mem) override in AllocatedByThisAllocator() argument 92 return allocator.AllocatedByFreeListAllocator(mem); in AllocatedByThisAllocator() 98 PoolManager::GetMmapMemPool()->FreePool(i.GetMem(), i.GetSize()); in ClearPoolManager() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/ |
| D | insertOptionalParametersAnnotation.cpp | 2 * Copyright (c) 2024-2025 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 23 static ir::Identifier *GenAnnoQualifiedLeft(ArenaAllocator *allocator) in GenAnnoQualifiedLeft() argument 25 …return UAlloc::ForceSetParent<ir::Identifier>(allocator, Signatures::DEFAULT_ANNO_QUALIFIED_LEFT, … in GenAnnoQualifiedLeft() 28 static ir::Identifier *GenDefaultAnnoId(ArenaAllocator *allocator) in GenDefaultAnnoId() argument 30 …return UAlloc::ForceSetParent<ir::Identifier>(allocator, Signatures::DEFAULT_ANNO_FOR_FUNC, alloca… in GenDefaultAnnoId() 33 static ir::Identifier *GenDefaultPropId(ArenaAllocator *allocator, util::StringView const name) in GenDefaultPropId() argument 35 return UAlloc::ForceSetParent<ir::Identifier>(allocator, name, allocator); in GenDefaultPropId() 38 static ir::ETSTypeReference *GenDefaultAnnoNameRef(ArenaAllocator *allocator) in GenDefaultAnnoNameRef() argument 41 allocator, GenAnnoQualifiedLeft(allocator), GenDefaultAnnoId(allocator), allocator); in GenDefaultAnnoNameRef() [all …]
|
| D | restTupleLowering.cpp | 7 * http://www.apache.org/licenses/LICENSE-2.0 32 …return param->IsETSParameterExpression() && param->AsETSParameterExpression()->IsRestParameter() && in MethodDefinitionHasRestTuple() 33 param->AsETSParameterExpression()->TypeAnnotation() && in MethodDefinitionHasRestTuple() 34 param->AsETSParameterExpression()->TypeAnnotation()->IsETSTuple(); in MethodDefinitionHasRestTuple() 37 …bool isScriptFunction = def->IsMethodDefinition() && (def->AsMethodDefinition()->Value() != nullpt… in MethodDefinitionHasRestTuple() 38 … def->AsMethodDefinition()->Value()->AsFunctionExpression()->Function()->IsScriptFunction(); in MethodDefinitionHasRestTuple() 41 …def->AsMethodDefinition()->Value()->AsFunctionExpression()->Function()->AsScriptFunction()->Params… in MethodDefinitionHasRestTuple() 49 bool isClassDefinition = node->IsClassDefinition(); in IsClassDefinitionWithTupleRest() 51 auto definitions = node->AsClassDefinition()->Body(); in IsClassDefinitionWithTupleRest() 62 auto *allocator = ctx->allocator; in CreateMemberOrThisExpression() local [all …]
|
| D | defaultParametersInConstructorLowering.cpp | 2 * Copyright (c) 2023-2025 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 29 for (auto *const it : function->Params()) { in HasDefaultParameters() 30 if (it->IsBrokenExpression()) { in HasDefaultParameters() 33 auto const *const param = it->AsETSParameterExpression(); in HasDefaultParameters() 35 if (param->IsRestParameter()) { in HasDefaultParameters() 42 …sticEngine.LogDiagnostic(diagnostic::REST_PARAM_LAST, std::move(diagnosticParams), param->Start()); in HasDefaultParameters() 45 if (param->IsOptional()) { in HasDefaultParameters() 53 param->Start()); in HasDefaultParameters() 60 function->Start()); in HasDefaultParameters() [all …]
|
| D | lambdaLowering.cpp | 2 * Copyright (c) 2024-2025 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 59 for (ir::AstNode *curr = ast->Parent(); curr != nullptr; curr = curr->Parent()) { in FindEnclosingClassAndFunction() 60 if (curr->IsClassDeclaration()) { in FindEnclosingClassAndFunction() 61 return {curr->AsClassDeclaration(), function}; in FindEnclosingClassAndFunction() 63 if (curr->IsScriptFunction()) { in FindEnclosingClassAndFunction() 64 function = curr->AsScriptFunction(); in FindEnclosingClassAndFunction() 73 return lambda->IsAnyChild([&checker, &lambdaClass](ir::AstNode *ast) { in CheckIfNeedThis() 74 return (ast->IsThisExpression() || ast->IsSuperExpression()) && in CheckIfNeedThis() 75 checker->Relation()->IsIdenticalTo(lambdaClass, ContainingClass(ast)); in CheckIfNeedThis() [all …]
|
| D | spreadLowering.cpp | 2 * Copyright (c) 2024-2025 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 28 // 'length' property, and cannot be iterated by for-of statements in SetPossibleTupleType() 29 auto *const spreadType = spreadArgument->TsType(); in SetPossibleTupleType() 30 if (spreadType->IsETSTupleType()) { in SetPossibleTupleType() 31 arrIdent->SetTsType(spreadType); in SetPossibleTupleType() 39 auto *const allocator = ctx->allocator; in CreateSpreadArrayDeclareStatements() local 40 auto *const parser = ctx->parser->AsETSParser(); in CreateSpreadArrayDeclareStatements() 41 for (auto element : array->Elements()) { in CreateSpreadArrayDeclareStatements() 42 if (element->Type() != ir::AstNodeType::SPREAD_ELEMENT) { in CreateSpreadArrayDeclareStatements() [all …]
|
| D | restArgsLowering.cpp | 7 * http://www.apache.org/licenses/LICENSE-2.0 31 auto *allocator = context->allocator; in CreateRestArgsBlockExpression() local 32 auto *parser = context->parser->AsETSParser(); in CreateRestArgsBlockExpression() 33 auto *checker = context->checker->AsETSChecker(); in CreateRestArgsBlockExpression() 35 ArenaVector<ir::Statement *> blockStatements(allocator->Adapter()); in CreateRestArgsBlockExpression() 36 const auto arraySymbol = Gensym(allocator); in CreateRestArgsBlockExpression() 37 const auto argumentSymbol = Gensym(allocator); in CreateRestArgsBlockExpression() 38 const auto iteratorIndex = Gensym(allocator); in CreateRestArgsBlockExpression() 39 const auto iteratorSymbol = Gensym(allocator); in CreateRestArgsBlockExpression() 40 const auto elementType = checker->GetElementTypeOfArray(spreadElement->Argument()->TsType()); in CreateRestArgsBlockExpression() [all …]
|
| D | arrayLiteralLowering.cpp | 7 * http://www.apache.org/licenses/LICENSE-2.0 43 if (!eleType->IsETSUnionType() && !eleType->IsETSAnyType()) { in GenerateDefaultCallToConstructor() 44 auto *indexSymbol = Gensym(Allocator()); in GenerateDefaultCallToConstructor() 45 auto *lengthSymbol = Gensym(Allocator()); in GenerateDefaultCallToConstructor() 46 auto *typeNode = checker_->AllocNode<ir::OpaqueTypeNode>(eleType, Allocator()); in GenerateDefaultCallToConstructor() 49 newStmts.emplace_back(arraySymbol->Clone(Allocator(), nullptr)); in GenerateDefaultCallToConstructor() 52 newStmts.emplace_back(indexSymbol->Clone(Allocator(), nullptr)); in GenerateDefaultCallToConstructor() 53 newStmts.emplace_back(lengthSymbol->Clone(Allocator(), nullptr)); in GenerateDefaultCallToConstructor() 54 newStmts.emplace_back(indexSymbol->Clone(Allocator(), nullptr)); in GenerateDefaultCallToConstructor() 55 newStmts.emplace_back(indexSymbol->Clone(Allocator(), nullptr)); in GenerateDefaultCallToConstructor() [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/mem/ |
| D | internal_allocator.h | 2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 21 #include "libpandabase/mem/mmap_mem_pool-inl.h" 40 class Allocator; variable 44 LOCAL // The allocation will be in thread-local storage 48 PANDA_ALLOCATORS, // Use panda allocators as internal allocator 49 MALLOC_ALLOCATOR // Use malloc allocator as internal allocator 97 tracker_->Dump(); in Dump() 107 * @brief Iterates over memory pools used by this allocator. 109 * @param mem_visitor - function pointer or functor [all …]
|
| /arkcompiler/ets_frontend/ets2panda/ir/ |
| D | jsDocAllowed.h | 7 * http://www.apache.org/licenses/LICENSE-2.0 25 util::StringView name; // NOLINT(misc-non-private-member-variables-in-classes) 26 util::StringView param; // NOLINT(misc-non-private-member-variables-in-classes) 27 util::StringView comment; // NOLINT(misc-non-private-member-variables-in-classes) 62 explicit JsDocAllowed(Expression const &other, ArenaAllocator *allocator) in JsDocAllowed() argument 63 : T(other, allocator), jsDocInformation_(allocator->Adapter()) in JsDocAllowed() 67 explicit JsDocAllowed(ArenaAllocator *const allocator, AstNodeType const type, in JsDocAllowed() argument 69 : T(type, std::move(annotations)), jsDocInformation_(allocator->Adapter()) in JsDocAllowed() 79 explicit JsDocAllowed(AstNodeType const type, ArenaAllocator *const allocator) in JsDocAllowed() argument 80 : T(type, allocator), jsDocInformation_(allocator->Adapter()) in JsDocAllowed() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/checker/ts/ |
| D | typeCreation.cpp | 2 * Copyright (c) 2021-2025 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 24 return search->second; in CreateNumberLiteralType() 27 auto *newNumLiteralType = Allocator()->New<NumberLiteralType>(value); in CreateNumberLiteralType() 36 return search->second; in CreateBigintLiteralType() 39 auto *newBigintLiteralType = Allocator()->New<BigintLiteralType>(str, negative); in CreateBigintLiteralType() 48 return search->second; in CreateStringLiteralType() 51 auto *newStrLiteralType = Allocator()->New<StringLiteralType>(str); in CreateStringLiteralType() 58 ArenaVector<Type *> newConstituentTypes(Allocator()->Adapter()); in CreateUnionType() 69 ArenaVector<Type *> newConstituentTypes(Allocator()->Adapter()); in CreateUnionType() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/varbinder/ |
| D | scope.h | 2 * Copyright (c) 2021-2025 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 38 // CC-OFFNXT(G.PRE.09) code gen 39 // NOLINTNEXTLINE(cppcoreguidelines-macro-usage) 40 #define DECLARE_CLASSES(type, className) class className; // CC-OFF(G.PRE.02) name part 57 // NOLINTBEGIN(misc-non-private-member-variables-in-classes) in SCOPE_TYPES() 63 // NOLINTEND(misc-non-private-member-variables-in-classes) in SCOPE_TYPES() 81 // CC-OFFNXT(G.PRE.06) solid logic 82 // NOLINTNEXTLINE(cppcoreguidelines-macro-usage) 86 /* CC-OFFNXT(G.PRE.05) The macro is used to generate a function. Return is needed*/ \ [all …]
|
| /arkcompiler/runtime_core/docs/diagrams/ |
| D | gc-trigger-sequence-OOM.pusequence | 1 ' Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 ' http://www.apache.org/licenses/LICENSE-2.0 23 participant Allocator 27 AppThread1 -> Allocator: Request for the allocation 28 Allocator -> Allocator: OOM 29 Allocator -> GCTaskQueue: Add new GC task and wait for GC 30 Allocator -> AppThread2: Suspend 31 GCThread -> GCTaskQueue : Request for the task 32 GCTaskQueue -> GCThread : GC task 33 GCThread -> GC : GC task [all …]
|
| /arkcompiler/runtime_core/static_core/docs/diagrams/ |
| D | gc-trigger-sequence-OOM.plantuml | 1 ' Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 ' http://www.apache.org/licenses/LICENSE-2.0 23 participant Allocator 27 AppThread1 -> Allocator: Request for the allocation 28 Allocator -> Allocator: OOM 29 Allocator -> GCTaskQueue: Add new GC task and wait for GC 30 Allocator -> AppThread2: Suspend 31 GCThread -> GCTaskQueue : Request for the task 32 GCTaskQueue -> GCThread : GC task 33 GCThread -> GC : GC task [all …]
|
| /arkcompiler/ets_frontend/es2panda/binder/ |
| D | scope.h | 7 * http://www.apache.org/licenses/LICENSE-2.0 56 explicit TSBindings(ArenaAllocator *allocator) : allocator_(allocator) {} in TSBindings() argument 64 tsBindings_[index] = allocator_->New<VariableMap>(allocator_->Adapter()); in AddTSVariable() 66 return tsBindings_[index]->insert({name, variable}).second; in AddTSVariable() 77 auto res = tsBindings_[index]->find(name); in FindTSVariable() 78 if (res == tsBindings_[index]->end()) { in FindTSVariable() 81 return res->second; in FindTSVariable() 87 if (tsBindings_[i] && tsBindings_[i]->find(name) != tsBindings_[i]->end()) { in InTSBindings() 106 explicit ExportBindings(ArenaAllocator *allocator) in ExportBindings() argument 107 : exportBindings_(allocator->Adapter()), in ExportBindings() [all …]
|
| /arkcompiler/runtime_core/compiler/optimizer/ir/ |
| D | dump.cpp | 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 31 …::enable_if_t<std::is_integral_v<T>, ArenaString> ToArenaString(T value, ArenaAllocator *allocator) in ToArenaString() argument 33 ArenaString res(std::to_string(value), allocator->Adapter()); in ToArenaString() 37 ArenaString GetId(uint32_t id, ArenaAllocator *allocator) in GetId() argument 39 …return (id == INVALID_ID ? ArenaString("XX", allocator->Adapter()) : ToArenaString(id, allocator)); in GetId() 42 ArenaString IdToString(uint32_t id, ArenaAllocator *allocator, bool v_reg, bool is_phi) in IdToString() argument 44 ArenaString reg(v_reg ? "v" : "", allocator->Adapter()); in IdToString() 45 ArenaString phi(is_phi ? "p" : "", allocator->Adapter()); in IdToString() 46 return reg + GetId(id, allocator) + phi; in IdToString() [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/code_info/ |
| D | code_info_builder.h | 2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 29 CodeInfoBuilder(Arch arch, ArenaAllocator *allocator) in CodeInfoBuilder() argument 31 stackMaps_(allocator), in CodeInfoBuilder() 32 inlineInfos_(allocator), in CodeInfoBuilder() 33 rootsRegMasks_(allocator), in CodeInfoBuilder() 34 rootsStackMasks_(allocator), in CodeInfoBuilder() 35 methodIds_(allocator), in CodeInfoBuilder() 36 vregsCatalogue_(allocator), in CodeInfoBuilder() 37 vregsMap_(allocator), in CodeInfoBuilder() [all …]
|
| /arkcompiler/ets_frontend/es2panda/typescript/types/ |
| D | globalTypesHolder.cpp | 7 * http://www.apache.org/licenses/LICENSE-2.0 40 GlobalTypesHolder::GlobalTypesHolder(ArenaAllocator *allocator) in GlobalTypesHolder() argument 42 globalTypes_[static_cast<size_t>(GlobalTypeId::NUMBER)] = allocator->New<NumberType>(); in GlobalTypesHolder() 43 globalTypes_[static_cast<size_t>(GlobalTypeId::ANY)] = allocator->New<AnyType>(); in GlobalTypesHolder() 44 globalTypes_[static_cast<size_t>(GlobalTypeId::STRING)] = allocator->New<StringType>(); in GlobalTypesHolder() 45 globalTypes_[static_cast<size_t>(GlobalTypeId::SYMBOL)] = allocator->New<SymbolType>(); in GlobalTypesHolder() 46 globalTypes_[static_cast<size_t>(GlobalTypeId::BOOLEAN)] = allocator->New<BooleanType>(); in GlobalTypesHolder() 47 globalTypes_[static_cast<size_t>(GlobalTypeId::VOID)] = allocator->New<VoidType>(); in GlobalTypesHolder() 48 globalTypes_[static_cast<size_t>(GlobalTypeId::NULL_ID)] = allocator->New<NullType>(); in GlobalTypesHolder() 49 globalTypes_[static_cast<size_t>(GlobalTypeId::UNDEFINED)] = allocator->New<UndefinedType>(); in GlobalTypesHolder() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/ |
| D | mir_nodes.h | 7 * http://www.apache.org/licenses/LICENSE-2.0 116 virtual BaseNode *CloneTree(MapleAllocator &allocator) const in CloneTree() argument 118 return allocator.GetMemPool()->New<BaseNode>(*this); in CloneTree() 232 UnaryNode *CloneTree(MapleAllocator &allocator) const override in CloneTree() argument 234 auto *node = allocator.GetMemPool()->New<UnaryNode>(*this); in CloneTree() 235 node->SetOpnd(uOpnd->CloneTree(allocator), 0); in CloneTree() 285 TypeCvtNode *CloneTree(MapleAllocator &allocator) const override in CloneTree() argument 287 auto *node = allocator.GetMemPool()->New<TypeCvtNode>(*this); in CloneTree() 288 node->SetOpnd(Opnd(0)->CloneTree(allocator), 0); in CloneTree() 325 RetypeNode *CloneTree(MapleAllocator &allocator) const override in CloneTree() argument [all …]
|
| /arkcompiler/ets_frontend/ets2panda/evaluate/debugInfoDeserialization/ |
| D | methodBuilder.cpp | 2 * Copyright (c) 2024-2025 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 18 #include "libpandafile/file-inl.h" 19 #include "libpandafile/method_data_accessor-inl.h" 20 #include "libpandafile/proto_data_accessor-inl.h" 37 ArenaVector<ir::TypeNode *> parameters(checker->Allocator()->Adapter()); in GetFunctionParameters() 44 true); // true -- skip `this` parameter in GetFunctionParameters() 53 …if (type->IsETSPrimitiveType() && type->AsETSPrimitiveType()->GetPrimitiveType() == ir::PrimitiveT… in CreateTypedReturnStatement() 54 return checker->AllocNode<ir::ReturnStatement>(); in CreateTypedReturnStatement() 60 auto *allocator = checker->Allocator(); in CreateTypedReturnStatement() local [all …]
|
| /arkcompiler/ets_frontend/ets2panda/checker/ets/ |
| D | typeConverter.h | 2 * Copyright (c) 2021-2025 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 38 static TargetType *ConvertConstant(SourceType *source, ArenaAllocator *allocator) in ConvertConstant() argument 43 …auto target = allocator->New<TargetType>(static_cast<typename TargetType::UType>(source->GetValue(… in ConvertConstant() 47 …ES2PANDA_ASSERT(source->GetValue() == static_cast<typename SourceType::UType>(target->GetValue())); in ConvertConstant() 51 std::isnan(source->GetValue()) || std::isinf(source->GetValue()) || in ConvertConstant() 52 … (std::abs(source->GetValue()) <= static_cast<double>(std::numeric_limits<float>::max()) && in ConvertConstant() 53 … std::abs(source->GetValue()) >= static_cast<double>(std::numeric_limits<float>::min()))); in ConvertConstant() 63 static Type *ConvertConstantType(Type *source, ArenaAllocator *allocator) in ConvertConstantType() argument 65 … switch (static_cast<TypeFlag>(source->TypeFlags() & (TypeFlag::ETS_NUMERIC | TypeFlag::CHAR))) { in ConvertConstantType() [all …]
|