mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
deps: backport 958b761 from upstream V8
Original commit message:
[postmortem] add postmortem metadata for symbols
As discussed in https://github.com/nodejs/llnode/issues/156, we need
postmortem metadata for Symbols to properly print Symbol property
names in postmortem debugging tools. Patch suggested by Ben
Noordhuis
(https://github.com/nodejs/llnode/issues/156#issuecomment-350467852).
R=bmeurer@google.com, yangguo@google.com
Change-Id: Ied6d3c079e8b23a9c796bc632c37785ed7dbc118
Reviewed-on: https://chromium-review.googlesource.com/1205052
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Commit-Queue: Yang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#55632}
Refs: https://github.com/v8/v8/commit/958b761d3392495c3bf635e97fb9bd0e45
PR-URL: https://github.com/nodejs/node/pull/22914
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
|
||||
# Reset this number to 0 on major V8 upgrades.
|
||||
# Increment by one for each non-official patch applied to deps/v8.
|
||||
'v8_embedder_string': '-node.3',
|
||||
'v8_embedder_string': '-node.4',
|
||||
|
||||
# Enable disassembler for `--print-code` v8 options
|
||||
'v8_enable_disassembler': 1,
|
||||
|
||||
2
deps/v8/BUILD.gn
vendored
2
deps/v8/BUILD.gn
vendored
@@ -865,6 +865,8 @@ action("postmortem-metadata") {
|
||||
"src/objects/js-regexp-string-iterator.h",
|
||||
"src/objects/map.h",
|
||||
"src/objects/map-inl.h",
|
||||
"src/objects/name.h",
|
||||
"src/objects/name-inl.h",
|
||||
"src/objects/scope-info.h",
|
||||
"src/objects/script.h",
|
||||
"src/objects/script-inl.h",
|
||||
|
||||
2
deps/v8/gypfiles/v8.gyp
vendored
2
deps/v8/gypfiles/v8.gyp
vendored
@@ -2649,6 +2649,8 @@
|
||||
'../src/objects/js-regexp-string-iterator.h',
|
||||
'../src/objects/map.h',
|
||||
'../src/objects/map-inl.h',
|
||||
'../src/objects/name.h',
|
||||
'../src/objects/name-inl.h',
|
||||
'../src/objects/scope-info.h',
|
||||
'../src/objects/script.h',
|
||||
'../src/objects/script-inl.h',
|
||||
|
||||
7
deps/v8/tools/gen-postmortem-metadata.py
vendored
7
deps/v8/tools/gen-postmortem-metadata.py
vendored
@@ -417,15 +417,10 @@ def load_objects_from_file(objfilename, checktypes):
|
||||
# way around.
|
||||
#
|
||||
for type in types:
|
||||
#
|
||||
# Symbols and Strings are implemented using the same classes.
|
||||
#
|
||||
usetype = re.sub('SYMBOL_', 'STRING_', type);
|
||||
|
||||
#
|
||||
# REGEXP behaves like REG_EXP, as in JS_REGEXP_TYPE => JSRegExp.
|
||||
#
|
||||
usetype = re.sub('_REGEXP_', '_REG_EXP_', usetype);
|
||||
usetype = re.sub('_REGEXP_', '_REG_EXP_', type);
|
||||
|
||||
#
|
||||
# Remove the "_TYPE" suffix and then convert to camel case,
|
||||
|
||||
Reference in New Issue
Block a user