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

Method _GetSource

deps/v8/tools/grokdump.py:1664–1673  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1662 (self.heap.reader.FormatIntPtr(self.address), inferred_name)
1663
1664 def _GetSource(self):
1665 source = "?source?"
1666 start = self.shared.start_position
1667 end = self.shared.end_position
1668 if not self.shared.script.Is(Script): return source
1669 script_source = self.shared.script.source
1670 if not script_source.Is(String): return source
1671 if start and end:
1672 source = script_source.GetChars()[start:end]
1673 return source
1674
1675
1676class SharedFunctionInfo(HeapObject):

Callers 1

PrintMethod · 0.95

Calls 2

IsMethod · 0.80
GetCharsMethod · 0.45

Tested by

no test coverage detected