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

Method do_display_object

deps/v8/tools/grokdump.py:3884–3901  ·  view source on GitHub ↗

Interpret memory at the given address as a V8 object. Automatic alignment makes sure that you can pass tagged as well as un-tagged addresses.

(self, address)

Source from the content-addressed store, hash-verified

3882 return self.do_display_object(address)
3883
3884 def do_display_object(self, address):
3885 """
3886 Interpret memory at the given address as a V8 object.
3887
3888 Automatic alignment makes sure that you can pass tagged as well as
3889 un-tagged addresses.
3890 """
3891 address = self.ParseAddressExpr(address)
3892 if self.reader.IsAlignedAddress(address):
3893 address = address + 1
3894 elif not self.heap.IsTaggedObjectAddress(address):
3895 print("Address doesn't look like a valid pointer!")
3896 return
3897 heap_object = self.padawan.SenseObject(address)
3898 if heap_object:
3899 heap_object.Print(Printer())
3900 else:
3901 print("Address cannot be interpreted as object!")
3902
3903 def do_dso(self, args):
3904 """ see display_stack_objects """

Callers 1

do_doMethod · 0.95

Calls 7

ParseAddressExprMethod · 0.95
PrinterClass · 0.85
IsAlignedAddressMethod · 0.80
IsTaggedObjectAddressMethod · 0.80
SenseObjectMethod · 0.80
printFunction · 0.70
PrintMethod · 0.45

Tested by

no test coverage detected