diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2013-11-10 02:02:27 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-11-11 02:40:36 +0100 |
commit | f230a1cf749e984439b5bb9729d9db9f48472827 (patch) | |
tree | 153596de2251b717ad79823f23fabf4c140d6d35 /deps/v8/tools/grokdump.py | |
parent | a12870c823b9b67110b27a470fcac342cf1dfbd6 (diff) | |
download | android-node-v8-f230a1cf749e984439b5bb9729d9db9f48472827.tar.gz android-node-v8-f230a1cf749e984439b5bb9729d9db9f48472827.tar.bz2 android-node-v8-f230a1cf749e984439b5bb9729d9db9f48472827.zip |
v8: upgrade to 3.22.24
This commit removes the simple/test-event-emitter-memory-leak test for
being unreliable with the new garbage collector: the memory pressure
exerted by the test case is too low for the garbage collector to kick
in. It can be made to work again by limiting the heap size with the
--max_old_space_size=x flag but that won't be very reliable across
platforms and architectures.
Diffstat (limited to 'deps/v8/tools/grokdump.py')
-rwxr-xr-x | deps/v8/tools/grokdump.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/deps/v8/tools/grokdump.py b/deps/v8/tools/grokdump.py index 317a7d6a91..d09c042204 100755 --- a/deps/v8/tools/grokdump.py +++ b/deps/v8/tools/grokdump.py @@ -1029,7 +1029,8 @@ class Map(HeapObject): class String(HeapObject): def LengthOffset(self): - return self.heap.PointerSize() + # First word after the map is the hash, the second is the length. + return self.heap.PointerSize() * 2 def __init__(self, heap, map, address): HeapObject.__init__(self, heap, map, address) @@ -1215,18 +1216,18 @@ class DescriptorArray(object): def Deleted(self, value): return self.Decode(6, 1, value) == 1 - def Storage(self, value): - return self.Decode(7, 11, value) + def FieldIndex(self, value): + return self.Decode(20, 11, value) def Pointer(self, value): - return self.Decode(18, 11, value) + return self.Decode(6, 11, value) def Details(self, di, value): return ( di, self.Type(value), self.Attributes(value), - self.Storage(value), + self.FieldIndex(value), self.Pointer(value) ) @@ -1242,7 +1243,7 @@ class DescriptorArray(object): i = 2 + di * 3 p.Print("0x%x" % (array.address + array.MemberOffset(i))) p.Print("[%i] name: %s" % (di, array.Get(i + 0))) - p.Print("[%i] details: %s %s enum %i pointer %i" % \ + p.Print("[%i] details: %s %s field-index %i pointer %i" % \ self.Details(di, array.Get(i + 1))) p.Print("[%i] value: %s" % (di, array.Get(i + 2))) |