Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vm: migrate to new v8 api #147

Closed
wants to merge 49 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
d91a42d
doc: update README for node-v8 repository
nodejs-ci Mar 3, 2020
a295ca6
deps: update V8 to 8.2.237
nodejs-ci Mar 3, 2020
6aae14a
build: reset embedder string to "-node.0"
nodejs-ci Mar 3, 2020
b046a94
deps: V8: un-cherry-pick bd019bd
refack Mar 27, 2019
b16cfdd
deps: V8: silence irrelevant warnings
targos Mar 27, 2019
61cc0cc
deps: patch V8 to run on older XCode versions
ryzokuken Sep 14, 2019
e550019
deps: update V8's postmortem script
cjihrig Sep 27, 2019
1ff812b
deps: update V8's postmortem script
cjihrig Oct 15, 2019
3cb0f84
deps: V8: patch register-arm64.h
refack May 22, 2019
4df4620
deps: V8: forward declaration of `Rtl*FunctionTable`
refack May 22, 2019
b01bfde
deps: make v8.h compatible with VS2015
joaocgreis Nov 1, 2019
ecb8cea
build: enable backtrace when V8 is built for PPC and S390x
targos Oct 29, 2019
c9d3538
tools: update V8 gypfiles for V8 8.0
targos Oct 18, 2019
b308552
src: stop overriding deprecated V8 methods
backes Dec 2, 2019
ec140df
Revert "assert: fix line number calculation after V8 upgrade"
targos Dec 6, 2019
b5c1c8e
tools: update inspector.gypi
ryzokuken Dec 6, 2019
4867f9a
tools: update v8.gyp
targos Dec 7, 2019
a0cc68a
try to fix include in zlib.gyp
targos Dec 7, 2019
885a556
deps: update V8's postmortem script
cjihrig Dec 8, 2019
3def38a
test: update test-postmortem-metadata.js
cjihrig Dec 8, 2019
5152104
src: update v8abbr.h for V8 update
cjihrig Dec 8, 2019
3c1f76a
tools: try to fix zlib for cross-compilation
targos Dec 9, 2019
085ad05
tools: update v8.gyp
targos Dec 11, 2019
91f574a
tools: update gypfiles
targos Dec 16, 2019
db9ff5b
tools: update features.gypi
targos Dec 17, 2019
b2cb8f2
tools: update v8.gyp
ryzokuken Dec 19, 2019
1e21691
tools: update v8.gyp
ryzokuken Dec 30, 2019
7b5322c
fixup! fix typo from commit 3078bcdb131
bnoordhuis Jan 3, 2020
fa2420b
build: simplify v8's vendored zlib build
bnoordhuis Jan 3, 2020
3d7ad5d
deps: bump minimum icu version to 65
targos Jan 6, 2020
231b38b
tools: update v8.gyp
targos Jan 13, 2020
e846985
src: remove use of deprecated Symbol::Name()
cjihrig Dec 14, 2019
b63baa9
tools: update v8.gyp
richardlau Jan 17, 2020
6e29204
tools: update v8 gypfiles
targos Jan 17, 2020
df875ac
tools: update v8.gyp
targos Jan 27, 2020
aa340c4
Update tests for larger Buffers
jakobkummerow Jan 20, 2020
d4cdbb5
Remove checks for deserializing wasm
backes Jan 22, 2020
a026b86
tools: update v8.gyp
targos Feb 2, 2020
9074bf7
tools: update V8 gypfiles
targos Feb 11, 2020
cc83a48
Avoid calling deprecated method
backes Feb 3, 2020
061db16
tools: update v8 gypfiles
targos Feb 14, 2020
c8488bc
tools: update v8 gypfiles
gengjiawen Feb 25, 2020
82b025f
tools: update v8 gypfiles
targos Feb 27, 2020
dc60708
Remove deprecated wasm type check
backes Feb 6, 2020
767a1ba
Remove test
backes Feb 6, 2020
57b9747
Move back deprecated util method, and use REPLACEME
backes Feb 7, 2020
2ab89a2
Rename FinalizationGroup to FinalizationRegistry
syg Feb 24, 2020
535dc9b
v8: include right headers in torque output
gengjiawen Feb 27, 2020
d1a1e20
vm: migrate measureMemory to new v8 api
gengjiawen Mar 4, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
604 changes: 9 additions & 595 deletions README.md

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,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.30',
'v8_embedder_string': '-node.8',

##### V8 defaults for Node.js #####

Expand Down Expand Up @@ -102,6 +102,9 @@
'obj_dir%': '<(PRODUCT_DIR)/obj.target',
'v8_base': '<(PRODUCT_DIR)/libv8_snapshot.a',
}],
['target_arch in ("ppc64", "s390x")', {
'v8_enable_backtrace': 1,
}],
],
},

