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

Method Print

deps/v8/tools/grokdump.py:1640–1655  ·  view source on GitHub ↗
(self, p)

Source from the content-addressed store, hash-verified

1638 self.shared = self.ObjectField(self.SharedOffset())
1639
1640 def Print(self, p):
1641 source = "\n".join(" %s" % line for line in self._GetSource().split("\n"))
1642 p.Print("JSFunction(%s) {" % self.heap.reader.FormatIntPtr(self.address))
1643 p.Indent()
1644 p.Print("inferred name: %s" % self.shared.inferred_name)
1645 if self.shared.script.Is(Script) and self.shared.script.name.Is(String):
1646 p.Print("script name: %s" % self.shared.script.name)
1647 p.Print("source:")
1648 p.Print(source)
1649 p.Print("code:")
1650 self.code.Print(p)
1651 if self.code != self.shared.code:
1652 p.Print("unoptimized code:")
1653 self.shared.code.Print(p)
1654 p.Dedent()
1655 p.Print("}")
1656
1657 def __str__(self):
1658 inferred_name = ""

Callers

nothing calls this directly

Calls 8

_GetSourceMethod · 0.95
IndentMethod · 0.80
IsMethod · 0.80
DedentMethod · 0.80
joinMethod · 0.45
splitMethod · 0.45
PrintMethod · 0.45
FormatIntPtrMethod · 0.45

Tested by

no test coverage detected