0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 15:30:56 +01:00
nodejs/src
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
..
res build,win: fix node.exe resource version 2015-10-01 11:50:51 +01:00
async-wrap-inl.h async_wrap: add parent uid to init hook 2016-02-18 13:49:51 -07:00
async-wrap.cc async_wrap: add uid to all asyncWrap hooks 2016-02-18 13:47:24 -07:00
async-wrap.h http_parser: use MakeCallback 2016-03-01 02:37:27 -07:00
atomic-polyfill.h src: fix race condition in debug signal on exit 2015-10-27 12:57:09 +01:00
base-object-inl.h src: fix deprecated SetWeak usage in base-object 2016-03-03 20:35:20 -08:00
base-object.h src: fix deprecated SetWeak usage in base-object 2016-03-03 20:35:20 -08:00
cares_wrap.cc deps: sync with upstream bagder/c-ares@2bae2d5 2016-02-08 14:44:19 -05:00
CNNICHashWhitelist.inc crypto: add cert check to CNNIC Whitelist 2015-06-16 23:26:29 +09:00
debug-agent.cc src: replace usage of deprecated GetDebugContext 2016-03-03 20:35:20 -08:00
debug-agent.h src: remove no longer relevant comments 2016-02-01 21:28:06 +01:00
env-inl.h src: remove unnecessary check 2016-02-15 07:52:02 -08:00
env.cc src: remove TryCatch in MakeCallback 2016-02-12 14:03:32 -07:00
env.h vm: fix produceCachedData 2016-02-21 14:59:35 -05:00
fs_event_wrap.cc src: Add ABORT macro 2015-09-17 15:25:14 -05:00
handle_wrap.cc src: replace usage of v8::Handle with v8::Local 2015-09-06 21:38:05 +10:00
handle_wrap.h src: replace usage of v8::Handle with v8::Local 2015-09-06 21:38:05 +10:00
js_stream.cc js_stream: prevent abort if isalive doesn't exist 2015-10-08 11:38:21 -06:00
js_stream.h src: replace usage of v8::Handle with v8::Local 2015-09-06 21:38:05 +10:00
node_buffer.cc buffer: replace deprecated SetWeak usage 2016-03-03 20:35:20 -08:00
node_buffer.h buffer: replace deprecated SetWeak usage 2016-03-03 20:35:20 -08:00
node_constants.cc constants: define ENGINE_METHOD_RSA 2016-02-26 19:42:56 -08:00
node_constants.h src: replace usage of v8::Handle with v8::Local 2015-09-06 21:38:05 +10:00
node_contextify.cc contextify: cleanup weak ref for sandbox 2016-03-03 20:35:20 -08:00
node_counters.cc src: remove forwards for v8::GC*logueCallback 2015-12-22 08:11:41 -08:00
node_counters.h src: replace usage of v8::Handle with v8::Local 2015-09-06 21:38:05 +10:00
node_crypto_bio.cc crypto: have fixed NodeBIOs return EOF 2016-02-11 16:30:03 -05:00
node_crypto_bio.h crypto: have fixed NodeBIOs return EOF 2016-02-11 16:30:03 -05:00
node_crypto_clienthello-inl.h Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
node_crypto_clienthello.cc build,src: remove sslv3 support 2015-01-13 01:59:30 +01:00
node_crypto_clienthello.h Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
node_crypto_groups.h Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
node_crypto.cc crypto, string_bytes: treat buffer str as utf8 2016-03-02 21:25:04 +03:00
node_crypto.h tls: add getProtocol() to TLS sockets 2016-02-03 21:34:06 -05:00
node_dtrace.cc src: remove forwards for v8::GC*logueCallback 2015-12-22 08:11:41 -08:00
node_dtrace.h src: replace usage of v8::Handle with v8::Local 2015-09-06 21:38:05 +10:00
node_file.cc fs: use pushValueToArray for readdir(Sync) 2015-12-17 17:29:06 -07:00
node_file.h src: replace usage of v8::Handle with v8::Local 2015-09-06 21:38:05 +10:00
node_http_parser.cc http_parser: use MakeCallback 2016-03-01 02:37:27 -07:00
node_http_parser.h src: replace usage of v8::Handle with v8::Local 2015-09-06 21:38:05 +10:00
node_i18n.cc Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
node_i18n.h src: hide InitializeICUDirectory symbol 2015-06-02 21:44:18 +02:00
node_internals.h src: add AsyncCallbackScope 2016-02-12 14:03:24 -07:00
node_javascript.cc src,tools: remove null sentinel from source array 2016-02-25 13:21:56 +01:00
node_javascript.h src: replace usage of v8::Handle with v8::Local 2015-09-06 21:38:05 +10:00
node_lttng_provider.h lttng: update flags for gc tracing 2015-10-20 23:38:28 +02:00
node_lttng_tp.h tracing: add lttng support for tracing on linux 2015-02-09 18:06:57 +01:00
node_lttng.cc src: remove forwards for v8::GC*logueCallback 2015-12-22 08:11:41 -08:00
node_lttng.h src: replace usage of v8::Handle with v8::Local 2015-09-06 21:38:05 +10:00
node_main.cc src: force line buffering for stderr 2015-11-10 17:52:44 -08:00
node_object_wrap.h src: replace usage of v8::Handle with v8::Local 2015-09-06 21:38:05 +10:00
node_os.cc src: replace usage of deprecated Has 2016-03-03 20:35:20 -08:00
node_provider.d src: remove unused dtrace probes 2015-02-02 21:55:56 +01:00
node_revert.cc src: avoid compiler warning in node_revert.cc 2016-02-09 09:22:13 -08:00
node_revert.h src: add --security-revert command line flag 2016-02-09 09:20:41 -08:00
node_root_certs.h crypto: update root certificates 2015-11-21 21:33:30 +01:00
node_stat_watcher.cc src: replace usage of v8::Handle with v8::Local 2015-09-06 21:38:05 +10:00
node_stat_watcher.h src: replace usage of v8::Handle with v8::Local 2015-09-06 21:38:05 +10:00
node_util.cc src: upgrade to new v8::Private api 2016-02-03 01:04:31 +01:00
node_v8.cc v8,src: expose statistics about heap spaces 2016-01-18 11:44:00 -05:00
node_version.h src: bump NODE_MODULE_VERSION To 47 2015-10-20 23:11:07 -04:00
node_watchdog.cc src: replace deprecated TerminateExecution 2016-03-03 20:35:20 -08:00
node_watchdog.h vm: remove Watchdog dependency on Environment 2015-10-21 00:34:53 +02:00
node_win32_etw_provider-inl.h dtrace: fix removal of unused probes 2015-02-03 22:37:42 +11:00
node_win32_etw_provider.cc Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
node_win32_etw_provider.h src: remove unused dtrace probes 2015-02-02 21:55:56 +01:00
node_win32_perfctr_provider.cc Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
node_win32_perfctr_provider.h Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
node_wrap.h stream_base: various improvements 2015-08-20 01:14:37 -07:00
node_zlib.cc zlib: decompression throw on truncated input 2015-10-19 15:06:05 -06:00
node.cc src: replace usage of deprecated SetAccessor 2016-03-03 20:35:20 -08:00
node.d
node.h crypto: Improve control of FIPS mode 2016-02-25 15:06:41 -05:00
node.js src,test,tools: modify for more stringent linting 2016-02-18 10:11:26 -08:00
node.stp src: remove unused dtrace probes 2015-02-02 21:55:56 +01:00
nolttng_macros.py tracing: add lttng support for tracing on linux 2015-02-09 18:06:57 +01:00
notrace_macros.py src: remove unused dtrace probes 2015-02-02 21:55:56 +01:00
perfctr_macros.py
pipe_wrap.cc async_wrap: update providers and add test 2015-10-01 13:54:44 -06:00
pipe_wrap.h src: replace usage of v8::Handle with v8::Local 2015-09-06 21:38:05 +10:00
process_wrap.cc src: replace usage of v8::Handle with v8::Local 2015-09-06 21:38:05 +10:00
req-wrap-inl.h src: replace usage of v8::Handle with v8::Local 2015-09-06 21:38:05 +10:00
req-wrap.h src: replace usage of v8::Handle with v8::Local 2015-09-06 21:38:05 +10:00
signal_wrap.cc src: replace usage of v8::Handle with v8::Local 2015-09-06 21:38:05 +10:00
spawn_sync.cc src: Add ABORT macro 2015-09-17 15:25:14 -05:00
spawn_sync.h src: replace usage of v8::Handle with v8::Local 2015-09-06 21:38:05 +10:00
stream_base-inl.h src: replace usage of v8::Handle with v8::Local 2015-09-06 21:38:05 +10:00
stream_base.cc src: replace usage of deprecated Has 2016-03-03 20:35:20 -08:00
stream_base.h tls_wrap: reach error reporting for UV_EPROTO 2016-01-27 17:27:52 -05:00
stream_wrap.cc stream_wrap: support empty TryWrites 2015-10-06 07:02:21 +11:00
stream_wrap.h src: replace usage of v8::Handle with v8::Local 2015-09-06 21:38:05 +10:00
string_bytes.cc crypto, string_bytes: treat buffer str as utf8 2016-03-02 21:25:04 +03:00
string_bytes.h src: replace usage of v8::Handle with v8::Local 2015-09-06 21:38:05 +10:00
string_search.cc src: replace naive search in Buffer::IndexOf 2015-10-07 21:09:53 -07:00
string_search.h src: replace naive search in Buffer::IndexOf 2015-10-07 21:09:53 -07:00
tcp_wrap.cc async_wrap: update providers and add test 2015-10-01 13:54:44 -06:00
tcp_wrap.h src: replace usage of v8::Handle with v8::Local 2015-09-06 21:38:05 +10:00
timer_wrap.cc src: replace usage of v8::Handle with v8::Local 2015-09-06 21:38:05 +10:00
tls_wrap.cc tls_wrap: reach error reporting for UV_EPROTO 2016-01-27 17:27:52 -05:00
tls_wrap.h tls_wrap: reach error reporting for UV_EPROTO 2016-01-27 17:27:52 -05:00
tree.h
tty_wrap.cc src: Add ABORT macro 2015-09-17 15:25:14 -05:00
tty_wrap.h src: replace usage of v8::Handle with v8::Local 2015-09-06 21:38:05 +10:00
udp_wrap.cc dgram: support dgram.send with multiple buffers 2016-01-29 19:26:44 +01:00
udp_wrap.h src: replace usage of v8::Handle with v8::Local 2015-09-06 21:38:05 +10:00
util-inl.h src: replace deprecated String::NewFromOneByte 2016-03-03 20:35:20 -08:00
util.cc buffer: add encoding parameter to fill() 2016-02-10 12:06:20 -07:00
util.h buffer: add encoding parameter to fill() 2016-02-10 12:06:20 -07:00
uv.cc src: replace usage of v8::Handle with v8::Local 2015-09-06 21:38:05 +10:00
v8abbr.h v8abbr: ASCIISTRINGTAG => ONEBYTESTRINGTAG 2015-02-03 19:25:31 +03:00
v8ustack.d