Lines Matching defs:Cursor
168 uint64_t getPCRelAddress32(Cursor &C) {
174 uint64_t getPCRelAddress64(Cursor &C) {
512 AddressExtractor::Cursor Cursor(0);
513 while (Cursor && Cursor.tell() < SectionSize) {
514 const uint64_t Offset = Cursor.tell();
515 const uint64_t IP = AE.getPCRelAddress32(Cursor);
518 if (!Cursor)
521 toString(Cursor.takeError()).c_str());
591 DataExtractor::Cursor ORCCursor(0);
592 DataExtractor::Cursor IPCursor(0);
942 AddressExtractor::Cursor IPCursor(0);
1000 AddressExtractor::Cursor Cursor(StaticCallTableAddress - SectionAddress);
1002 while (Cursor && Cursor.tell() < Stop->getAddress() - SectionAddress) {
1003 const uint64_t CallAddress = AE.getPCRelAddress32(Cursor);
1004 const uint64_t KeyAddress = AE.getPCRelAddress32(Cursor);
1007 if (!Cursor)
1010 toString(Cursor.takeError()).c_str());
1109 AddressExtractor::Cursor Cursor(0);
1111 while (Cursor && Cursor.tell() < ExceptionsSection->getSize()) {
1112 const uint64_t InstAddress = AE.getPCRelAddress32(Cursor);
1113 const uint64_t FixupAddress = AE.getPCRelAddress32(Cursor);
1114 const uint64_t Data = AE.getU32(Cursor);
1117 if (!Cursor)
1121 toString(Cursor.takeError()).c_str());
1214 DataExtractor::Cursor Cursor(0);
1215 while (Cursor && !DE.eof(Cursor)) {
1216 const uint64_t NextOffset = alignTo(Cursor.tell(), Align(PARA_PATCH_ALIGN));
1220 Cursor.seek(NextOffset);
1222 const uint64_t InstrLocation = DE.getU64(Cursor);
1223 const uint8_t Type = DE.getU8(Cursor);
1224 const uint8_t Len = DE.getU8(Cursor);
1226 if (!Cursor)
1230 toString(Cursor.takeError()).c_str());
1314 AddressExtractor::Cursor Cursor(0);
1316 while (Cursor && Cursor.tell() < BugTableSection->getSize()) {
1317 const uint64_t Pos = Cursor.tell();
1318 const uint64_t InstAddress = AE.getPCRelAddress32(Cursor);
1319 Cursor.seek(Pos + BUG_TABLE_ENTRY_SIZE);
1321 if (!Cursor)
1324 toString(Cursor.takeError()).c_str());
1480 AddressExtractor::Cursor Cursor(0);
1482 while (Cursor && !AE.eof(Cursor)) {
1483 const uint64_t OrgInstAddress = AE.getPCRelAddress32(Cursor);
1484 const uint64_t AltInstAddress = AE.getPCRelAddress32(Cursor);
1485 const uint64_t Feature = AE.getUnsigned(Cursor, AltInstFeatureSize);
1486 const uint8_t OrgSize = AE.getU8(Cursor);
1487 const uint8_t AltSize = AE.getU8(Cursor);
1490 const uint8_t PadLen = AltInstHasPadLen ? AE.getU8(Cursor) : 0;
1492 if (!Cursor)
1496 toString(Cursor.takeError()).c_str());
1612 AddressExtractor::Cursor Cursor(0);
1614 while (Cursor && !AE.eof(Cursor)) {
1615 const uint16_t Vendor = AE.getU16(Cursor);
1616 const uint16_t Device = AE.getU16(Cursor);
1617 const uint32_t Class = AE.getU32(Cursor);
1618 const uint32_t ClassShift = AE.getU32(Cursor);
1619 const uint64_t HookAddress = AE.getPCRelAddress32(Cursor);
1621 if (!Cursor)
1624 toString(Cursor.takeError()).c_str());
1727 AddressExtractor::Cursor Cursor(StaticKeysJumpTableAddress - SectionAddress);
1729 while (Cursor && Cursor.tell() < Stop->getAddress() - SectionAddress) {
1730 const uint64_t JumpAddress = AE.getPCRelAddress32(Cursor);
1731 const uint64_t TargetAddress = AE.getPCRelAddress32(Cursor);
1732 const uint64_t KeyAddress = AE.getPCRelAddress64(Cursor);
1735 if (!Cursor)
1739 toString(Cursor.takeError()).c_str());
1929 AddressExtractor::Cursor Cursor(StaticKeysJumpTableAddress - SectionAddress);
1934 while (Cursor && Cursor.tell() < Stop->getAddress() - SectionAddress) {
1935 const uint64_t JumpAddress = AE.getPCRelAddress32(Cursor);
1936 const uint64_t TargetAddress = AE.getPCRelAddress32(Cursor);
1937 const uint64_t KeyAddress = AE.getPCRelAddress64(Cursor);
1940 if (!Cursor)
1943 toString(Cursor.takeError()).c_str());