Skip to content

Commit f8bc5d6

Browse files
Matheus Marchinirvagg
Matheus Marchini
authored andcommitted
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 nodejs/llnode#211). [email protected], [email protected] Change-Id: I927fcab4014d128bd782046c1ecb9ee045723e95 Reviewed-on: https://chromium-review.googlesource.com/1153858 Reviewed-by: Yang Guo <[email protected]> Commit-Queue: Yang Guo <[email protected]> Cr-Commit-Position: refs/heads/master@{#54768} Refs: v8/v8@09bca09 PR-URL: #22068 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent c69fdc9 commit f8bc5d6

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

deps/v8/BUILD.gn

+1
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,7 @@ action("postmortem-metadata") {
828828
"src/objects/js-regexp-string-iterator.h",
829829
"src/objects/map.h",
830830
"src/objects/map-inl.h",
831+
"src/objects/scope-info.h",
831832
"src/objects/script.h",
832833
"src/objects/script-inl.h",
833834
"src/objects/shared-function-info.h",

deps/v8/gypfiles/v8.gyp

+1
Original file line numberDiff line numberDiff line change
@@ -2948,6 +2948,7 @@
29482948
'../src/objects/js-regexp-string-iterator.h',
29492949
'../src/objects/map.h',
29502950
'../src/objects/map-inl.h',
2951+
'../src/objects/scope-info.h',
29512952
'../src/objects/script.h',
29522953
'../src/objects/script-inl.h',
29532954
'../src/objects/shared-function-info.h',

deps/v8/tools/gen-postmortem-metadata.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@
5858
{ 'name': 'APIObjectType', 'value': 'JS_API_OBJECT_TYPE' },
5959
{ 'name': 'SpecialAPIObjectType', 'value': 'JS_SPECIAL_API_OBJECT_TYPE' },
6060

61+
{ 'name': 'FirstContextType', 'value': 'FIRST_CONTEXT_TYPE' },
62+
{ 'name': 'LastContextType', 'value': 'LAST_CONTEXT_TYPE' },
63+
6164
{ 'name': 'IsNotStringMask', 'value': 'kIsNotStringMask' },
6265
{ 'name': 'StringTag', 'value': 'kStringTag' },
6366

@@ -289,7 +292,7 @@
289292
expected_classes = [
290293
'ConsString', 'FixedArray', 'HeapNumber', 'JSArray', 'JSFunction',
291294
'JSObject', 'JSRegExp', 'JSValue', 'Map', 'Oddball', 'Script',
292-
'SeqOneByteString', 'SharedFunctionInfo'
295+
'SeqOneByteString', 'SharedFunctionInfo', 'ScopeInfo'
293296
];
294297

295298

0 commit comments

Comments
 (0)