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

Method Print

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

Source from the content-addressed store, hash-verified

1310 return self.heap.reader.ReadTagged(self.address + offset)
1311
1312 def Print(self, p):
1313 p.Print("Map(%08x)" % (self.address))
1314 p.Print(" - size: %d, inobject: %d, (unused: %d), visitor: %d" % (
1315 self.ReadByte(self.InstanceSizeOffset()),
1316 self.ReadByte(self.InObjectProperties()),
1317 self.ReadByte(self.UnusedByte()),
1318 self.VisitorId()))
1319
1320 instance_type = INSTANCE_TYPES[self.ReadByte(self.InstanceTypeOffset())]
1321 bitfield = self.ReadByte(self.BitFieldOffset())
1322 bitfield2 = self.ReadByte(self.BitField2Offset())
1323 unused = self.ReadByte(self.UnusedPropertyFieldsOffset())
1324 p.Print(" - %s, bf: %d, bf2: %d, unused: %d" % (
1325 instance_type, bitfield, bitfield2, unused))
1326
1327 p.Print(" - kind: %s" % (self.Decode(3, 5, bitfield2)))
1328
1329 bitfield3 = self.ReadSlot(self.BitField3Offset())
1330
1331 p.Print(
1332 " - EnumLength: %d NumberOfOwnDescriptors: %d OwnsDescriptors: %s" % (
1333 self.Decode(0, 10, bitfield3),
1334 self.Decode(10, 10, bitfield3),
1335 self.Decode(21, 1, bitfield3)))
1336 p.Print(" - DictionaryMap: %s" % (self.Decode(20, 1, bitfield3)))
1337 p.Print(" - Deprecated: %s" % (self.Decode(23, 1, bitfield3)))
1338 p.Print(" - IsUnstable: %s" % (self.Decode(24, 1, bitfield3)))
1339 p.Print(" - NewTargetIsBase: %s" % (self.Decode(27, 1, bitfield3)))
1340
1341 descriptors = self.ObjectField(self.DescriptorsOffset())
1342 if descriptors.__class__ == FixedArray:
1343 DescriptorArray(descriptors).Print(p)
1344 else:
1345 p.Print(" - Descriptors: %s" % (descriptors))
1346
1347 transitions = self.ObjectField(self.TransitionsOrPrototypeInfoOffset())
1348 if transitions.__class__ == FixedArray:
1349 TransitionArray(transitions).Print(p)
1350 else:
1351 p.Print(" - TransitionsOrPrototypeInfo: %s" % (transitions))
1352
1353 p.Print(" - Prototype: %s" % self.ObjectField(self.PrototypeOffset()))
1354
1355 def __init__(self, heap, map, address):
1356 HeapObject.__init__(self, heap, map, address)

Callers 15

dump_regionFunction · 0.45
PrintMethod · 0.45
PrintMethod · 0.45
PrintMethod · 0.45
PrintMethod · 0.45
PrintMethod · 0.45
PrintMethod · 0.45
PrintMethod · 0.45
PrintMethod · 0.45
PrintMethod · 0.45
InterpretMemoryMethod · 0.45
do_display_objectMethod · 0.45

Calls 15

ReadByteMethod · 0.95
InstanceSizeOffsetMethod · 0.95
InObjectPropertiesMethod · 0.95
UnusedByteMethod · 0.95
VisitorIdMethod · 0.95
InstanceTypeOffsetMethod · 0.95
BitFieldOffsetMethod · 0.95
BitField2OffsetMethod · 0.95
DecodeMethod · 0.95
ReadSlotMethod · 0.95
BitField3OffsetMethod · 0.95

Tested by

no test coverage detected