/arkcompiler/runtime_core/static_core/runtime/tests/ |
H A D | mem_stats_gen_gc_test.cpp | 657 RealStatsLocations loc {}; in GetGenMemStatsDetails() 658 loc.youngFreedObjectsCount = &gms->youngFreeObjectCount_; in GetGenMemStatsDetails() 659 loc.youngFreedObjectsSize = &gms->youngFreeObjectSize_; in GetGenMemStatsDetails() 660 loc.youngMovedObjectsCount = &gms->youngMoveObjectCount_; in GetGenMemStatsDetails() 661 loc.youngMovedObjectsSize = &gms->youngMoveObjectSize_; in GetGenMemStatsDetails() 662 loc.tenuredFreedObjectsCount = &gms->tenuredFreeObjectCount_; in GetGenMemStatsDetails() 663 loc.tenuredFreedObjectsSize = &gms->tenuredFreeObjectSize_; in GetGenMemStatsDetails() 664 return loc; in GetGenMemStatsDetails() 685 RealStatsLocations loc = GetGenMemStatsDetails<decltype(genMs)>(genMs); in TEST_F() local 694 ASSERT_EQ(*loc in TEST_F() 734 RealStatsLocations loc = GetGenMemStatsDetails<decltype(genMs)>(genMs); TEST_F() local 785 RealStatsLocations loc = GetGenMemStatsDetails<decltype(genMs)>(genMs); TEST_F() local 844 RealStatsLocations loc = GetGenMemStatsDetails<decltype(genMs)>(genMs); TEST_F() local 884 RealStatsLocations loc = GetGenMemStatsDetails<decltype(genMs)>(genMs); TEST_F() local 973 RealStatsLocations loc = GetGenMemStatsDetails<decltype(genMs)>(genMs); TEST_F() local [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/pgo_type/ |
H A D | pgo_type_location.h | 41 bool operator==(const PGOTypeLocation &loc) const in operator ==() 43 return abcName_ == loc.abcName_ && in operator ==() 44 methodOffset_ == loc.methodOffset_ && in operator ==() 45 bcIdx_ == loc.bcIdx_ && in operator ==() 46 type_ == loc.type_; in operator ==() 51 auto loc = *this; in ChangeType() local 52 loc.type_ = type; in ChangeType() 53 return loc; in ChangeType() 79 size_t operator()(const PGOTypeLocation &loc) const in operator ()() 81 return std::hash<CString>()(loc in operator ()() [all...] |
H A D | pgo_type_parser.cpp | 34 PGOTypeLocation loc(jsPandaFile, methodOffset, bcIdx); in Parse() 35 if (!RecordTypeInfo(defType, loc)) { in Parse() 39 GenerateHClass(generator, loc); in Parse() 43 bool ClassParser::RecordTypeInfo(const PGODefineOpType &defType, const PGOTypeLocation &loc) in RecordTypeInfo() argument 58 ptManager_->RecordLocationToRootType(loc, rootType); in RecordTypeInfo() 59 auto ctorLoc = loc.ChangeType(PGOTypeLocation::Type::CONSTRUCTOR); in RecordTypeInfo() 62 auto protoLoc = loc.ChangeType(PGOTypeLocation::Type::PROTOTYPE); in RecordTypeInfo() 67 void ClassParser::GenerateHClass(const PGOHClassGenerator &generator, const PGOTypeLocation &loc) in GenerateHClass() argument 72 auto rootType = ptManager_->GetRootIdByLocation(loc); in GenerateHClass() 75 auto ctorLoc = loc in GenerateHClass() 95 RecordTypeInfo(const PGODefineOpType &defType, const PGOTypeLocation &loc) RecordTypeInfo() argument 113 RecordTypeInfo(const PGODefineOpType &defType, const PGOTypeLocation &loc) RecordTypeInfo() argument 120 GenerateHClass(const PGOHClassGenerator &generator, const PGOTypeLocation &loc) GenerateHClass() argument 130 RecordTypeInfo(const PGODefineOpType &defType, const PGOTypeLocation &loc) RecordTypeInfo() argument 154 GenerateHClass(const PGOHClassGenerator &generator, const PGOTypeLocation &loc) GenerateHClass() argument [all...] |
H A D | pgo_type_parser.h | 36 virtual bool RecordTypeInfo(const PGODefineOpType &defType, const PGOTypeLocation &loc) = 0; 38 [[maybe_unused]] const PGOHClassGenerator &generator, [[maybe_unused]] const PGOTypeLocation &loc) {}; in GenerateHClass() 49 virtual bool RecordTypeInfo(const PGODefineOpType &defType, const PGOTypeLocation &loc) override; 50 virtual void GenerateHClass(const PGOHClassGenerator &generator, const PGOTypeLocation &loc) override; 58 virtual bool RecordTypeInfo(const PGODefineOpType &defType, const PGOTypeLocation &loc) override; 76 virtual bool RecordTypeInfo(const PGODefineOpType &defType, const PGOTypeLocation &loc) override; 77 virtual void GenerateHClass(const PGOHClassGenerator &generator, const PGOTypeLocation &loc) override; 85 virtual bool RecordTypeInfo(const PGODefineOpType &defType, const PGOTypeLocation &loc) override; 86 virtual void GenerateHClass(const PGOHClassGenerator &generator, const PGOTypeLocation &loc) override; 37 GenerateHClass( [[maybe_unused]] const PGOHClassGenerator &generator, [[maybe_unused]] const PGOTypeLocation &loc) GenerateHClass() argument
|
H A D | pgo_type_manager.h | 70 inline ProfileType GetRootIdByLocation(const PGOTypeLocation &loc) in GetRootIdByLocation() argument 72 auto it = locToRootIdMap_.find(loc); in GetRootIdByLocation() 79 inline ElementsKind GetElementsKindByLocation(PGOTypeLocation loc) in GetElementsKindByLocation() argument 81 auto it = locToElmsKindMap_.find(loc); in GetElementsKindByLocation() 88 inline void RecordLocationToRootType(const PGOTypeLocation &loc, ProfileType rootType) in RecordLocationToRootType() argument 90 locToRootIdMap_.emplace(loc, rootType); in RecordLocationToRootType() 93 inline void RecordLocationToElementsKind(PGOTypeLocation loc, ElementsKind kind) in RecordLocationToElementsKind() argument 95 locToElmsKindMap_.emplace(loc, kind); in RecordLocationToElementsKind()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
H A D | builtins_locale.cpp | 86 // 1. Let loc be the this value. in Maximize() 87 JSHandle<JSTaggedValue> loc = GetThis(argv); in Maximize() local 89 // 2. Perform ? RequireInternalSlot(loc, [[InitializedLocale]]). in Maximize() 90 if (!loc->IsJSLocale()) { in Maximize() 93 // 3. Let maximal be the result of the Add Likely Subtags algorithm applied to loc.[[Locale]]. If an error is in Maximize() 94 // signaled, set maximal to loc.[[Locale]]. in Maximize() 95 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc); in Maximize() 118 // 1. Let loc be the this value. in Minimize() 119 JSHandle<JSTaggedValue> loc = GetThis(argv); in Minimize() local 121 // 2. Perform ? RequireInternalSlot(loc, [[InitializedLocal in Minimize() 154 JSHandle<JSTaggedValue> loc = GetThis(argv); ToString() local 170 JSHandle<JSTaggedValue> loc = GetThis(argv); GetBaseName() local 190 JSHandle<JSTaggedValue> loc = GetThis(argv); GetCalendar() local 208 JSHandle<JSTaggedValue> loc = GetThis(argv); GetCaseFirst() local 225 JSHandle<JSTaggedValue> loc = GetThis(argv); GetCollation() local 242 JSHandle<JSTaggedValue> loc = GetThis(argv); GetHourCycle() local 260 JSHandle<JSTaggedValue> loc = GetThis(argv); GetNumeric() local 280 JSHandle<JSTaggedValue> loc = GetThis(argv); GetNumberingSystem() local 298 JSHandle<JSTaggedValue> loc = GetThis(argv); GetLanguage() local 324 JSHandle<JSTaggedValue> loc = GetThis(argv); GetScript() local 355 JSHandle<JSTaggedValue> loc = GetThis(argv); GetRegion() local [all...] |
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/ |
H A D | promiseVoid.cpp | 57 void PromiseVoidInferencePhase::SetRangeRecursively(ir::TypeNode *node, const lexer::SourceRange &loc) in SetRangeRecursively() argument 59 node->SetRange(loc); in SetRangeRecursively() 61 [loc](ir::AstNode *ast) -> ir::AstNode * { in SetRangeRecursively() 62 ast->SetRange(loc); in SetRangeRecursively() 69 const lexer::SourceRange &loc) in CreatePromiseVoidType() 90 SetRangeRecursively(promiseVoidType, loc); in CreatePromiseVoidType() 153 const auto &loc = last->Range(); in Perform() 154 return {loc.end, loc.end}; in Perform() 158 const auto &loc in Perform() 68 CreatePromiseVoidType(checker::ETSChecker *checker, const lexer::SourceRange &loc) CreatePromiseVoidType() argument [all...] |
H A D | defaultParameterLowering.h | 29 lexer::SourceLocation loc = index.GetLocation(pos); in ThrowSyntaxError() local 31 throw Error {ErrorType::SYNTAX, program->SourceFilePath().Utf8(), errorMessage, loc.line, loc.col}; in ThrowSyntaxError()
|
H A D | promiseVoid.h | 35 void SetRangeRecursively(ir::TypeNode *node, const lexer::SourceRange &loc); 36 ir::TypeNode *CreatePromiseVoidType(checker::ETSChecker *checker, const lexer::SourceRange &loc);
|
/arkcompiler/ets_runtime/ecmascript/stackmap/llvm/ |
H A D | llvm_stackmap_parser.cpp | 20 std::string LocationTy::TypeToString(Kind loc) const in TypeToString() 22 switch (loc) { in TypeToString() 89 const struct LocationTy &loc = record.locations[j]; in CalcCallSite() 91 switch (loc.location) { in CalcCallSite() 99 OPTIONAL_LOG_COMPILER(DEBUG) << "DwarfRegNum:" << loc.dwarfRegNum in CalcCallSite() 100 << " loc.OffsetOrSmallConstant:" << loc.offsetOrSmallConstant in CalcCallSite() 105 LLVMStackMapType::DwarfRegAndOffsetType info(loc.dwarfRegNum, loc.offsetOrSmallConstant); in CalcCallSite() 110 deoptbundles[pc].push_back(loc in CalcCallSite() [all...] |
/arkcompiler/ets_runtime/ecmascript/ts_types/ |
H A D | global_type_info.h | 85 bool operator==(const TypeLocation &loc) const in operator ==() 87 return jsPandaFile_ == loc.jsPandaFile_ && in operator ==() 88 methodOffset_ == loc.methodOffset_ && in operator ==() 89 bcIdx_ == loc.bcIdx_; in operator ==() 119 size_t operator()(const TypeLocation &loc) const in operator ()() 121 return std::hash<const JSPandaFile*>()(loc.GetJSPandaFile()) ^ in operator ()() 122 std::hash<uint32_t>()(loc.GetMethodOffset()) ^ in operator ()() 123 std::hash<int32_t>()(loc.GetBcIdx()); in operator ()()
|
/arkcompiler/ets_frontend/ets2panda/util/ |
H A D | errorHandler.cpp | 23 lexer::SourceLocation loc = index.GetLocation(pos); in ThrowSyntaxError() local 25 throw Error {ErrorType::SYNTAX, program_->SourceFilePath().Utf8(), errorMessage, loc.line, loc.col}; in ThrowSyntaxError()
|
/arkcompiler/ets_frontend/ets2panda/ir/ |
H A D | astDump.cpp | 240 void AstDumper::SerializeLoc(const lexer::SourceRange &loc) in SerializeLoc() argument 243 SerializePropKey("loc"); in SerializeLoc() 245 Wrap([this, &loc]() -> void { in SerializeLoc() 247 SerializeSourcePosition(loc.start); in SerializeLoc() 250 SerializeSourcePosition(loc.end); in SerializeLoc() 256 lexer::SourceLocation loc = index_.GetLocation(pos); in SerializeSourcePosition() local 258 Wrap([this, &loc]() -> void { in SerializeSourcePosition() 260 SerializeNumber(loc.line); in SerializeSourcePosition() 263 SerializeNumber(loc.col); in SerializeSourcePosition()
|
/arkcompiler/ets_frontend/es2panda/ir/ |
H A D | astDump.cpp | 236 void AstDumper::SerializeLoc(const lexer::SourceRange &loc) in SerializeLoc() argument 239 SerializePropKey("loc"); in SerializeLoc() 241 Wrap([this, &loc]() -> void { in SerializeLoc() 243 SerializeSourcePosition(loc.start); in SerializeLoc() 246 SerializeSourcePosition(loc.end); in SerializeLoc() 252 lexer::SourceLocation loc = index_.GetLocation(pos); in SerializeSourcePosition() local 254 Wrap([this, &loc]() -> void { in SerializeSourcePosition() 256 SerializeNumber(loc.line); in SerializeSourcePosition() 259 SerializeNumber(loc.col); in SerializeSourcePosition()
|
/arkcompiler/runtime_core/compiler/optimizer/ir/ |
H A D | spill_fill_data.h | 52 void SetSrc(Location loc) in SetSrc() argument 54 src_ = loc; in SetSrc() 56 void SetDst(Location loc) in SetDst() argument 58 dst_ = loc; in SetDst()
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/ |
H A D | spill_fill_data.h | 52 void SetSrc(Location loc) in SetSrc() argument 54 src_ = loc; in SetSrc() 56 void SetDst(Location loc) in SetDst() argument 58 dst_ = loc; in SetDst()
|
/arkcompiler/runtime_core/static_core/libllvmbackend/object_code/ |
H A D | code_info_producer.cpp | 145 const auto &loc = record.getLocation(i); in CollectRoots() local 146 auto kind = loc.getKind(); in CollectRoots() 149 (kind == LLVMStackMap::LocationKind::Constant && loc.getSmallConstant() == 0)); in CollectRoots() 154 auto slot = GetArkFrameSlot(loc, stackSize, fl.GetSlotSize()); in CollectRoots() 162 unsigned reg = loc.getDwarfRegNum(); in CollectRoots() 192 const auto &loc = record.getLocation(methodIdIndex + INLINE_VREGS + idx + VREG_VALUE); 195 if (loc.getKind() == LLVMStackMap::LocationKind::Constant) { 196 int32_t constVal = loc.getSmallConstant(); // sign extend required for VRegInfo::Type::INT64 198 } else if (loc.getKind() == LLVMStackMap::LocationKind::ConstantIndex) { 199 uint64_t constVal = stackmap_->getConstant(loc [all...] |
/arkcompiler/ets_frontend/ets2panda/checker/ |
H A D | checker.cpp | 86 lexer::SourceLocation loc = index.GetLocation(pos); in ThrowTypeError() local 88 throw Error {ErrorType::TYPE, program_->SourceFilePath().Utf8(), message, loc.line, loc.col}; in ThrowTypeError() 99 lexer::SourceLocation loc = index.GetLocation(pos); in LogTypeError() local 101 errorLogger_.WriteLog(Error {ErrorType::TYPE, program_->SourceFilePath().Utf8(), message, loc.line, loc.col}); in LogTypeError() 107 lexer::SourceLocation loc = index.GetLocation(pos); in Warning() local 112 std::cout << "Warning: " << message << " [" << fileName << ":" << loc.line << ":" << loc.col << "]" << std::endl; in Warning()
|
/arkcompiler/ets_frontend/es2panda/typescript/core/ |
H A D | destructuringContext.h | 62 void SetInferedTypeForVariable(binder::Variable *var, Type *inferedType, const lexer::SourcePosition &loc); 64 const lexer::SourcePosition &loc); 74 virtual Type *GetRestType([[maybe_unused]] const lexer::SourcePosition &loc) = 0; 105 Type *GetRestType([[maybe_unused]] const lexer::SourcePosition &loc) override; 126 Type *GetRestType([[maybe_unused]] const lexer::SourcePosition &loc) override;
|
/arkcompiler/ets_frontend/ets2panda/checker/ts/ |
H A D | destructuringContext.h | 74 void SetInferredTypeForVariable(varbinder::Variable *var, Type *inferredType, const lexer::SourcePosition &loc); 75 void Prepare(ir::TypeNode *typeAnnotation, ir::Expression *initializer, const lexer::SourcePosition &loc); 85 virtual Type *GetRestType([[maybe_unused]] const lexer::SourcePosition &loc) = 0; 115 Type *GetRestType([[maybe_unused]] const lexer::SourcePosition &loc) override; 132 Type *GetRestType([[maybe_unused]] const lexer::SourcePosition &loc) override;
|
/arkcompiler/ets_frontend/ets2panda/ast_verifier/ |
H A D | checkContext.cpp | 22 const auto loc = from.line; in AddCheckMessage() local 24 messages_.emplace_back(checkName_, cause.data(), dump.data(), loc); in AddCheckMessage()
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | vtable.cpp | 52 for (uint32_t loc = 0; loc < ITEM_NUM; ++loc) { in GetTuple() 53 JSTaggedValue val = Get(tupleIdx * TUPLE_SIZE + loc); in GetTuple()
|
/arkcompiler/ets_frontend/es2panda/typescript/types/ |
H A D | typeRelation.cpp | 162 void TypeRelation::RaiseError(const std::string &errMsg, const lexer::SourcePosition &loc) const in RaiseError() 164 checker_->ThrowTypeError(errMsg, loc); in RaiseError() 168 const lexer::SourcePosition &loc) const in RaiseError() 170 checker_->ThrowTypeError(list, loc); in RaiseError()
|
/arkcompiler/ets_runtime/ecmascript/stackmap/ |
H A D | ark_stackmap_builder.cpp | 324 int loc = FindLoc(CallsitePcs, x.first); in GenArkCallsiteAOTFileInfo() local 325 ASSERT(loc >= 0 && loc < static_cast<int>(callsiteNum)); in GenArkCallsiteAOTFileInfo() 326 result.callsites[static_cast<uint32_t>(loc)] = callsite; in GenArkCallsiteAOTFileInfo() 332 int loc = FindLoc(CallsitePcs, x.first); in GenArkCallsiteAOTFileInfo() local 333 ASSERT(loc >= 0 && loc < static_cast<int>(callsiteNum)); in GenArkCallsiteAOTFileInfo() 335 result.callsites[static_cast<uint32_t>(loc)].head.calliteOffsetInTxtSec = x.first; in GenArkCallsiteAOTFileInfo() 338 result.callsites[static_cast<uint32_t>(loc)].head.deoptNum = deopt.size(); in GenArkCallsiteAOTFileInfo() 339 result.callsites[static_cast<uint32_t>(loc)] in GenArkCallsiteAOTFileInfo() [all...] |
/arkcompiler/ets_frontend/es2panda/typescript/ |
H A D | checker.cpp | 80 lexer::SourceLocation loc = index.GetLocation(pos); in ThrowTypeError() local 82 throw Error {ErrorType::TYPE, message, loc.line, loc.col}; in ThrowTypeError()
|