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

Method annotate_disasm_addresses

deps/v8/tools/grokdump.py:3430–3443  ·  view source on GitHub ↗
(self, line)

Source from the content-addressed store, hash-verified

3428 return
3429
3430 def annotate_disasm_addresses(self, line):
3431 extra = []
3432 for m in ADDRESS_RE.finditer(line):
3433 maybe_address = int(m.group(0), 16)
3434 formatted_address = self.format_address(maybe_address, m.group(0))
3435 line = line.replace(m.group(0), formatted_address)
3436 object_info = self.padawan.SenseObject(maybe_address)
3437 if not object_info:
3438 continue
3439 extra.append(html.escape(str(object_info)))
3440 if len(extra) == 0:
3441 return line
3442 return ("%s <span class=disasmcomment>;; %s</span>" %
3443 (line, ", ".join(extra)))
3444
3445 def format_disasm_line(
3446 self, f, start, line, next_address, highlight_address):

Callers 1

format_disasm_lineMethod · 0.95

Calls 7

format_addressMethod · 0.95
intFunction · 0.85
strFunction · 0.85
SenseObjectMethod · 0.80
appendMethod · 0.45
escapeMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected