From 7ffbfd86ec8d2f0db7af0cb50f3c5b8ad8b1d0e4 Mon Sep 17 00:00:00 2001 From: Julien Gilli Date: Fri, 25 Sep 2015 10:58:49 -0700 Subject: [PATCH] deps: backport 56a0a79 from V8 upstream MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Backport 56a0a797f210e04746f2888116365d29a4bb6afc from V8 upstream to include post-mortem metadata used by mdb_v8 to support V8 4.6. Original commit message: Update post-mortem metadata generation mdb_v8, a post-mortem debugger for Node.js, now uses JSArrayBuffer's backing_store property and JSArrayBufferView's byte_offset property to get access to the content of Buffer instances in node (which are Uint8Array instances). This change adds post-mortem metadata for these two properties. This change also fixes a typo in inobject_properties_of_constructor_function_index_offset that was added to gen-postmortem-metadata in a previous change. It should be named inobject_properties_or_constructor_function_index instead. R=bmeurer@chromium.org Review URL: https://codereview.chromium.org/1363403003 Cr-Commit-Position: refs/heads/master@{#30926} PR: #3057 PR-URL: https://github.com/nodejs/node/pull/3057 Reviewed-By: Michaƫl Zasso Reviewed-By: Ali Ijaz Sheikh --- deps/v8/tools/gen-postmortem-metadata.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deps/v8/tools/gen-postmortem-metadata.py b/deps/v8/tools/gen-postmortem-metadata.py index 29416cebd2be5e..b1cb0809cdcdb0 100644 --- a/deps/v8/tools/gen-postmortem-metadata.py +++ b/deps/v8/tools/gen-postmortem-metadata.py @@ -141,8 +141,10 @@ 'HeapObject, map, Map, kMapOffset', 'JSObject, elements, Object, kElementsOffset', 'FixedArray, data, uintptr_t, kHeaderSize', + 'JSArrayBuffer, backing_store, Object, kBackingStoreOffset', + 'JSArrayBufferView, byte_offset, Object, kByteOffsetOffset', 'Map, instance_attributes, int, kInstanceAttributesOffset', - 'Map, inobject_properties_of_constructor_function_index_offset, int, kInObjectPropertiesOrConstructorFunctionIndexOffset', + 'Map, inobject_properties_or_constructor_function_index, int, kInObjectPropertiesOrConstructorFunctionIndexOffset', 'Map, instance_size, int, kInstanceSizeOffset', 'Map, bit_field, char, kBitFieldOffset', 'Map, bit_field2, char, kBitField2Offset',