Home | History | Annotate | Download | only in tools

Lines Matching full:heap

47 heap. Code objects are disassembled and the addresses linked from the
617 def FormatDisasmLine(start, heap, line):
619 stack_slot = heap.stack_map.get(line_address)
623 code = AnnotateAddresses(heap, line[1])
627 def AnnotateAddresses(heap, line):
631 object = heap.FindObject(maybe_address)
639 def __init__(self, heap, map, address):
640 self.heap = heap
651 return "HeapObject(%s, %s)" % (self.heap.reader.FormatIntPtr(self.address),
655 field_value = self.heap.reader.ReadUIntPtr(self.address + offset)
656 return self.heap.FindObjectOrSmi(field_value)
659 field_value = self.heap.reader.ReadUIntPtr(self.address + offset)
666 return self.heap.PointerSize() + self.heap.IntSize()
668 def __init__(self, heap, map, address):
669 HeapObject.__init__(self, heap, map, address)
671 heap.reader.ReadU8(self.address + self.InstanceTypeOffset())
676 return self.heap.PointerSize()
678 def __init__(self, heap, map, address):
679 HeapObject.__init__(self, heap, map, address)
694 return self.heap.PointerSize() * 3
696 def __init__(self, heap, map, address):
697 String.__init__(self, heap, map, address)
698 self.chars = heap.reader.ReadBytes(self.address + self.CharsOffset(),
712 def __init__(self, heap, map, address):
713 String.__init__(self, heap, map, address)
714 reader = heap.reader
737 return self.heap.PointerSize() * 3
740 return self.heap.PointerSize() * 4
742 def __init__(self, heap, map, address):
743 String.__init__(self, heap, map, address)
753 return self.heap.PointerSize()
755 def __init__(self, heap, map, address):
756 HeapObject.__init__(self, heap, map, address)
768 return self.heap.PointerSize()
771 return self.heap.PointerSize() * 2
773 def __init__(self, heap, map, address):
774 HeapObject.__init__(self, heap, map, address)
778 p.Print("FixedArray(%s) {" % self.heap.reader.FormatIntPtr(self.address))
794 return 3 * self.heap.PointerSize()
797 return 5 * self.heap.PointerSize()
799 def __init__(self, heap, map, address):
800 HeapObject.__init__(self, heap, map, address)
802 heap.reader.ReadU32(self.address + self.CodeEntryOffset())
803 self.code = heap.FindObject(code_entry - Code.HeaderSize(heap) + 1)
808 p.Print("JSFunction(%s) {" % self.heap.reader.FormatIntPtr(self.address))
828 (self.heap.reader.FormatIntPtr(self.address), inferred_name)
842 return 2 * self.heap.PointerSize()
845 return 7 * self.heap.PointerSize()
848 return 9 * self.heap.PointerSize()
851 return 12 * self.heap.PointerSize() + 4 * self.heap.IntSize()
854 return 12 * self.heap.PointerSize() + 5 * self.heap.IntSize()
856 def __init__(self, heap, map, address):
857 HeapObject.__init__(self, heap, map, address)
861 if heap.PointerSize() == 8:
863 heap.reader.ReadU32(self.StartPositionAndTypeOffset())
866 heap.reader.ReadU32(self.EndPositionOffset())
878 return self.heap.PointerSize()
881 return self.SourceOffset() + self.heap.PointerSize()
883 def __init__(self, heap, map, address):
884 HeapObject.__init__(self, heap, map, address)
893 return self.heap.PointerSize()
896 def HeaderSize(heap):
897 return (heap.PointerSize() + heap.IntSize() + \
898 4 * heap.PointerSize() + 3 * heap.IntSize() + \
901 def __init__(self, heap, map, address):
902 HeapObject.__init__(self, heap, map, address)
903 self.entry = self.address + Code.HeaderSize(heap)
905 heap.reader.ReadU32(self.address + self.InstructionSizeOffset())
908 lines = self.heap.reader.GetDisasmLines(self.entry, self.instruction_size)
909 p.Print("Code(%s) {" % self.heap.reader.FormatIntPtr(self.address))
917 return FormatDisasmLine(self.entry, self.heap, line)
1039 heap = V8Heap(reader, stack_map)
1045 print FormatDisasmLine(start, heap, line)
1051 heap_object = heap.FindObject(maybe_address)