MCPcopy Create free account
hub / github.com/nodejs/node / format_onheap_address

Method format_onheap_address

deps/v8/tools/grokdump.py:2942–2952  ·  view source on GitHub ↗
(self, size, maybeaddress, uncompressed)

Source from the content-addressed store, hash-verified

2940 (style_class, self.encfilename, straddress, straddress))
2941
2942 def format_onheap_address(self, size, maybeaddress, uncompressed):
2943 if maybeaddress is None:
2944 return "not in dump"
2945 else:
2946 straddress = "0x" + self.reader.FormatTagged(maybeaddress)
2947 struncompressed = "0x" + self.reader.FormatIntPtr(uncompressed)
2948 style_class = ""
2949 if not self.reader.IsValidAddress(uncompressed):
2950 style_class = "class=nd"
2951 return ("<a %s href=s?%s&amp;val=%s>%s</a>" %
2952 (style_class, self.encfilename, struncompressed, straddress))
2953
2954 def output_header(self, f):
2955 f.write(WEB_HEADER % {

Callers 1

output_wordsMethod · 0.95

Calls 3

FormatTaggedMethod · 0.80
IsValidAddressMethod · 0.80
FormatIntPtrMethod · 0.45

Tested by

no test coverage detected