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

Method SenseMap

deps/v8/tools/grokdump.py:2201–2223  ·  view source on GitHub ↗
(self, tagged_address)

Source from the content-addressed store, hash-verified

2199 return None
2200
2201 def SenseMap(self, tagged_address):
2202 if self.heap.IsPointerCompressed():
2203 # Interpret the first page as the read-only space in pointer-compression.
2204 page = self.GetPageAddress(tagged_address)
2205 tagged_page = page & 0xFFFFFFFF
2206 if tagged_page == 0:
2207 offset = self.GetPageOffset(tagged_address)
2208 lookup_key = ("read_only_space", offset)
2209 known_map_info = KNOWN_MAPS.get(lookup_key)
2210 if known_map_info:
2211 known_map_type, known_map_name = known_map_info
2212 return KnownMap(self, known_map_name, known_map_type)
2213 if self.IsInKnownMapSpace(tagged_address):
2214 offset = self.GetPageOffset(tagged_address)
2215 lookup_key = ("old_space", offset)
2216 known_map_info = KNOWN_MAPS.get(lookup_key)
2217 if known_map_info:
2218 known_map_type, known_map_name = known_map_info
2219 return KnownMap(self, known_map_name, known_map_type)
2220 found_map = self.heap.FindMap(tagged_address)
2221 if found_map:
2222 return found_map
2223 return None
2224
2225 def FindObjectOrSmi(self, tagged_address):
2226 """When used as a mixin in place of V8Heap."""

Callers 1

SenseObjectMethod · 0.95

Calls 7

GetPageAddressMethod · 0.95
GetPageOffsetMethod · 0.95
IsInKnownMapSpaceMethod · 0.95
KnownMapClass · 0.85
getMethod · 0.65
IsPointerCompressedMethod · 0.45
FindMapMethod · 0.45

Tested by

no test coverage detected