Expand Down
6 changes: 6 additions & 0 deletions deps/v8/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
.#*
.*.sw?
.ccls-cache
.clangd
.cpplint-cache
.cproject
.gclient_entries
Expand Down Expand Up @@ -99,6 +100,7 @@ compile_commands.json
gccauses
gcsuspects
gtags.files
jit-*.dump
node_modules
tags
turbo*.cfg
Expand All @@ -108,3 +110,7 @@ v8.ignition_dispatches_table.json

!/third_party/jinja2
!/third_party/markupsafe
!/third_party/zlib
/third_party/zlib/contrib/bench
/third_party/zlib/contrib/tests
/third_party/zlib/google/test
27 changes: 8 additions & 19 deletions deps/v8/.ycm_extra_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,27 +103,16 @@ def GetClangCommandFromNinjaForFilename(v8_root, filename):
# Header files can't be built. Instead, try to match a header file to its
# corresponding source file.
if filename.endswith('.h'):
alternates = ['.cc', '.cpp']
for alt_extension in alternates:
alt_name = filename[:-2] + alt_extension
if os.path.exists(alt_name):
filename = alt_name
base = filename[:-6] if filename.endswith('-inl.h') else filename[:-2]
for alternate in [base + e for e in ['.cc', '.cpp']]:
if os.path.exists(alternate):
filename = alternate
break
else:
if filename.endswith('-inl.h'):
for alt_extension in alternates:
alt_name = filename[:-6] + alt_extension
if os.path.exists(alt_name):
filename = alt_name
break;
else:
# If this is a standalone -inl.h file with no source, the best we can
# do is try to use the default flags.
return v8_flags
else:
# If this is a standalone .h file with no source, the best we can do is
# try to use the default flags.
return v8_flags
# If this is a standalone .h file with no source, we ask ninja for the
# compile flags of some generic cc file ('src/utils/utils.cc'). This
# should contain most/all of the interesting flags for other targets too.
filename = os.path.join(v8_root, 'src', 'utils', 'utils.cc')

sys.path.append(os.path.join(v8_root, 'tools', 'ninja'))
from ninja_output import GetNinjaOutputDirectory
Expand Down
7 changes: 7 additions & 0 deletions deps/v8/AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ Bert Belder <bertbelder@gmail.com>
Burcu Dogan <burcujdogan@gmail.com>
Caitlin Potter <caitpotter88@gmail.com>
Craig Schlenter <craig.schlenter@gmail.com>
Chengzhong Wu <legendecas@gmail.com>
Choongwoo Han <cwhan.tunz@gmail.com>
Chris Nardi <hichris123@gmail.com>
Christopher A. Taylor <chris@gameclosure.com>
Expand Down Expand Up @@ -95,6 +96,7 @@ Hannu Trey <hannu.trey@gmail.com>
Henrique Ferreiro <henrique.ferreiro@gmail.com>
Hirofumi Mako <mkhrfm@gmail.com>
Honggyu Kim <honggyu.kp@gmail.com>
Huáng Jùnliàng <jlhwung@gmail.com>
Ingvar Stepanyan <me@rreverser.com>
Ioseb Dzmanashvili <ioseb.dzmanashvili@gmail.com>
Isiah Meadows <impinball@gmail.com>
Expand Down Expand Up @@ -149,6 +151,7 @@ Oliver Dunk <oliver@oliverdunk.com>
Paolo Giarrusso <p.giarrusso@gmail.com>
Patrick Gansterer <paroga@paroga.com>
Peng Fei <pfgenyun@gmail.com>
Peng-Yu Chen <pengyu@libstarrify.so>
Peter Rybin <peter.rybin@gmail.com>
Peter Varga <pvarga@inf.u-szeged.hu>
Peter Wong <peter.wm.wong@gmail.com>
Expand Down Expand Up @@ -193,10 +196,14 @@ Vladimir Krivosheev <develar@gmail.com>
Vladimir Shutoff <vovan@shutoff.ru>
Wenlu Wang <kingwenlu@gmail.com>
Wiktor Garbacz <wiktor.garbacz@gmail.com>
Wouter Vermeiren <wouter.vermeiren@essensium.com>
Xiaoyin Liu <xiaoyin.l@outlook.com>
Yannic Bonenberger <contact@yannic-bonenberger.com>
Yong Wang <ccyongwang@tencent.com>
Youfeng Hao <ajihyf@gmail.com>
Yu Yin <xwafish@gmail.com>
Zac Hansen <xaxxon@gmail.com>
Zhao Jiazhong <kyslie3100@gmail.com>
Zhongping Wang <kewpie.w.zp@gmail.com>
柳荣一 <admin@web-tinker.com>
Yanbo Li <lybvinci@gmail.com>
Loading