0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 23:16:30 +01:00
nodejs/lib
Trevor Norris 63da0dfd3a 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>
2015-08-04 11:56:10 -07:00
..
internal buffer: implement Uint8Array backed Buffer 2015-08-04 11:56:10 -07:00
_debug_agent.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
_debugger.js lib,test: fix whitespace issues 2015-06-15 16:37:37 +02:00
_http_agent.js https: reuse TLS sessions in Agent 2015-07-27 11:48:36 -07:00
_http_client.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
_http_common.js http: simplify code and remove unused properties 2015-05-25 01:07:22 -04:00
_http_incoming.js http: revert deprecation of client property 2015-05-31 20:37:44 +02:00
_http_outgoing.js http: Check this.connection before using it 2015-07-22 21:44:59 +05:30
_http_server.js lib,test: fix whitespace issues 2015-06-15 16:37:37 +02:00
_linklist.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
_stream_duplex.js node: allow multiple arguments passed to nextTick 2015-04-15 17:02:21 -06:00
_stream_passthrough.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
_stream_readable.js lib,test: fix whitespace issues 2015-06-15 16:37:37 +02:00
_stream_transform.js stream: simpler stream constructon 2015-02-04 20:19:39 -08:00
_stream_wrap.js _stream_wrap: prevent use after free in TLS 2015-06-30 20:09:22 -07:00
_stream_writable.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
_tls_common.js tls: destroy singleUse context immediately 2015-04-30 11:02:30 +02:00
_tls_legacy.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
_tls_wrap.js https: reuse TLS sessions in Agent 2015-07-27 11:48:36 -07:00
assert.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
buffer.js buffer: implement Uint8Array backed Buffer 2015-08-04 11:56:10 -07:00
child_process.js child_process: fix arguments comments 2015-07-12 01:16:31 +02:00
cluster.js cluster: add handle ref/unref stubs in rr mode 2015-07-30 18:17:53 +02:00
console.js lib: fix eslint styles 2015-05-09 12:10:02 +09:00
constants.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
crypto.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
dgram.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
dns.js Revert "dns: remove AI_V4MAPPED hint flag on FreeBSD" 2015-08-04 11:56:10 -07:00
domain.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
events.js events: provide better error message for unhandled error 2015-05-12 08:33:20 -05:00
freelist.js lib,test: add freelist deprecation and test 2015-07-17 19:48:31 -07:00
fs.js fs: fix error on bad listener type 2015-07-10 14:23:18 -07:00
http.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
https.js https: reuse TLS sessions in Agent 2015-07-27 11:48:36 -07:00
module.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
net.js net: do not set V4MAPPED on FreeBSD 2015-08-04 11:56:10 -07:00
os.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
path.js path: assert path.join() arguments equally 2015-07-12 01:05:05 +02:00
process.js src: remove excessive license boilerplate 2015-01-27 16:35:05 +11:00
punycode.js lib: add missing new for errors lib/*.js 2015-03-24 12:42:15 -07:00
querystring.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
readline.js readline: fix freeze if keypress event throws 2015-07-11 21:12:25 +03:00
repl.js repl: don't clobber RegExp.$ properties 2015-08-04 10:21:37 +05:30
smalloc.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
stream.js lib,test: fix whitespace issues 2015-06-15 16:37:37 +02:00
string_decoder.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
sys.js util: introduce printDeprecationMessage function 2015-06-04 10:59:43 +03:00
timers.js lib: simplify nextTick() usage 2015-05-25 10:14:18 -04:00
tls.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
tty.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
url.js url: fix typo in comment 2015-06-30 13:47:57 -07:00
util.js util: delay creation of debug context 2015-07-27 17:14:08 -07:00
v8.js lib: deprecate the smalloc module 2015-04-29 19:33:43 +02:00
vm.js lib: reduce util.is*() usage 2015-01-31 23:47:29 -05:00
zlib.js zlib: prevent uncaught exception in zlibBuffer 2015-06-15 15:43:08 -06:00