Skip to content

Commit 09bca09

Browse files
Matheus MarchiniCommit Bot
Matheus Marchini
authored and
Commit Bot
committed
[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}
1 parent ae76bb4 commit 09bca09

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

BUILD.gn

+1
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,7 @@ action("postmortem-metadata") {
850850
"src/objects/js-regexp-string-iterator.h",
851851
"src/objects/map.h",
852852
"src/objects/map-inl.h",
853+
"src/objects/scope-info.h",
853854
"src/objects/script.h",
854855
"src/objects/script-inl.h",
855856
"src/objects/shared-function-info.h",

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

@@ -282,7 +285,7 @@
282285
expected_classes = [
283286
'ConsString', 'FixedArray', 'HeapNumber', 'JSArray', 'JSFunction',
284287
'JSObject', 'JSRegExp', 'JSValue', 'Map', 'Oddball', 'Script',
285-
'SeqOneByteString', 'SharedFunctionInfo'
288+
'SeqOneByteString', 'SharedFunctionInfo', 'ScopeInfo'
286289
];
287290

288291

0 commit comments

Comments
 (0)