summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorMatheus Marchini <matheus@sthima.com>2018-08-01 15:09:51 -0300
committerMichaƫl Zasso <targos@protonmail.com>2018-09-07 21:06:58 +0200
commit127e7035ce70e70bdb62969f965d6941156c042c (patch)
treed8c90bd5dc8e08a9c23f3d6b26f94789f6b81c13 /deps
parent5bb985d3312191d67490f9d826fd13cdbda610e9 (diff)
downloadandroid-node-v8-127e7035ce70e70bdb62969f965d6941156c042c.tar.gz
android-node-v8-127e7035ce70e70bdb62969f965d6941156c042c.tar.bz2
android-node-v8-127e7035ce70e70bdb62969f965d6941156c042c.zip
deps: cherry-pick 09bca09 from upstream V8
Original commit message: [postmortem] add ScopeInfo and Context types The metadata introduced in this patch will be useful for postmortem tools to inspect Contexts and ScopeInfos (see https://github.com/nodejs/llnode/issues/211). R=bmeurer@google.com, yangguo@google.com Change-Id: I927fcab4014d128bd782046c1ecb9ee045723e95 Reviewed-on: https://chromium-review.googlesource.com/1153858 Reviewed-by: Yang Guo <yangguo@chromium.org> Commit-Queue: Yang Guo <yangguo@chromium.org> Cr-Commit-Position: refs/heads/master@{#54768} Refs: https://github.com/v8/v8/commit/09bca095e38d6e4770ae48e174f59d33c PR-URL: https://github.com/nodejs/node/pull/22068 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'deps')
-rw-r--r--deps/v8/BUILD.gn1
-rw-r--r--deps/v8/tools/gen-postmortem-metadata.py5
2 files changed, 5 insertions, 1 deletions
diff --git a/deps/v8/BUILD.gn b/deps/v8/BUILD.gn
index 4c8c8acd59..443694d880 100644
--- a/deps/v8/BUILD.gn
+++ b/deps/v8/BUILD.gn
@@ -852,6 +852,7 @@ action("postmortem-metadata") {
"src/objects/js-regexp-string-iterator.h",
"src/objects/map.h",
"src/objects/map-inl.h",
+ "src/objects/scope-info.h",
"src/objects/script.h",
"src/objects/script-inl.h",
"src/objects/shared-function-info.h",
diff --git a/deps/v8/tools/gen-postmortem-metadata.py b/deps/v8/tools/gen-postmortem-metadata.py
index d8ef7b4a15..8191c8152f 100644
--- a/deps/v8/tools/gen-postmortem-metadata.py
+++ b/deps/v8/tools/gen-postmortem-metadata.py
@@ -58,6 +58,9 @@ consts_misc = [
{ 'name': 'APIObjectType', 'value': 'JS_API_OBJECT_TYPE' },
{ 'name': 'SpecialAPIObjectType', 'value': 'JS_SPECIAL_API_OBJECT_TYPE' },
+ { 'name': 'FirstContextType', 'value': 'FIRST_CONTEXT_TYPE' },
+ { 'name': 'LastContextType', 'value': 'LAST_CONTEXT_TYPE' },
+
{ 'name': 'IsNotStringMask', 'value': 'kIsNotStringMask' },
{ 'name': 'StringTag', 'value': 'kStringTag' },
@@ -282,7 +285,7 @@ extras_accessors = [
expected_classes = [
'ConsString', 'FixedArray', 'HeapNumber', 'JSArray', 'JSFunction',
'JSObject', 'JSRegExp', 'JSValue', 'Map', 'Oddball', 'Script',
- 'SeqOneByteString', 'SharedFunctionInfo'
+ 'SeqOneByteString', 'SharedFunctionInfo', 'ScopeInfo'
];