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

Method FindWord

deps/v8/tools/grokdump.py:940–949  ·  view source on GitHub ↗
(self, word, alignment=0)

Source from the content-addressed store, hash-verified

938 cb(self, r.start, r.memory.data_size, r.memory.rva)
939
940 def FindWord(self, word, alignment=0):
941 def search_inside_region(reader, start, size, location):
942 location = (location + alignment) & ~alignment
943 for i in range(size - self.MachinePointerSize()):
944 loc = location + i
945 if reader._ReadWord(loc) == word:
946 slot = start + (loc - location)
947 print("%s: %s" % (reader.FormatIntPtr(slot),
948 reader.FormatIntPtr(word)))
949 self.ForEachMemoryRegion(search_inside_region)
950
951 def FindPtr(self, expected_value, start, end):
952 ptr_size = self.MachinePointerSize()

Callers 1

do_searchMethod · 0.80

Calls 1

ForEachMemoryRegionMethod · 0.95

Tested by

no test coverage detected