-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
145 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
node_modules/ | ||
build/ | ||
cache/ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- a/configure.py | ||
+++ b/configure.py | ||
@@ -1598,7 +1598,9 @@ def configure_v8(o): | ||
o['variables']['v8_use_siphash'] = 0 if options.without_siphash else 1 | ||
o['variables']['v8_enable_maglev'] = 1 if options.v8_enable_maglev else 0 | ||
o['variables']['v8_enable_pointer_compression'] = 1 if options.enable_pointer_compression else 0 | ||
- o['variables']['v8_enable_sandbox'] = 1 if options.enable_pointer_compression else 0 | ||
+ | ||
+ # o['variables']['v8_enable_sandbox'] = 1 if options.enable_pointer_compression else 0 | ||
+ | ||
o['variables']['v8_enable_31bit_smis_on_64bit_arch'] = 1 if options.enable_pointer_compression else 0 | ||
o['variables']['v8_enable_shared_ro_heap'] = 0 if options.enable_pointer_compression or options.disable_shared_ro_heap else 1 | ||
o['variables']['v8_enable_extensible_ro_snapshot'] = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/deps/uv/src/win/fs-event.c | ||
+++ b/deps/uv/src/win/fs-event.c | ||
@@ -266,6 +266,8 @@ short_path_done: | ||
} | ||
|
||
dir_to_watch = dir; | ||
+ uv__free(short_path); | ||
+ short_path = NULL; | ||
uv__free(pathw); | ||
pathw = NULL; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
disable usage of <sys/random.h> | ||
|
||
--- deps/cares/config/linux/ares_config.h | ||
+++ deps/cares/config/linux/ares_config.h | ||
@@ -116,7 +116,9 @@ | ||
#define HAVE_GETNAMEINFO 1 | ||
|
||
/* Define to 1 if you have `getrandom` */ | ||
+#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 25 | ||
#define HAVE_GETRANDOM 1 | ||
+#endif | ||
|
||
/* Define to 1 if you have `getservbyport_r` */ | ||
#define HAVE_GETSERVBYPORT_R 1 | ||
@@ -329,7 +331,9 @@ | ||
#define HAVE_SYS_PARAM_H 1 | ||
|
||
/* Define to 1 if you have the <sys/random.h> header file. */ | ||
+#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 25 | ||
#define HAVE_SYS_RANDOM_H 1 | ||
+#endif | ||
|
||
/* Define to 1 if you have the <sys/select.h> header file. */ | ||
#define HAVE_SYS_SELECT_H 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- src/node.cc | ||
+++ src/node.cc | ||
@@ -377,6 +377,14 @@ MaybeLocal<Value> StartExecution(Environment* env, StartExecutionCallback cb) { | ||
return env->RunSnapshotDeserializeMain(); | ||
} | ||
|
||
+ // To allow people to extend Node in different ways, this hook allows | ||
+ // one to drop a file lib/_third_party_main.js into the build | ||
+ // directory which will be executed instead of Node's normal loading. | ||
+ if (env->builtin_loader()->Exists("_third_party_main")) { | ||
+ return StartExecution(env, "internal/main/run_third_party_main"); | ||
+ } | ||
+ | ||
+ | ||
if (env->worker_context() != nullptr) { | ||
return StartExecution(env, "internal/main/worker_thread"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
disable building of cctest as it (a) it fails to build due to align_alloc and (b) it is just a waste of time | ||
|
||
--- node.gyp | ||
+++ node.gyp | ||
@@ -1144,7 +1144,7 @@ | ||
}, # fuzz_strings | ||
{ | ||
'target_name': 'cctest', | ||
- 'type': 'executable', | ||
+ 'type': 'none', | ||
|
||
'dependencies': [ | ||
'<(node_lib_target_name)', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- /dev/null | ||
+++ lib/internal/main/run_third_party_main.js | ||
@@ -0,0 +1,14 @@ | ||
+'use strict'; | ||
+ | ||
+const { | ||
+ prepareMainThreadExecution, | ||
+ markBootstrapComplete | ||
+} = require('internal/process/pre_execution'); | ||
+ | ||
+prepareMainThreadExecution(); | ||
+markBootstrapComplete(); | ||
+ | ||
+// Legacy _third_party_main.js support | ||
+process.nextTick(() => { | ||
+ require('_third_party_main'); | ||
+}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
expose option for configuring pointer compression | ||
|
||
--- vcbuild.bat | ||
+++ vcbuild.bat | ||
@@ -67,6 +67,7 @@ set no_shared_roheap= | ||
set doc= | ||
set extra_msbuild_args= | ||
set exit_code=0 | ||
+set v8_ptr_compress= | ||
|
||
:next-arg | ||
if "%1"=="" goto args-done | ||
@@ -139,6 +140,7 @@ if /i "%1"=="cctest" set cctest=1&goto arg-ok | ||
if /i "%1"=="openssl-no-asm" set openssl_no_asm=1&goto arg-ok | ||
if /i "%1"=="no-shared-roheap" set no_shared_roheap=1&goto arg-ok | ||
if /i "%1"=="doc" set doc=1&goto arg-ok | ||
+if /i "%1"=="v8_ptr_compress" set v8_ptr_compress=1&goto arg-ok | ||
if /i "%1"=="binlog" set extra_msbuild_args=/binaryLogger:out\%config%\node.binlog&goto arg-ok | ||
|
||
echo Error: invalid command line option `%1`. | ||
@@ -196,6 +198,7 @@ if defined debug_nghttp2 set configure_flags=%configure_flags% --debug-nghttp | ||
if defined openssl_no_asm set configure_flags=%configure_flags% --openssl-no-asm | ||
if defined no_shared_roheap set configure_flags=%configure_flags% --disable-shared-readonly-heap | ||
if defined DEBUG_HELPER set configure_flags=%configure_flags% --verbose | ||
+if defined v8_ptr_compress set configure_flags=%configure_flags% --experimental-enable-pointer-compression | ||
if "%target_arch%"=="x86" if "%PROCESSOR_ARCHITECTURE%"=="AMD64" set configure_flags=%configure_flags% --no-cross-compiling | ||
|
||
if not exist "%~dp0deps\icu" goto no-depsicu |