(self, p)
| 1599 | return (self.array.length - 3) // 2 |
| 1600 | |
| 1601 | def Print(self, p): |
| 1602 | length = self.Length() |
| 1603 | array = self.array |
| 1604 | |
| 1605 | p.Print("Transitions(%08x, length=%d)" % (array.address, length)) |
| 1606 | p.Print("[backpointer] %s" % (array.Get(0))) |
| 1607 | if self.IsSimpleTransition(): |
| 1608 | if length == 1: |
| 1609 | p.Print("[simple target] %s" % (array.Get(1))) |
| 1610 | return |
| 1611 | |
| 1612 | elements = array.Get(1) |
| 1613 | if elements is not None: |
| 1614 | p.Print("[elements ] %s" % (elements)) |
| 1615 | |
| 1616 | prototype = array.Get(2) |
| 1617 | if prototype is not None: |
| 1618 | p.Print("[prototype ] %s" % (prototype)) |
| 1619 | |
| 1620 | for di in range(length): |
| 1621 | i = 3 + di * 2 |
| 1622 | p.Print("[%i] symbol: %s" % (di, array.Get(i + 0))) |
| 1623 | p.Print("[%i] target: %s" % (di, array.Get(i + 1))) |
| 1624 | |
| 1625 | |
| 1626 | class JSFunction(HeapObject): |
nothing calls this directly
no test coverage detected