MCPcopy Index your code
hub / github.com/nodejs/node / FindLocation

Method FindLocation

deps/v8/tools/grokdump.py:976–987  ·  view source on GitHub ↗
(self, address)

Source from the content-addressed store, hash-verified

974 return (aligned_res, unaligned_res)
975
976 def FindLocation(self, address):
977 offset = 0
978 if self.memory_list64 is not None:
979 for r in self.memory_list64.ranges:
980 if r.start <= address < r.start + r.size:
981 return self.memory_list64.base_rva + offset + address - r.start
982 offset += r.size
983 if self.memory_list is not None:
984 for r in self.memory_list.ranges:
985 if r.start <= address < r.start + r.memory.data_size:
986 return r.memory.rva + address - r.start
987 return None
988
989 def GetDisasmLines(self, address, size):
990 def CountUndefinedInstructions(lines):

Callers 6

IsValidAddressMethod · 0.95
ReadU8Method · 0.95
ReadU32Method · 0.95
ReadU64Method · 0.95
ReadBytesMethod · 0.95
GetDisasmLinesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected