Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
cb68dc4
chromium-integration
rogerwang Mar 18, 2015
3e32792
export openssl symbols
rogerwang Apr 23, 2015
02a3e5e
fix linux build warning
rogerwang Jul 22, 2015
d99c265
disable warnings for windows platform
rogerwang Aug 12, 2015
44924a5
dummystream on win32
rogerwang Aug 20, 2015
213c64d
new mac loop
rogerwang Oct 22, 2015
8b9cb1a
content verification in node
rogerwang Dec 9, 2015
7a7b835
don't create console window in spawn
rogerwang Dec 20, 2015
803b231
fix allocator
rogerwang Dec 27, 2015
79613a0
fix process.title
rogerwang Dec 28, 2015
fb1656a
don't insert same req into pending list again
rogerwang Dec 28, 2015
3aec44c
enter node's context before callback
rogerwang Jan 8, 2016
f74208a
chain PromiseRejectCallback
rogerwang Jan 26, 2016
310eedd
disable warning C4065
GnorTech Feb 11, 2016
a3b9a67
support node-main
GnorTech Mar 5, 2016
abb48f6
Workaround of realloc in node_buffer
rogerwang Mar 17, 2016
33821ed
add KickNextTick back
rogerwang Apr 2, 2016
d9a5f66
don't mark exiting upon uncaught exception
rogerwang May 7, 2016
023a581
fixup! chromium-integration
rogerwang May 26, 2016
70d8621
[WIN] disable warning for non official build
rogerwang May 27, 2016
845f201
fixup! chromium-integration
rogerwang Jun 2, 2016
d9d9f59
fixup! content verification in node
rogerwang Jun 23, 2016
d350b95
fixup! chromium-integration
rogerwang Jul 11, 2016
6fd0ab9
fixed decoding hex & base64 from two bytes external strings
Jul 6, 2016
07bd0a9
fixup! chromium-integration
rogerwang Jul 12, 2016
661c39d
fix unsigned long print in 32-bit build
rogerwang Jul 13, 2016
97d0fb3
fixup! chromium-integration
rogerwang Jun 8, 2016
970d3e7
fixup! chromium-integration
rogerwang Jun 8, 2016
ae2a444
fixup! chromium-integration
rogerwang Jun 12, 2016
81122ba
support GN build
rogerwang Jun 12, 2016
9de98d6
fixup! chromium-integration
GnorTech Jul 15, 2016
71235ae
fixup! chromium-integration
rogerwang Jul 22, 2016
29ae5db
fix build error: value vs v8::value
rogerwang Aug 18, 2016
65d2416
[win] removed exported zlib symbols
Aug 18, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,18 @@

# Don't bake anything extra into the snapshot.
'v8_use_external_startup_data%': 0,


