Home
last modified time | relevance | path

Searched refs:fileLocation (Results 1 - 11 of 11) sorted by relevance

/arkcompiler/ets_frontend/merge_abc/src/
H A DassemblyLabelProto.cpp22 const auto &fileLocation = label.file_location; in Serialize() local
23 if (fileLocation.has_value()) { in Serialize()
25 FileLocation::Serialize(fileLocation.value(), *protoLocation); in Serialize()
H A DassemblyFileLocationProto.cpp32 panda::pandasm::FileLocation fileLocation(wholeLine, protoLocation.boundleft(), protoLocation.boundright(), in Deserialize()
34 location = fileLocation; in Deserialize()
H A DassemblyFunctionProto.cpp103 const auto &fileLocation = function.file_location; in Serialize() local
104 if (fileLocation.has_value()) { in Serialize()
106 FileLocation::Serialize(fileLocation.value(), *protoFileLocation); in Serialize()
/arkcompiler/runtime_core/static_core/assembler/
H A Dassembly-parser.h250 if (iter->second.fileLocation->isDefined && flag) { in AddObjectInTable()
254 if (!iter->second.fileLocation->isDefined && flag) { in AddObjectInTable()
255 iter->second.fileLocation->isDefined = true; in AddObjectInTable()
259 if (!iter->second.fileLocation->isDefined) { in AddObjectInTable()
260 iter->second.fileLocation->boundLeft = context_.tokens[context_.number - 1].boundLeft; in AddObjectInTable()
261 iter->second.fileLocation->boundRight = context_.tokens[context_.number - 1].boundRight; in AddObjectInTable()
262 iter->second.fileLocation->wholeLine = context_.tokens[context_.number - 1].wholeLine; in AddObjectInTable()
263 iter->second.fileLocation->lineNumber = lineStric_; in AddObjectInTable()
H A Dassembly-label.h26 std::optional<FileLocation> fileLocation; // NOLINT(misc-non-private-member-variables-in-classes) member
30 : name(std::move(s)), fileLocation({fC, bL, bR, lN, d}) in Label()
H A Dassembly-record.h41 std::optional<FileLocation> fileLocation; member
48 fileLocation({fC, bL, bR, lN, d}) in Record()
H A Dide_helpers.h61 if (item.fileLocation && item.fileLocation->isDefined) { in JsonSerializeItemBody()
H A Dassembly-parser.cpp696 if (!k.second.fileLocation->isDefined) { in ParseResetFunctionLabelsAndParams()
698 k.second.fileLocation->boundLeft, k.second.fileLocation->boundRight, in ParseResetFunctionLabelsAndParams()
699 k.second.fileLocation->wholeLine); in ParseResetFunctionLabelsAndParams()
776 if (!func.fileLocation->isDefined) { in ParseResetFunctionTable()
777 context_.err = Error("This function does not exist.", func.fileLocation->lineNumber, in ParseResetFunctionTable()
778 Error::ErrorType::ERR_BAD_ID_FUNCTION, "", func.fileLocation->boundLeft, in ParseResetFunctionTable()
779 func.fileLocation->boundRight, func.fileLocation->wholeLine); in ParseResetFunctionTable()
784 func.fileLocation in ParseResetFunctionTable()
[all...]
H A Dassembly-function.h90 std::optional<FileLocation> fileLocation; member
110 fileLocation({fC, bL, bR, lN, d}) in Function()
/arkcompiler/runtime_core/static_core/runtime/profilesaver/
H A Dprofile_dump_info.cpp309 const PandaString &fileLocation = it.first; in Save() local
312 if (fileLocation.size() >= K_MAX_FILE_KEY_LENGTH) { in Save()
317 size_t requiredCapacity = buffer.size() + K_LINE_HEADER_SIZE + fileLocation.size() + in Save()
322 ASSERT(fileLocation.size() <= std::numeric_limits<uint16_t>::max()); in Save()
326 AddUintToBuffer(&buffer, static_cast<uint16_t>(fileLocation.size())); in Save()
330 AddStringToBuffer(&buffer, fileLocation); in Save()
/arkcompiler/runtime_core/static_core/assembler/tests/
H A Dparser_test.cpp358 ASSERT_EQ(item.Value().functionTable.at(sigMain).labelTable.at("label1").fileLocation->lineNumber, 2U); in TEST()
359 ASSERT_EQ(item.Value().functionTable.at(sigMain).labelTable.at("label1").fileLocation->isDefined, true); in TEST()
360 ASSERT_EQ(item.Value().functionTable.at(sigMain).labelTable.at("label2").fileLocation->lineNumber, 3U); in TEST()
361 ASSERT_EQ(item.Value().functionTable.at(sigMain).labelTable.at("label2").fileLocation->isDefined, true); in TEST()
362 ASSERT_EQ(item.Value().functionTable.at(sigM123).labelTable.at("la1").fileLocation->lineNumber, 11U); in TEST()
363 ASSERT_EQ(item.Value().functionTable.at(sigM123).labelTable.at("la1").fileLocation->isDefined, true); in TEST()

Completed in 13 milliseconds