deps: V8: cherry-pick e3d7f8a
Original commit message:
[build] update gen-postmortem-metadata for Python 3
This change makes the code compatible with both Python 2 and Python 3.
Change-Id: I99d68af9c3163607c3a2fdbafac339a98b7471e4
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1751331
Commit-Queue: Yang Guo <yangguo@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#63207}
Refs: e3d7f8a588
PR-URL: https://github.com/nodejs/node/pull/29105
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
parent
bc73b1f979
commit
02132d0926
@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
# Reset this number to 0 on major V8 upgrades.
|
# Reset this number to 0 on major V8 upgrades.
|
||||||
# Increment by one for each non-official patch applied to deps/v8.
|
# Increment by one for each non-official patch applied to deps/v8.
|
||||||
'v8_embedder_string': '-node.10',
|
'v8_embedder_string': '-node.11',
|
||||||
|
|
||||||
##### V8 defaults for Node.js #####
|
##### V8 defaults for Node.js #####
|
||||||
|
|
||||||
|
8
deps/v8/tools/gen-postmortem-metadata.py
vendored
8
deps/v8/tools/gen-postmortem-metadata.py
vendored
@ -653,9 +653,7 @@ def emit_config():
|
|||||||
|
|
||||||
out.write('/* class type information */\n');
|
out.write('/* class type information */\n');
|
||||||
consts = [];
|
consts = [];
|
||||||
keys = typeclasses.keys();
|
for typename in sorted(typeclasses):
|
||||||
keys.sort();
|
|
||||||
for typename in keys:
|
|
||||||
klass = typeclasses[typename];
|
klass = typeclasses[typename];
|
||||||
consts.append({
|
consts.append({
|
||||||
'name': 'type_%s__%s' % (klass, typename),
|
'name': 'type_%s__%s' % (klass, typename),
|
||||||
@ -666,9 +664,7 @@ def emit_config():
|
|||||||
|
|
||||||
out.write('/* class hierarchy information */\n');
|
out.write('/* class hierarchy information */\n');
|
||||||
consts = [];
|
consts = [];
|
||||||
keys = klasses.keys();
|
for klassname in sorted(klasses):
|
||||||
keys.sort();
|
|
||||||
for klassname in keys:
|
|
||||||
pklass = klasses[klassname]['parent'];
|
pklass = klasses[klassname]['parent'];
|
||||||
bklass = get_base_class(klassname);
|
bklass = get_base_class(klassname);
|
||||||
if (bklass != 'Object'):
|
if (bklass != 'Object'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user