summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
authorTrevor Norris <trev.norris@gmail.com>2015-05-26 12:42:14 -0600
committerRod Vagg <rod@vagg.org>2015-08-04 11:56:10 -0700
commit63da0dfd3a4460e117240e84b57af2137469497e (patch)
tree4806693f7d89ba36ebbe4ff1ab5f34e1b3cf90ea /node.gyp
parent23be6ca189e1ebad24a814ed1c8c1c241fee354e (diff)
downloadnode-new-63da0dfd3a4460e117240e84b57af2137469497e.tar.gz
buffer: implement Uint8Array backed Buffer
With V8 4.4 removing the external array data API currently used by Buffer, the new implementation uses the Uint8Array to back Buffer. Buffers now have a maximum size of Smi::kMaxLength, as defined by V8. Which is ~2 GB on 64 bit and ~1 GB on 32 bit. The flag --use-old-buffer allows using the old Buffer implementation. This flag will be removed once V8 4.4 has landed. The two JS Buffer implementations have been split into two files for simplicity. Use getter to return expected .parent/.offset values for backwards compatibility. PR-URL: https://github.com/nodejs/io.js/pull/1825 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp3
1 files changed, 2 insertions, 1 deletions
diff --git a/node.gyp b/node.gyp
index dfa08ce646..197f439f8d 100644
--- a/node.gyp
+++ b/node.gyp
@@ -69,8 +69,9 @@
'lib/v8.js',
'lib/vm.js',
'lib/zlib.js',
-
'lib/internal/child_process.js',
+ 'lib/internal/buffer_old.js',
+ 'lib/internal/buffer_new.js',
'lib/internal/freelist.js',
'lib/internal/smalloc.js',
'lib/internal/socket_list.js',