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

Method __init__

deps/v8/tools/grokdump.py:1692–1715  ·  view source on GitHub ↗
(self, heap, map, address)

Source from the content-addressed store, hash-verified

1690 return 12 * self.heap.TaggedPointerSize() + 5 * self.heap.IntSize()
1691
1692 def __init__(self, heap, map, address):
1693 HeapObject.__init__(self, heap, map, address)
1694 try:
1695 self.code = self.ObjectField(self.CodeOffset())
1696 self.script = self.ObjectField(self.ScriptOffset())
1697 self.inferred_name = self.ObjectField(self.InferredNameOffset())
1698 if heap.TaggedPointerSize() == 8:
1699 start_position_and_type = \
1700 heap.reader.ReadU32(self.StartPositionAndTypeOffset())
1701 self.start_position = start_position_and_type >> 2
1702 pseudo_smi_end_position = \
1703 heap.reader.ReadU32(self.EndPositionOffset())
1704 self.end_position = pseudo_smi_end_position >> 2
1705 else:
1706 start_position_and_type = \
1707 self.SmiField(self.StartPositionAndTypeOffset())
1708 if start_position_and_type:
1709 self.start_position = start_position_and_type >> 2
1710 else:
1711 self.start_position = None
1712 self.end_position = \
1713 self.SmiField(self.EndPositionOffset())
1714 except:
1715 print("*** Error while reading SharedFunctionInfo")
1716
1717
1718class Script(HeapObject):

Callers

nothing calls this directly

Calls 11

CodeOffsetMethod · 0.95
ScriptOffsetMethod · 0.95
InferredNameOffsetMethod · 0.95
EndPositionOffsetMethod · 0.95
ObjectFieldMethod · 0.80
ReadU32Method · 0.80
SmiFieldMethod · 0.80
printFunction · 0.70
__init__Method · 0.45
TaggedPointerSizeMethod · 0.45

Tested by

no test coverage detected