'conditions': [
['OS=="win" and component=="shared_library"', {
# See http://msdn.microsoft.com/en-us/library/aa652367.aspx
'win_release_RuntimeLibrary%': '2', # 2 = /MD (nondebug DLL)
'win_debug_RuntimeLibrary%': '3', # 3 = /MDd (debug DLL)
}, {
# See http://msdn.microsoft.com/en-us/library/aa652367.aspx
'win_release_RuntimeLibrary%': '0', # 0 = /MT (nondebug static)
'win_debug_RuntimeLibrary%': '1', # 1 = /MTd (debug static)
}],
['OS == "win"', {
'os_posix': 0,
'v8_postmortem_support%': 'false',
Expand Down Expand Up @@ -82,7 +92,7 @@
],
'msvs_settings': {
'VCCLCompilerTool': {
'RuntimeLibrary': 1, # static debug
'RuntimeLibrary': '<(win_debug_RuntimeLibrary), # static debug
'Optimization': 0, # /Od, no optimization
'MinimalRebuild': 'false',
'OmitFramePointers': 'false',
Expand Down Expand Up @@ -119,7 +129,7 @@
],
'msvs_settings': {
'VCCLCompilerTool': {
'RuntimeLibrary': 0, # static release
'RuntimeLibrary': '<(win_release_RuntimeLibrary), # static release
'Optimization': 3, # /Ox, full optimization
'FavorSizeOrSpeed': 1, # /Ot, favour speed over size
'InlineFunctionExpansion': 2, # /Ob2, inline anything eligible
Expand Down
39 changes: 39 additions & 0 deletions config.gypi
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Do not edit. Generated by the configure script.
{ 'target_defaults': { 'cflags': [],
'default_configuration': 'Release',
'defines': ['OPENSSL_NO_SSL2=1'],
'include_dirs': [],
'libraries': []},
'variables': { 'clang': 1,
'gcc_version': 49,
'host_arch': 'x64',
'icu_small': 'false',
'node_install_npm': 'true',
'node_prefix': '',
'node_shared': 'true',
'node_shared_http_parser': 'false',
'node_shared_libuv': 'false',
'node_shared_openssl': 'false',
'node_shared_v8': 'false',
'node_shared_zlib': 'false',
'node_tag': '',
'node_release_urlbase': '',
'node_byteorder': 'little',
'node_use_dtrace': 'false',
'node_use_etw': 'false',
'node_use_mdb': 'false',
'node_use_openssl': 'true',
'node_use_perfctr': 'false',
'openssl_no_asm': 0,
'python': '/usr/bin/python',
'target_arch': 'x64',
'uv_library': 'static_library',
'uv_parent_path': '/deps/uv/',
'uv_use_dtrace': 'false',
'v8_enable_gdbjit': 0,
'v8_enable_i18n_support': 0,
'v8_no_strict_aliasing': 1,
'v8_optimized_debug': 0,
'v8_random_seed': 0,
'v8_use_snapshot': 'true',
'want_separate_host_toolset': 0}}
4 changes: 4 additions & 0 deletions deps/cares/cares.gyp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
'variables': {
'library%': 'static_library',
},
'target_defaults': {
'conditions': [
['OS!="win"', {
Expand Down Expand Up @@ -112,6 +115,7 @@
}],
[ 'OS=="win"', {
'include_dirs': [ 'config/win32' ],
'msvs_disabled_warnings': [4133],
'sources': [
'src/config-win32.h',
'src/windows_port.c',
Expand Down
9 changes: 9 additions & 0 deletions deps/cares/src/ares_create_query.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@

#include "ares_setup.h"

#ifndef _WIN32
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warray-bounds"
#endif

#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif
Expand Down Expand Up @@ -206,3 +211,7 @@ int ares_create_query(const char *name, int dnsclass, int type,

return ARES_SUCCESS;
}

#ifndef _WIN32
#pragma clang diagnostic pop
#endif
2 changes: 1 addition & 1 deletion deps/cares/src/ares_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ static void read_udp_packets(ares_channel channel, fd_set *read_fds,
else
fromlen = sizeof(from.sa6);
count = (ssize_t)recvfrom(server->udp_socket, (void *)buf,
sizeof(buf), 0, &from.sa, &fromlen);
sizeof(buf), 0, &from.sa, (socklen_t *)&fromlen);
#else
count = sread(server->udp_socket, buf, sizeof(buf));
#endif
Expand Down
2 changes: 1 addition & 1 deletion deps/http_parser/http_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -2391,7 +2391,7 @@ http_parser_parse_url(const char *buf, size_t buflen, int is_connect,
break;

default:
assert(!"Unexpected state");
assert(0 && "Unexpected state");
return 1;
}

Expand Down
13 changes: 3 additions & 10 deletions deps/http_parser/http_parser.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,10 @@
'Debug': {
'defines': [ 'DEBUG', '_DEBUG' ],
'cflags': [ '-Wall', '-Wextra', '-O0', '-g', '-ftrapv' ],
'msvs_settings': {
'VCCLCompilerTool': {
'RuntimeLibrary': 1, # static debug
},
},
},
'Release': {
'defines': [ 'NDEBUG' ],
'cflags': [ '-Wall', '-Wextra', '-O3' ],
'msvs_settings': {
'VCCLCompilerTool': {
'RuntimeLibrary': 0, # static release
},
},
}
},
'msvs_settings': {
Expand All @@ -39,6 +29,9 @@
},
},
'conditions': [
['clang==1', {
'cflags': ['-Wno-error=string-conversion'],
}],
['OS == "win"', {
'defines': [
'WIN32'
Expand Down
15 changes: 11 additions & 4 deletions deps/openssl/openssl.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,22 @@

{
'variables': {
'is_clang': 0,
'is_clang': 1,
'gcc_version': 0,
'openssl_no_asm%': 0,
'llvm_version%': 0,
'xcode_version%': 0,
'gas_version%': 0,
'openssl_fips%': 'false',
'openssl_fips%': '',
'node_byteorder%': 'little',
'conditions': [
['OS=="mac"', { 'openssl_no_asm%': 1 } ],
],
},
'targets': [
{
'target_name': 'openssl',
'type': '<(library)',
'type': 'static_library',
'includes': ['openssl.gypi'],
'sources': ['<@(openssl_sources)'],
'sources/': [
Expand Down Expand Up @@ -149,12 +153,15 @@
'includes': ['openssl.gypi'],
'include_dirs': ['<@(openssl_default_include_dirs)'],
'defines': ['<@(openssl_default_defines_all)'],
'cflags!': ['-fvisibility=hidden'],
'cflags_cc!': ['-fvisibility-inlines-hidden'],
'conditions': [
['OS=="win"', {
'defines': ['<@(openssl_default_defines_win)'],
'link_settings': {
'libraries': ['<@(openssl_default_libraries_win)'],
},
'msvs_disabled_warnings': [4311],
}, {
'defines': ['<@(openssl_default_defines_not_win)'],
'cflags': ['-Wno-missing-field-initializers'],
Expand All @@ -167,7 +174,7 @@
]
}],
['is_clang==1 or gcc_version>=43', {
'cflags': ['-Wno-old-style-declaration'],
'cflags': ['-Wno-error=unused-command-line-argument', '-Wno-error=parentheses-equality'],
}],
['OS=="solaris"', {
'defines': ['__EXTENSIONS__'],
Expand Down
1 change: 1 addition & 0 deletions deps/openssl/openssl/ssl/d1_srvr.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
# include <openssl/dh.h>
#endif


static const SSL_METHOD *dtls1_get_server_method(int ver);
static int dtls1_send_hello_verify_request(SSL *s);

Expand Down
1 change: 1 addition & 0 deletions deps/openssl/openssl/ssl/s3_srvr.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@
#endif
#include <openssl/md5.h>


#ifndef OPENSSL_NO_SSL3_METHOD
static const SSL_METHOD *ssl3_get_server_method(int ver);

Expand Down
10 changes: 10 additions & 0 deletions deps/uv/include/uv.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ extern "C" {
#endif

#ifdef _WIN32
#pragma warning(push)
#pragma warning(disable: 4201)
/* Windows - set up dll import/export decorators. */
# if defined(BUILDING_UV_SHARED)
/* Building shared library. */
Expand Down Expand Up @@ -766,6 +768,9 @@ UV_EXTERN int uv_async_init(uv_loop_t*,
uv_async_t* async,
uv_async_cb async_cb);
UV_EXTERN int uv_async_send(uv_async_t* async);
#ifdef _WIN32
UV_EXTERN int uv_async_send_nw(uv_async_t* async);
#endif


/*
Expand Down Expand Up @@ -1465,6 +1470,7 @@ struct uv_loop_s {
void* active_reqs[2];
/* Internal flag to signal loop stop. */
unsigned int stop_flag;
void* keventfunc;
UV_LOOP_PRIVATE_FIELDS
};

Expand All @@ -1489,6 +1495,10 @@ struct uv_loop_s {
#undef UV_LOOP_PRIVATE_FIELDS
#undef UV_LOOP_PRIVATE_PLATFORM_FIELDS

#ifdef _WIN32
#pragma warning(pop)
#endif

#ifdef __cplusplus
}
#endif
Expand Down
4 changes: 4 additions & 0 deletions deps/uv/src/unix/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
#include <utime.h>
#include <poll.h>

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warray-bounds"

#if defined(__DragonFly__) || \
defined(__FreeBSD__) || \
defined(__OpenBSD__) || \
Expand Down Expand Up @@ -1322,3 +1325,4 @@ void uv_fs_req_cleanup(uv_fs_t* req) {
uv__free(req->ptr);
req->ptr = NULL;
}
#pragma clang diagnostic pop
2 changes: 1 addition & 1 deletion deps/uv/src/unix/getaddrinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ int uv__getaddrinfo_translate_error(int sys_err) {
case EAI_SYSTEM: return -errno;
#endif
}
assert(!"unknown EAI_* error code");
assert(!(int)("unknown EAI_* error code"));
abort();
return 0; /* Pacify compiler. */
}
Expand Down
23 changes: 14 additions & 9 deletions deps/uv/src/unix/kqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@

static void uv__fs_event(uv_loop_t* loop, uv__io_t* w, unsigned int fflags);

typedef int (*keventfunc_t)(int kq, const struct kevent *changelist, int nchanges,
struct kevent *eventlist, int nevents, const struct timespec *timeout);

int uv__kqueue_init(uv_loop_t* loop) {
loop->backend_fd = kqueue();
Expand Down Expand Up @@ -87,6 +89,8 @@ void uv__io_poll(uv_loop_t* loop, int timeout) {
int op;
int i;

keventfunc_t keventfunc = loop->keventfunc ? (keventfunc_t)loop->keventfunc : &kevent;

if (loop->nfds == 0) {
assert(QUEUE_EMPTY(&loop->watcher_queue));
return;
Expand Down Expand Up @@ -119,7 +123,7 @@ void uv__io_poll(uv_loop_t* loop, int timeout) {
EV_SET(events + nevents, w->fd, filter, op, fflags, 0, 0);

if (++nevents == ARRAY_SIZE(events)) {
if (kevent(loop->backend_fd, events, nevents, NULL, 0, NULL))
if (keventfunc(loop->backend_fd, events, nevents, NULL, 0, NULL))
abort();
nevents = 0;
}
Expand All @@ -129,7 +133,7 @@ void uv__io_poll(uv_loop_t* loop, int timeout) {
EV_SET(events + nevents, w->fd, EVFILT_WRITE, EV_ADD, 0, 0, 0);

if (++nevents == ARRAY_SIZE(events)) {
if (kevent(loop->backend_fd, events, nevents, NULL, 0, NULL))
if (keventfunc(loop->backend_fd, events, nevents, NULL, 0, NULL))
abort();
nevents = 0;
}
Expand Down Expand Up @@ -158,7 +162,7 @@ void uv__io_poll(uv_loop_t* loop, int timeout) {
if (pset != NULL)
pthread_sigmask(SIG_BLOCK, pset, NULL);

nfds = kevent(loop->backend_fd,
nfds = keventfunc(loop->backend_fd,
events,
nevents,
events,
Expand All @@ -175,7 +179,7 @@ void uv__io_poll(uv_loop_t* loop, int timeout) {
SAVE_ERRNO(uv__update_time(loop));

if (nfds == 0) {
assert(timeout != -1);
//assert(timeout != -1);
return;
}

Expand Down Expand Up @@ -213,7 +217,7 @@ void uv__io_poll(uv_loop_t* loop, int timeout) {
struct kevent events[1];

EV_SET(events + 0, fd, ev->filter, EV_DELETE, 0, 0, 0);
if (kevent(loop->backend_fd, events, 1, NULL, 0, NULL))
if (keventfunc(loop->backend_fd, events, 1, NULL, 0, NULL))
if (errno != EBADF && errno != ENOENT)
abort();

Expand All @@ -238,7 +242,7 @@ void uv__io_poll(uv_loop_t* loop, int timeout) {
/* TODO batch up */
struct kevent events[1];
EV_SET(events + 0, fd, ev->filter, EV_DELETE, 0, 0, 0);
if (kevent(loop->backend_fd, events, 1, NULL, 0, NULL))
if (keventfunc(loop->backend_fd, events, 1, NULL, 0, NULL))
if (errno != ENOENT)
abort();
}
Expand All @@ -252,7 +256,7 @@ void uv__io_poll(uv_loop_t* loop, int timeout) {
/* TODO batch up */
struct kevent events[1];
EV_SET(events + 0, fd, ev->filter, EV_DELETE, 0, 0, 0);
if (kevent(loop->backend_fd, events, 1, NULL, 0, NULL))
if (keventfunc(loop->backend_fd, events, 1, NULL, 0, NULL))
if (errno != ENOENT)
abort();
}
Expand Down Expand Up @@ -342,7 +346,8 @@ static void uv__fs_event(uv_loop_t* loop, uv__io_t* w, unsigned int fflags) {
/* MAXPATHLEN == PATH_MAX but the former is what XNU calls it internally. */
char pathbuf[MAXPATHLEN];
#endif

keventfunc_t keventfunc = loop->keventfunc ? (keventfunc_t)loop->keventfunc : &kevent;

handle = container_of(w, uv_fs_event_t, event_watcher);

if (fflags & (NOTE_ATTRIB | NOTE_EXTEND))
Expand Down Expand Up @@ -370,7 +375,7 @@ static void uv__fs_event(uv_loop_t* loop, uv__io_t* w, unsigned int fflags) {

EV_SET(&ev, w->fd, EVFILT_VNODE, EV_ADD | EV_ONESHOT, fflags, 0, 0);

if (kevent(loop->backend_fd, &ev, 1, NULL, 0, NULL))
if (keventfunc(loop->backend_fd, &ev, 1, NULL, 0, NULL))
abort();
}

Expand Down
2 changes: 2 additions & 0 deletions deps/uv/src/unix/loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ int uv_loop_init(uv_loop_t* loop) {
loop->backend_fd = -1;
loop->emfile_fd = -1;

loop->keventfunc = NULL;

loop->timer_counter = 0;
loop->stop_flag = 0;

Expand Down
Loading