Ali Ijaz Sheikh
a235ccd168
src,test: debug is now an alias for inspect
...
`node debug` is now an alias of `node inspect`. This is intended to be
a minimal change – it does not get rid of the the debugger code. That
can be done in a follow-on.
PR-URL: https://github.com/nodejs/node/pull/11441
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: joshgav - Josh Gavant <josh.gavant@outlook.com >
Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com >
2017-04-11 17:58:26 -07:00
Ali Ijaz Sheikh
b7608ac707
deps: cherry-pick node-inspect#43
...
Node 8.x no longer has --debug-brk.
Ref: https://github.com/nodejs/node-inspect/pull/43
PR-URL: https://github.com/nodejs/node/pull/11441
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: joshgav - Josh Gavant <josh.gavant@outlook.com >
Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com >
2017-04-11 17:58:26 -07:00
Ali Ijaz Sheikh
b30ec59855
deps: switch to v8_inspector in V8
...
* Delete deps/v8_inspector
* Start building v8_inspector from V8
* Remove licenses related to the deleted code from LICENSE file
PR-URL: https://github.com/nodejs/node/pull/10992
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2017-02-22 15:56:58 +01:00
Ali Ijaz Sheikh
389b9e484d
cluster: properly handle --inspect-{brk,port}
...
PR-URL: https://github.com/nodejs/node/pull/11386
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Josh Gavant <josh.gavant@outlook.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-02-19 12:55:36 -08:00
Ali Ijaz Sheikh
751404dc28
test: fix over-dependence on native promise impl
...
In later versions of V8, the stack trace will be different than our
current expectations for Promise methods.
PR-URL: https://github.com/nodejs/node/pull/11437
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2017-02-19 10:18:33 +01:00
Ali Ijaz Sheikh
21b05cd6cd
test: fix timing sensitivity in debugger test
...
test-debugger-util-regression.js was sensitive to timing, which seems
to have changed enough with V8 5.7 to cause this test to fail. Fix the
test to ensure we take debugger steps only at stable states instead of
erroneously taking a step on a partially complete buffer.
PR-URL: https://github.com/nodejs/node/pull/11008
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-02-02 12:09:50 -08:00
Ali Ijaz Sheikh
11b087222b
doc: add guide for maintaining V8
...
Ref: https://github.com/nodejs/LTS/pull/137
PR-URL: https://github.com/nodejs/node/pull/9777
Reviewed-By: mhdawson - Michael Dawson <michael_dawson@ca.ibm.com >
Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com >
2016-11-28 16:17:43 -08:00
Ali Ijaz Sheikh
19c9567686
build: fix mkpeephole configuration
...
mkpeephole is a binary that gets generated and run at V8 build time.
On cross-compilation builds separate build toolchains are required.
Similar to want_separate_host_toolset we default to disabled.
PR-URL: https://github.com/nodejs/node/pull/8317
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2016-09-22 09:55:40 +02:00
Ali Ijaz Sheikh
7292a1e954
build: use libc++ on OSX
...
V8 now depends on C++11 runtime features. On OSX this requires us to
link against the libc++ library rather than the deprecated default
that is provided with -mmacosx-version-min=10.7.
PR-URL: https://github.com/nodejs/node/pull/8317
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2016-09-22 09:55:30 +02:00
Ali Ijaz Sheikh
785506a1fc
build: define icu_use_data_file_flag
...
v8.gyp expects this to be defined by the embedder
PR-URL: https://github.com/nodejs/node/pull/8317
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2016-09-22 09:54:56 +02:00
Ali Ijaz Sheikh
870faeef95
deps: workaround clang-3.4 ICE
...
PR-URL: https://github.com/nodejs/node/pull/8343
Fixes: https://github.com/nodejs/node/issues/8323
Reviewed-By: rvagg - Rod Vagg <rod@vagg.org >
2016-08-31 15:14:45 -07:00
Ali Ijaz Sheikh
becbcc7981
src: avoid duplicate AtExit functions
...
node.cc had two functions with the name AtExit with entirely different
purposes:
* node::AtExit(): file static; used to register the atexit(3) handler
for the Node process.
* node::AtExit(void (*)(void*), void*): publicly exported symbol that
addons can use to request callbacks upon exit.
For code readability it is better to avoid the unintentional overload.
PR-URL: https://github.com/nodejs/node/pull/8273
Reviewed-By: addaleax - Anna Henningsen <anna@addaleax.net >
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com >
Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
2016-08-31 09:27:51 -07:00
Ali Ijaz Sheikh
e40234d6e2
deps: v8_inspector update
...
Pick up latest from [1] corresponding to the Blink commit 62cd277.
[1]: https://github.com/pavelfeldman/v8_inspector/commit/e6b8355
PR-URL: https://github.com/nodejs/node/pull/8014
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com >
2016-08-11 11:37:48 -07:00
Ali Ijaz Sheikh
2554549ab5
deps: v8_inspector: remove jinja2 tests
...
PR-URL: https://github.com/nodejs/node/pull/7796
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com >
2016-07-27 07:29:54 -07:00
Ali Ijaz Sheikh
7db495ab6d
doc: update licenses
...
Created using `tools/license-builder.sh`.
PR-URL: https://github.com/nodejs/node/pull/7796
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com >
2016-07-27 07:29:49 -07:00
Ali Ijaz Sheikh
3534600185
tools: update license-builder.sh for v8_inspector
...
Start including the license from v8_inspector and its build time
dependencies: jinja2 and markupsafe.
PR-URL: https://github.com/nodejs/node/pull/7796
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com >
2016-07-27 07:29:42 -07:00
Ali Ijaz Sheikh
4be6271c43
deps: remove jinja.el from deps/v8_inspector
...
jinja.el is not shipped as part of the distribution, and neither is
it used in the build. While not strictly necessary, removing it
simplifies life from a licensing point of view.
PR-URL: https://github.com/nodejs/node/pull/7796
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com >
2016-07-27 07:29:35 -07:00
Ali Ijaz Sheikh
b9445bfecd
deps: update v8_inspector
...
To add a LICENSE file along with the v8_inspector code, we need to
pick up v8_inspector from an intermediate repository:
https://github.com/pavelfeldman/v8_inspector . This repo still tracks
upstream code in Blink.
This roll also picks up the latest v8_inspector from upstream fixing
a few issues.
* Pickup commit id bc60957 from pavelfeldman/v8_inspector
* Update node.gyp to adapt to the new file paths
* Update the DevTools hash for the devtools frontend.
Fixes: https://github.com/nodejs/node/issues/7123
Fixes: https://github.com/nodejs/node/issues/7736
Fixes: https://github.com/nodejs/node/issues/7734
PR-URL: https://github.com/nodejs/node/pull/7796
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com >
2016-07-27 07:28:44 -07:00
Ali Ijaz Sheikh
257a866918
deps: v8_inspector no longer depends on wtf
...
Remove wtf files as v8_inspector no longer needs them.
Ref: https://github.com/nodejs/node/issues/7123
PR-URL: https://github.com/nodejs/node/pull/7751
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Michaël Zasso <mic.besace@gmail.com >
Reviewed-By: Minwoo Jung <jmwsoft@gmail.com >
2016-07-19 09:37:05 +02:00
Ali Ijaz Sheikh
c938735cee
dtrace: fix ustack helper for V8 5.1
...
V8 5.1 changes the layout of stack frames.
PR-URL: https://github.com/nodejs/node/pull/6482
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
2016-06-29 10:44:27 +02:00
Ali Ijaz Sheikh
9940766f8a
test: fix tests after V8 upgrade
...
* Changes to messages.
* V8 enabled proxy support by default. The --harmony_proxies flag is
now gone.
PR-URL: https://github.com/nodejs/node/pull/6482
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
2016-06-29 10:44:25 +02:00
Ali Ijaz Sheikh
a33909e107
repl: fix repl after V8 upgrade
...
V8 improved the error message for illegal token in
https://github.com/v8/v8/commit/879b617b . This breaks the recoverable
error handling in repl.
Ref: https://github.com/nodejs/node/pull/6482
PR-URL: https://github.com/nodejs/node/pull/7016
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
2016-06-29 10:43:07 +02:00
Ali Ijaz Sheikh
44b9154495
deps: switch to upstream v8_inspector
...
This change picks up v8_inspector directly from the upstream chromium
repository [1]; dropping the intermediate repository. The upstream
code has been refactored substantially to make it easy to share code
without adaptation with Node.js.
The deps/v8_inspector directory is now simply a gathering of
dependencies:
* platform/v8_inspector: vendored from [2].
* platform/inspector_protocol: vendored from [3].
* deps/jinja2: vendored from [4].
* deps/markupsafe: vendored from [5].
[1]: https://chromium.googlesource.com/chromium/src/third_party/WebKit/Source/platform
[2]: https://chromium.googlesource.com/chromium/src/third_party/WebKit/Source/platform/v8_inspector
[3]: https://chromium.googlesource.com/chromium/src/third_party/WebKit/Source/platform/inspector_protocol
[4]: https://github.com/mitsuhiko/jinja2
[5]: https://github.com/mitsuhiko/markupsafe
PR-URL: https://github.com/nodejs/node/pull/7302
Reviewed-By: indutny - Fedor Indutny <fedor.indutny@gmail.com >
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
2016-06-17 10:37:11 -07:00
Ali Ijaz Sheikh
a766ebf594
inspector: change default port
...
We should use a different default port number for the new debug
protocol. This makes it easier for debuggers to guess which protocol
they are expected to use to talk to a node process with a debug
server.
PR-URL: https://github.com/nodejs/node/pull/7212
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com >
2016-06-09 14:16:33 -07:00
Ali Ijaz Sheikh
8847777ab8
deps: update v8_inspector
...
Pick the latest v8_inspector [1] with:
* V8 5.1 compatibility
* Modify parse builder templates to make coverity happy
* The whitespace differences in the jinja2 sub-dependency do exist
upstream. I am not sure how I missed them in the original import
(ed2eac).
[1] https://github.com/pavelfeldman/v8_inspector/commit/3b56732
PR-URL: https://github.com/nodejs/node/pull/7118
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Myles Borins <myles.borins@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Michaël Zasso <mic.besace@gmail.com >
2016-06-03 13:45:31 +02:00
Ali Ijaz Sheikh
ed2eacbc42
deps: import v8_inspector
...
Pick up v8 inspector from [1]. This is the standalone version of the
devtools debug protocol.
[1] https://github.com/pavelfeldman/v8_inspector/commit/e1bb206
PR-URL: https://github.com/nodejs/node/pull/6792
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com >
Reviewed-By: addaleax - Anna Henningsen <anna@addaleax.net >
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
2016-05-30 09:04:13 -07:00
Ali Ijaz Sheikh
e16e611089
deps: upgrade to V8 5.0.71.47
...
Pick up the latest set of patch level updates from the V8 5.0 branch.
https://github.com/v8/v8/compare/5.0.71.35...5.0.71.47
PR-URL: https://github.com/nodejs/node/pull/6572
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: JungMinu - Minwoo Jung <jmwsoft@gmail.com >
2016-05-11 18:46:47 -07:00
Ali Ijaz Sheikh
4d4cfb27ca
src,lib: minor --debug-brk cleanup
...
Minor cleanup of how --debug-brk works:
* We no longer need to use command line flags to expose the debug
object.
* Do not depend on the existence of global.v8debug as a mechanism to
determine if --debug-brk was specified.
* We no longer need to set a dummy listener with --debug-brk.
PR-URL: https://github.com/nodejs/node/pull/6599
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com >
2016-05-07 05:23:47 +02:00
Ali Ijaz Sheikh
e5f1e2c1df
deps: upgrade to V8 5.0.71.35
...
Pick up the latest bug fix from the V8 5.0 branch.
Original commit message:
V8-Commit: https://github.com/v8/v8/commit/c1d51c7c
Version 5.0.71.35 (cherry-pick)
Merged 2837cb387
disallow left-trim fast path when sampling heap profiler is active
R=hablich@chromium.org , hpayer@chromium.org
BUG=v8:4937
Review URL: https://codereview.chromium.org/1918453002 .
PR-URL: https://github.com/nodejs/node/pull/6372
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com >
Reviewed-By: Michaël Zasso <mic.besace@gmail.com >
2016-04-25 09:29:26 -07:00
Ali Ijaz Sheikh
49e42c530b
deps: upgrade to V8 5.0.71.34
...
Pick up the latest bug fix from the V8 5.0 branch.
Original commit message:
V8-Commit: https://github.com/v8/v8/commit/c36773f
Version 5.0.71.34 (cherry-pick)
Merged 9acbca1
[es6] Fix bug in pattern re-writing
BUG=v8:4891
LOG=N
R=littledan@chromium.org
Review URL: https://codereview.chromium.org/1906633002 .
PR-URL: https://github.com/nodejs/node/pull/6320
Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com >
Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com >
2016-04-21 10:04:02 -07:00
Ali Ijaz Sheikh
a770a163ab
test: v8-flags is sensitive to script caching
...
V8 may cache compiled scripts, and it is not safe to assume that the
V8 flags can be changed after an isolate has been created. In this
particular case, since we are using the same script multiple times,
the test would fail if V8 cached the result of the compilation.
Ref: https://github.com/nodejs/node/issues/6280
Fixes: https://github.com/nodejs/node/issues/6258
PR-URL: https://github.com/nodejs/node/pull/6316
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com >
Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com >
2016-04-21 09:31:54 -07:00
Ali Ijaz Sheikh
4fbd375724
deps: upgrade to V8 5.0.71.33
...
This picks up the fix for harmony-regexp-properties being enabled
without a flag.
V8-Commit: https://github.com/v8/v8/commit/27ac008
Fixes: https://github.com/nodejs/node/issues/6251
PR-URL: https://github.com/nodejs/node/pull/6290
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com >
Reviewed-By: ChALkeR - Сковорода Никита Андреевич <chalkerx@gmail.com >
Reviewed-By: indutny - Fedor Indutny <fedor.indutny@gmail.com >
Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com >
Reviewed-By: jbergstroem - Johan Bergström <bugs@bergstroem.nu >
Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com >
2016-04-20 08:07:24 -07:00
Ali Ijaz Sheikh
52af5c4eeb
deps: upgrade V8 to 5.0.71.32
...
* Pick up the branch head for V8 5.0 stable [1]
* Edit v8 gitignore to allow trace_event copy
* Update V8 DEP trace_event as per deps/v8/DEPS [2]
[1] https://chromium.googlesource.com/v8/v8.git/+/3c67831
[2] https://chromium.googlesource.com/chromium/src/base/trace_event/common/+/4b09207e447ae5bd34643b4c6321bee7b76d35f9
Ref: https://github.com/nodejs/node/pull/5945
PR-URL: https://github.com/nodejs/node/pull/6111
Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com >
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: indutny - Fedor Indutny <fedor.indutny@gmail.com >
2016-04-14 10:03:39 -07:00
Ali Ijaz Sheikh
b73e1b3c5a
test: fix another flaky stringbytes test
...
Avoid depending on precise timing of when an object will be collected
by GC. This test was missed by #6039 as it happened to be in a
different directory than the rest.
Ref: https://github.com/nodejs/node/pull/6039
PR-URL: https://github.com/nodejs/node/pull/6073
Reviewed-By: Trott - Rich Trott <rtrott@gmail.com >
2016-04-06 06:22:40 -07:00
Ali Ijaz Sheikh
f4ebd5989a
test: fix flakiness of stringbytes-external
...
The tests used to rely on precise timing of when a JavaScript object
would be garbage collected to ensure that there is enough memory
available on the system. Switch the test to use a malloc/free pair
instead.
Ref: https://github.com/nodejs/node/pull/5945
PR-URL: https://github.com/nodejs/node/pull/6039
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com >
Reviewed-By: evanlucas - Evan Lucas <evanlucas@me.com >
Reviewed-By: Trott - Rich Trott <rtrott@gmail.com >
2016-04-05 16:08:45 -07:00
Ali Ijaz Sheikh
a53b2ac4b1
contextify: tie lifetimes of context & sandbox
...
When the previous set of changes (bfff07b4 ) it was possible to have the
context get garbage collected while sandbox was still live. We need to
tie the lifetime of the context to the lifetime of the sandbox.
Fixes: https://github.com/nodejs/node/issues/5768
PR-URL: https://github.com/nodejs/node/pull/5786
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com >
Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: trevnorris - Trevor Norris <trev.norris@gmail.com >
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
2016-03-19 07:45:38 -07:00
Ali Ijaz Sheikh
73fc440870
buffer: fix buffer alignment restriction
...
Recent phantom weakness API changes to buffer, ebbbc5a , ending up
introducing an alignment restriction on the native buffer pointers.
It turns out that there are uses in the modules ecosystem that rely
on the ability to create buffers with unaligned pointers (e.g.
node-ffi).
It turns out there is a simpler solution possible here. As a side
effect this also removes the need to have to reserve the first
internal field on buffers.
PR-URL: https://github.com/nodejs/node/pull/5752
Reviewed-By: trevnorris - Trevor Norris <trev.norris@gmail.com >
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
2016-03-19 07:07:01 -07:00
Ali Ijaz Sheikh
f8e8075a62
deps: upgrade to V8 4.9.385.27
...
Pick up the latest known good release from the V8 4.9 branch: 4.9.385.27.
V8 Commits: https://github.com/v8/v8/compare/4.9.385.18...4.9.385.27
PR-URL: https://github.com/nodejs/node/pull/5494
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com >
2016-03-03 20:35:20 -08:00
Ali Ijaz Sheikh
206a81fb14
buffer: avoid undefined behaviour
...
Avoid 'delete this' as it can be hazardous and/or dependent on
implementations.
PR-URL: https://github.com/nodejs/node/pull/5494
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com >
2016-03-03 20:35:20 -08:00
Ali Ijaz Sheikh
8cf94006c9
build: do not ignore errors during build-addons
...
Errors during build-addons were being silently ignored.
PR-URL: https://github.com/nodejs/node/pull/5494
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com >
2016-03-03 20:35:20 -08:00
Ali Ijaz Sheikh
536cfecd71
src: replace deprecated SetWeak in object_wrap
...
Migrate node_object_wrap.h to the new SetWeak API.
PR-URL: https://github.com/nodejs/node/pull/5494
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com >
2016-03-03 20:35:20 -08:00
Ali Ijaz Sheikh
492fbfbff8
src: update uses of deprecated NewExternal
...
V8 String::NewExternal is deprecated in 4.9. Migrate string_bytes.cc to
the alternatives.
PR-URL: https://github.com/nodejs/node/pull/5462
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
2016-03-03 20:35:20 -08:00
Ali Ijaz Sheikh
66566df577
contextify: cache sandbox and context in locals
...
PR-URL: https://github.com/nodejs/node/pull/5392
Reviewed-By: Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
2016-03-03 20:35:20 -08:00
Ali Ijaz Sheikh
95ebc74adf
contextify: replace deprecated SetWeak usage
...
PR-URL: https://github.com/nodejs/node/pull/5392
Reviewed-By: Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
2016-03-03 20:35:20 -08:00
Ali Ijaz Sheikh
f7224cac62
contextify: cleanup weak ref for sandbox
...
Simplify how node_contextify was keeping a weak reference to the
sandbox object in order to prepare for new style phantom weakness V8
API. It is simpler (and more robust) for the context to hold a
reference to the sandbox in an embedder data field. Doing otherwise
meant that the sandbox could become weak while the context was still
alive. This wasn't a problem because we would make the reference
strong at that point.
Since the sandbox must live at least as long as the context, it
would be better for the context to hold onto the sandbox.
PR-URL: https://github.com/nodejs/node/pull/5392
Reviewed-By: Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
2016-03-03 20:35:20 -08:00
Ali Ijaz Sheikh
5737c215b5
contextify: cleanup weak ref for global proxy
...
Cleanup how node_contextify keeps weak references in order to prepare
for new style phantom weakness API. We didn't need to keep a weak
reference to the context's global proxy, as the context holds it.
PR-URL: https://github.com/nodejs/node/pull/5392
Reviewed-By: Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
2016-03-03 20:35:20 -08:00
Ali Ijaz Sheikh
ebbbc5a790
buffer: replace deprecated SetWeak usage
...
Old style SetWeak is now deprecated, and weakness now works like
phantom references. This means we no longer have a reference to the
object in the weak callback. We use a kInternalFields style weak
callback which provides us with the contents of 2 internal fields
where we can squirrel away the native buffer pointer.
We can no longer neuter the buffer in the weak callback, but that
should be unnecessary as the object is going to be GC'd during the
current gc cycle.
PR-URL: https://github.com/nodejs/node/pull/5204
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: indutny - Fedor Indutny <fedor.indutny@gmail.com >
2016-03-03 20:35:20 -08:00
Ali Ijaz Sheikh
34aac23d0b
buffer: cleanup CallbackInfo
...
Dynamic checks that CallbackInfo holds an ArrayBuffer handle can be
converted into compiler enforced checks. Removed unused code, and
other minor cleanup.
PR-URL: https://github.com/nodejs/node/pull/5204
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: indutny - Fedor Indutny <fedor.indutny@gmail.com >
2016-03-03 20:35:20 -08:00
Ali Ijaz Sheikh
a45e1f9f98
src: fix deprecated SetWeak usage in base-object
...
PR-URL: https://github.com/nodejs/node/pull/5204
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: indutny - Fedor Indutny <fedor.indutny@gmail.com >
2016-03-03 20:35:20 -08:00
Ali Ijaz Sheikh
c1649a7e4e
src: replace usage of deprecated SetAccessor
...
PR-URL: https://github.com/nodejs/node/pull/5204
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: indutny - Fedor Indutny <fedor.indutny@gmail.com >
2016-03-03 20:35:20 -08:00
Ali Ijaz Sheikh
953173b0d7
lib: wrap tick_processor scripts in IIFE
...
PR-URL: https://github.com/nodejs/node/pull/4722
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Michaël Zasso <mic.besace@gmail.com >
2016-03-03 20:35:20 -08:00
Ali Ijaz Sheikh
01f82f0685
test: fix proxy tab-completion test
...
Proxies support is now complete in V8. The tests needed slight modification to
match the spec implementation.
PR-URL: https://github.com/nodejs/node/pull/4722
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Michaël Zasso <mic.besace@gmail.com >
2016-03-03 20:35:20 -08:00
Ali Ijaz Sheikh
079973b96a
deps: add V8 DEP trace_event
...
PR-URL: https://github.com/nodejs/node/pull/4722
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Michaël Zasso <mic.besace@gmail.com >
2016-03-03 20:35:20 -08:00
Ali Ijaz Sheikh
89f234300a
deps: edit v8 gitignore to allow trace_event copy
...
PR-URL: https://github.com/nodejs/node/pull/4722
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Michaël Zasso <mic.besace@gmail.com >
2016-03-03 20:35:20 -08:00
Ali Ijaz Sheikh
069e02ab47
deps: upgrade to V8 4.9.385.18
...
Pick up the current branch head for V8 4.9
https://github.com/v8/v8/commit/1ecba0f
PR-URL: https://github.com/nodejs/node/pull/4722
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Michaël Zasso <mic.besace@gmail.com >
2016-03-03 20:35:20 -08:00
Ali Ijaz Sheikh
db9e122182
test: update ArrayBuffer alloc failure message
...
The error message returned on ArrayBuffer allocation failure is now different
as per https://codereview.chromium.org/1393263003 .
Ref: https://github.com/nodejs/node/pull/4399
PR-URL: https://github.com/nodejs/node/pull/4785
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
2016-01-21 16:54:39 -08:00
Ali Ijaz Sheikh
ef4170ea03
deps: upgrade to V8 4.8.271.17
...
Pick up V8 4.8 branch-head. This branch brings in @@isConcatSpreadable,
@@toPrimitive and ToLength ES6 changes. For full details see:
http://v8project.blogspot.de/2015/11/v8-release-48.html
https://github.com/v8/v8/commit/fa163e2
Ref: https://github.com/nodejs/node/pull/4399
PR-URL: https://github.com/nodejs/node/pull/4785
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
2016-01-21 16:53:58 -08:00
Ali Ijaz Sheikh
384b20362c
deps: upgrade to V8 4.7.80.32
...
Pick up the latest fixes on the V8 4.7 branch
https://github.com/v8/v8/compare/4.7.80.25...4.7.80.32
PR-URL: https://github.com/nodejs/node/pull/4699
Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: trevnorris - Trevor Norris <trev.norris@gmail.com >
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com >
Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com >
2016-01-15 09:35:01 -08:00
Ali Ijaz Sheikh
79dc1d7635
src: remove forwards for v8::GC*logueCallback
...
These types are no longer used in the file and V8 4.9 no longer defines these
types anymore.
PR-URL: https://github.com/nodejs/node/pull/4381
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
2015-12-22 08:11:41 -08:00
Ali Ijaz Sheikh
e2dec98837
deps: upgrade to V8 4.7.80.25
...
Pick up the latest patch-level from V8 stable. This includes the following fix:
* https://github.com/v8/v8/commit/c408ea72bff7e26cdf498e952133c4c191ecb30c
Make AstRawString deduplication encoding-agnostic.
BUG=v8:4450
LOG=N
R=hablich@chromium.org
TBR=hablich@chromium.org
Review URL: https://codereview.chromium.org/1494293003
See also: https://github.com/nodejs/node/pull/4128
PR-URL: https://github.com/nodejs/node/pull/4160
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com >
2015-12-05 08:38:30 -08:00
Ali Ijaz Sheikh
dc09bbe3ee
test: fix test-repl-tab-complete after V8 upgrade
...
Array#includes is now available.
Ref: https://github.com/nodejs/node/pull/3481
PR-URL: https://github.com/nodejs/node/pull/4106
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com >
Reviewed-By: rvagg - Rod Vagg <rod@vagg.org >
2015-12-04 00:06:01 -08:00
Ali Ijaz Sheikh
8a43a3d761
deps: upgrade V8 to 4.7.80.24
...
Pick up the latest branch head for V8 4.7:
https://github.com/v8/v8/commit/be169f8df059040e6a53ec1dd4579d8bca2167b5
Full change history for the 4.7 branch:
https://chromium.googlesource.com/v8/v8.git/+log/branch-heads/4.7
V8 blog post about what is new on V8 4.7:
http://v8project.blogspot.de/2015/10/v8-release-47.html
PR-URL: https://github.com/nodejs/node/pull/4106
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com >
Reviewed-By: rvagg - Rod Vagg <rod@vagg.org >
2015-12-04 00:06:01 -08:00
Ali Ijaz Sheikh
81f6b543d9
deps: backport 010897c from V8 upstream
...
This is a reland of https://github.com/nodejs/node/pull/3165 . The patch abates
the truncation of script filenames in the perf-event output produced by V8.
V8 commits:
Original: https://github.com/v8/v8/commit/03ef3cd004c2fd31ae7e48772f106df67b8c2feb
Reland: https://github.com/v8/v8/commit/010897c16adb46d3fe403eab525502a63e174b0c
Original commit message:
improve perf_basic_prof filename reporting
The buffer used for appending filenames to the string printed to the
perf_basic_prof log was unnecessarily too small. Bump it up to be at least
kUtf8BufferSize.
Truncation of filenames makes it really hard to work with profiles gathered on
Node.js. Because of the way Node.js works, you can have node module dependencies
in deeply nested directories. The last thing you want when investigating a
performance problem is to have script names be truncated.
This patch is a stop-gap. Ideally, I want no truncation of the filename at all
and use a dynamically growing buffer. That would be a larger change, and I
wanted to have a quick fix available that can be back-ported to Node.js LTS
release.
R=yangguo@chromium.org ,yurys@chromium.org
BUG=
Review URL: https://codereview.chromium.org/1388543002
PR-URL: https://github.com/nodejs/node/pull/3520
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
2015-10-28 08:20:31 -07:00
Ali Ijaz Sheikh
770cd229f9
deps: upgrade V8 to 4.6.85.25
...
Move up to the latest patch level from the V8 4.6 branch:
https://github.com/v8/v8/compare/4.6.85.23...4.6.85.25
PR-URL: https://github.com/nodejs/node/pull/3351
Reviewed-By: indutny - Fedor Indutny <fedor.indutny@gmail.com >
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
2015-10-14 11:20:35 -07:00
Ali Ijaz Sheikh
a334ddc467
Revert "deps: backport 03ef3cd from V8 upstream"
...
This reverts commit 6fff47ffac as it is causing
issues in upstream: https://codereview.chromium.org/1390923004/
PR-URL: https://github.com/nodejs/node/pull/3237
Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com >
2015-10-07 07:44:16 -07:00
Ali Ijaz Sheikh
6fff47ffac
deps: backport 03ef3cd from V8 upstream
...
Reduces likelihood of the filename being truncated in /tmp/perf-*.map when
profiling with --perf_basic_prof.
PR-URL: https://github.com/nodejs/node/pull/3165
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
https://github.com/v8/v8/commit/03ef3cd004c2fd31ae7e48772f106df67b8c2feb
Original commit message:
improve perf_basic_prof filename reporting
The buffer used for appending filenames to the string printed to the
perf_basic_prof log was unnecessarily too small. Bump it up to be at least
kUtf8BufferSize.
Truncation of filenames makes it really hard to work with profiles gathered on
Node.js. Because of the way Node.js works, you can have node module dependencies
in deeply nested directories. The last thing you want when investigating a
performance problem is to have script names be truncated.
This patch is a stop-gap. Ideally, I want no truncation of the filename at all
and use a dynamically growing buffer. That would be a larger change, and I
wanted to have a quick fix available that can be back-ported to Node.js LTS
release.
R=yangguo@chromium.org ,yurys@chromium.org
BUG=
Review URL: https://codereview.chromium.org/1388543002
Cr-Commit-Position: refs/heads/master@{#31092}
2015-10-05 06:06:37 -07:00
Ali Ijaz Sheikh
c2739443e6
deps: upgrade V8 to 4.5.103.35
...
Apply the latest fixes from V8 4.5 branch & bring us up to 4.5.103.35:
* Disallow Object.observe calls on access checked objects.
https://github.com/v8/v8/commit/134e541ad149b9732bc4fee6fe6952cf669703a7
* Avoid excessive data copying for ExternalStreamingStream::SetBookmark.
https://github.com/v8/v8/commit/96dddb455daff3d8626bc4e5d7b2898fbab55991
PR-URL: https://github.com/nodejs/node/pull/3117
Reviewed-By: indutny - Fedor Indutny <fedor.indutny@gmail.com >
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: trevnorris - Trevor Norris <trev.norris@gmail.com >
Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com >
2015-09-30 16:23:26 -07:00
Ali Ijaz Sheikh
704dcce754
deps: upgrade V8 to 4.5.103.33
...
This brings in the patches from 4.5.103.30...4.5.103.33 fixing the issue with
computed property names not working in nested literals.
Full V8 4.5 commit log at:
https://chromium.googlesource.com/v8/v8.git/+log/branch-heads/4.5
Fixes: https://github.com/nodejs/node/issues/2507
PR-URL: https://github.com/nodejs/node/pull/2870
Reviewed-By: indutny - Fedor Indutny <fedor.indutny@gmail.com >
Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com >
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: fishrock123 - Jeremiah Senkpiel <fishrock123@rocketmail.com >
2015-09-15 09:12:01 -07:00
Ali Ijaz Sheikh
4e3d767f4c
deps: upgrade V8 to 4.5.103.30
...
Pick up https://github.com/v8/v8-git-mirror/commit/f9a0a1636a4623a5522c33674e110b346d085340
Commit log at https://chromium.googlesource.com/v8/v8.git/+log/branch-heads/4.5
PR-URL: https://github.com/nodejs/node/pull/2632
Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com >
Reviewed-By: rvagg - Rod Vagg <rod@vagg.org >
2015-09-06 21:38:06 +10:00
Ali Ijaz Sheikh
6c1b26a12e
src: enable vector ics on arm again
...
The flag is no longer supported by V8 4.5, and the original issue [1] on ARMv6
no longer manifests with (at least) 4.5.103.20.
[1] See https://code.google.com/p/v8/issues/detail?id=4338
PR-URL: https://github.com/nodejs/node/pull/2509
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-09-06 21:38:05 +10:00
Ali Ijaz Sheikh
d571680638
test: fix test-repl-tab-complete.js for V8 4.5
...
The list of Array properties needed to be updated to match the new ones added
in V8 4.5.
PR-URL: https://github.com/nodejs/node/pull/2509
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-09-06 21:38:05 +10:00
Ali Ijaz Sheikh
0159ac9c99
src: apply debug force load fixups from 41e63fb
...
Apply the src/node_contextify.cc and lib/module.js fixups from @bnoordhuis
https://github.com/nodejs/node/commit/41e63fb088a29fa05e16fb0d997255678134c043
PR-URL: https://github.com/nodejs/node/pull/2509
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-09-06 21:38:04 +10:00
Ali Ijaz Sheikh
9fddd83cf9
deps: upgrade V8 to 4.5.103.24
...
Upgrade to the latest branch-head for V8 4.5. For the full commit log see
https://github.com/v8/v8-git-mirror/commits/4.5.103.24
PR-URL: https://github.com/nodejs/node/pull/2509
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-09-06 21:38:01 +10:00
Ali Ijaz Sheikh
24dd016deb
build: produce symbol map files on windows
...
This produces map files as part of the build on windows. The existence of
these files enable profiling and tick-processing using the --prof command
line.
See: https://github.com/nodejs/io.js/pull/2090#issuecomment-124746673
Map files are documented here:
https://msdn.microsoft.com/en-us/library/k7xkk3e2.aspx
PR-URL: https://github.com/nodejs/io.js/pull/2243
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-07-29 09:36:25 -07:00
Ali Ijaz Sheikh
ab479659c7
util: delay creation of debug context
...
We need the debug context to be able to inspect promises. However, this is
very expensive and should not be done on default startup.
PR-URL: https://github.com/nodejs/io.js/pull/2248
Reviewed-By: Brian White <mscdex@mscdex.net >
Reviewed-By: Michaël Zasso <mic.besace@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Christopher Monsanto <chris@monsan.to >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2015-07-27 17:14:08 -07:00
Ali Ijaz Sheikh
0a7bf81d2f
deps: update V8 to 4.2.77.21
...
Picks up the latest patch-release on the V8 4.2 branch.
https://codereview.chromium.org/1156323004
PR-URL: https://github.com/nodejs/io.js/issues/2238
Fixes: https://github.com/nodejs/io.js/issues/2235
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-07-24 10:31:18 -07:00
Ali Ijaz Sheikh
ee3ce2ed88
tools: install gdbinit from v8 to $PREFIX/share
...
gdbinit provided by V8 can be very useful for low-level debugging of
crashes in node and in binary addons. Most useful commands at 'jst'
for JS stack traces and 'job' for printing a heap object.
This patch installs the file at $PREFIX/share/doc/node/gdbinit.
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
PR-URL: https://github.com/nodejs/io.js/pull/2123
2015-07-07 14:59:31 -07:00
Ali Ijaz Sheikh
f500e1833b
doc: add ofrobots as collaborator
...
PR-URL: nodejs#1928
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
2015-06-09 15:32:46 -07:00
Ali Ijaz Sheikh
5759722cfa
src: fix module search path for preload modules
...
When the preload module is not a abs/relative path, we should use
the standard search mechanism of looking into the node_modules folders
outwards. The current working directory is deemed to be the 'requiring
module', i.e. parent. The search path starts from cwd outwards.
Fixes: https://github.com/nodejs/io.js/issues/1803
PR-URL: https://github.com/nodejs/io.js/pull/1812
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
2015-05-30 10:36:09 -04:00
Ali Ijaz Sheikh
b6e22c4bd5
src: setup cluster workers before preloading
...
We need to process cluster workers before any preload modules is
executed. Otherwise, the child processes are not correctly disovered
as clustered workers inside the preloaded modules.
Fixes: https://github.com/iojs/io.js/issues/1269
PR-URL: https://github.com/iojs/io.js/pull/1314
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Fedor Indutny <fedor@indutny.com >
2015-04-04 00:53:45 +02:00
Ali Ijaz Sheikh
f06b16f2e9
src: fix minor memleak in preload-modules
...
Free the preload_modules array once we are done with it.
PR-URL: https://github.com/iojs/io.js/pull/1265
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-03-28 12:43:18 +01:00
Ali Ijaz Sheikh
1514b82355
src: add -r/--require flags for preloading modules
...
This patch adds a command line option (-r/--require) that allows one
to provide modules on the command line that will be 'required' during
node startup. This can be useful for debugging, tracing, memory leak
analysis etc. to be preloaded without explicit changes to the user
script. The option can be repeated to preload multiple modules.
PR-URL: https://github.com/iojs/io.js/pull/881
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com >
Reviewed-By: Rod Vagg <rod@vagg.org >
2015-03-19 21:42:16 +11:00
Ali Ijaz Sheikh
7bde3f1a8f
src: add -r/--require flags for preloading modules
...
-r/--require can be used to preload modules on node startup. The option
takes a single module name. The option can be repeated as necessary to
preload multiple modules.
This patch allows 'vendors' (such a cloud host) to inject functionality
that gets executed at application startup without requiring an explicit
require from the user's application. This can be useful to load vendor
specific application monitoring APIs transparently.
PR-URL: https://github.com/iojs/io.js/pull/881
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com >
2015-03-13 13:54:34 -07:00