(self, p)
| 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 = "" |
nothing calls this directly
no test coverage detected