Skip to content

Commit b38dfaf

Browse files
mmarchiniCommit Bot
authored andcommitted
[postmortem] update Symbol and *String metadata
Symbol and *String classes are now declared on Torque with generateCppClass, which means they don't use macro accessors anymore. As such, the gen-postmortem-metadata script is not able to automatically detect fields for those classes. Define metadata for those fields manually for now. In the future we might want to generate it from Torque for consistency. Also renamed a few *String fields metadata to match the expected format (className__fieldName__fieldType). For more context: nodejs/llnode#287 (comment). R=bmeurer@chromium.org, hpayer@chromium.org, verwaest@chromium.org, yangguo@chromium.org Change-Id: I82fe8315cdbfd1b8c64c6a8d5dc011b1edaec39e Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1847783 Reviewed-by: Toon Verwaest <verwaest@chromium.org> Commit-Queue: Toon Verwaest <verwaest@chromium.org> Cr-Commit-Position: refs/heads/master@{#64313}
1 parent 0e40cf7 commit b38dfaf

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

tools/gen-postmortem-metadata.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -229,15 +229,6 @@
229229

230230
{ 'name': 'class_SharedFunctionInfo__function_data__Object',
231231
'value': 'SharedFunctionInfo::kFunctionDataOffset' },
232-
233-
{ 'name': 'class_ConsString__first_offset__int',
234-
'value': 'ConsString::kFirstOffset' },
235-
{ 'name': 'class_ConsString__second_offset__int',
236-
'value': 'ConsString::kSecondOffset' },
237-
{ 'name': 'class_SlicedString__offset_offset__int',
238-
'value': 'SlicedString::kOffsetOffset' },
239-
{ 'name': 'class_ThinString__actual_offset__int',
240-
'value': 'ThinString::kActualOffset' },
241232
];
242233

243234
#
@@ -286,6 +277,11 @@
286277
'Code, instruction_size, int, kInstructionSizeOffset',
287278
'String, length, int32_t, kLengthOffset',
288279
'DescriptorArray, header_size, uintptr_t, kHeaderSize',
280+
'ConsString, first, String, kFirstOffset',
281+
'ConsString, second, String, kSecondOffset',
282+
'SlicedString, offset, SMI, kOffsetOffset',
283+
'ThinString, actual, String, kActualOffset',
284+
'Symbol, name, Object, kNameOffset',
289285
];
290286

291287
#

0 commit comments

Comments
 (0)