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

Method FindWordList

deps/v8/tools/grokdump.py:961–974  ·  view source on GitHub ↗
(self, word)

Source from the content-addressed store, hash-verified

959 return None
960
961 def FindWordList(self, word):
962 aligned_res = []
963 unaligned_res = []
964 def search_inside_region(reader, start, size, location):
965 for i in range(size - self.MachinePointerSize()):
966 loc = location + i
967 if reader._ReadWord(loc) == word:
968 slot = start + (loc - location)
969 if self.IsAlignedAddress(slot):
970 aligned_res.append(slot)
971 else:
972 unaligned_res.append(slot)
973 self.ForEachMemoryRegion(search_inside_region)
974 return (aligned_res, unaligned_res)
975
976 def FindLocation(self, address):
977 offset = 0

Callers 1

output_search_resMethod · 0.80

Calls 1

ForEachMemoryRegionMethod · 0.95

Tested by

no test coverage detected