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

Method output_data

deps/v8/tools/grokdump.py:3207–3227  ·  view source on GitHub ↗
(self, f, straddress, datakind)

Source from the content-addressed store, hash-verified

3205 return html.escape(str(heap_object or ""))
3206
3207 def output_data(self, f, straddress, datakind):
3208 try:
3209 self.output_header(f)
3210 address = int(straddress, 0)
3211 if not self.reader.IsValidAddress(address):
3212 f.write("<h3>Address 0x%x not found in the dump.</h3>" % address)
3213 return
3214 region = self.reader.FindRegion(address)
3215 if datakind == "address":
3216 self.output_words(f, region[0], region[0] + region[1], address, "Dump",
3217 self.heap.MachinePointerSize())
3218 if datakind == "tagged":
3219 self.output_words(f, region[0], region[0] + region[1], address,
3220 "Tagged Dump", self.heap.TaggedPointerSize())
3221 elif datakind == "ascii":
3222 self.output_ascii(f, region[0], region[0] + region[1], address)
3223 self.output_footer(f)
3224
3225 except ValueError:
3226 f.write("<h3>Unrecognized address format \"%s\".</h3>" % straddress)
3227 return
3228
3229 def output_words(self, f, start_address, end_address, highlight_address, desc,
3230 size):

Callers 1

do_GETMethod · 0.80

Calls 10

output_headerMethod · 0.95
output_wordsMethod · 0.95
output_asciiMethod · 0.95
output_footerMethod · 0.95
intFunction · 0.85
IsValidAddressMethod · 0.80
FindRegionMethod · 0.80
writeMethod · 0.45
MachinePointerSizeMethod · 0.45
TaggedPointerSizeMethod · 0.45

Tested by

no test coverage detected