- Jan 17, 2013
-
-
Dean McNamee authored
V8 seems to be particularly slow converting an undefined value to false in BooleanValue. Revert this when we upgrade to V8 3.17, or whenever the fix discussed in http://code.google.com/p/v8/issues/detail?id=2487 lands in V8.
-
James Campos authored
-
isaacs authored
Problem 1: If stream.push() triggers a 'readable' event, and the user calls `read(n)` with some n > the highWaterMark, then the push() will return false (indicating that they should not push any more), but no future 'readable' event is coming (because we're above the highWaterMark). Solution: return true from push() when needReadable is set. Problem 2: A read(n) for n != 0, after the stream had encountered an EOF, would not trigger the 'end' event if the EOF was pushed in synchronously by the _read() function. Solution: Check for ended in stream.read() and schedule an end event if the length now equals 0. Fix #4585
-
Trevor Norris authored
Improved assert check order of execution and added additional checks on parameters to ensure no bad values make it through (e.g. negative offset values).
-
Trevor Norris authored
Improvements: * floating point operations are approx 4x's faster * Now write quiet NaN's * all read/write on floating point now done in C, so no more need for lib/buffer_ieee754.js * float values have more accurate min/max value checks * add additional benchmarks for buffers read/write * created benchmark/_bench_timer.js which is a simple library that can be included into any benchmark and provides an intelligent tracker for sync and async tests * add benchmarks for DataView set methods * add checks and tests to make sure offset is greater than 0
-
Alexandr Emelin authored
IncomingMessage function contained duplicate initialization of this._pendings. Line with one of those expressions has been removed.
-
- Jan 16, 2013
-
-
Mathias Bynens authored
This update adds support for RFC 3490 separators for improved compatibility with web browsers.
-
Ben Noordhuis authored
See http://code.google.com/p/v8/issues/detail?id=2493 for details. Once the patch lands in upstream V8, this commit can be reverted.
-
- Jan 15, 2013
-
-
Fedor Indutny authored
* Allow wildcards only in left-most part of hostname identifier. * Do not match CN if altnames are present
-
isaacs authored
There was previously an assert() in there, but this part of the code is so high-volume that the added cost made a measurable dent in http_simple. Just checking inline is fine, though, and prevents a lot of potential hazards.
-
isaacs authored
Say that a stream's current read queue has 101 bytes in it, and the underlying resource has ended (ie, reached EOF). If you do something like this: stream.read(100); // leave a byte behind stream.read(0); // read(0) for some reason then the read(0) will get 0 from the howMuchToRead function. Since the stream was ended, this was incorrectly treating the 0 as a "there is no more in the buffer", and emitting 'end' before that last byte was read. Why have the read(0) in the first place? We do this in some cases to trigger the last few bytes of a net socket (such as a child process's stdio pipes). This was causing issues when piping a `git archive` job to a file: the resulting tarball was incomplete, because it occasionally was not getting the last chunk. -
Bert Belder authored
-
Fedor Indutny authored
see #4592
-
- Jan 14, 2013
-
-
Ben Noordhuis authored
-
yangguo@chromium.org authored
Raspberry Pi is an example. BUG=v8:2393 Review URL: https://chromiumcodereview.appspot.com/11570061 Patch from Chi-Thanh Christopher Nguyen <nguyenchithanh@gmail.com>. git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@13232 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 This is a backport of v8/v8@44419ad089b729a1aab4a5f27c0833e2ce69d28b.
-
- Jan 13, 2013
-
-
Ben Noordhuis authored
-
Nathan Rajlich authored
-
Felix Böhm authored
Closes #3564. Closes #4578.
-
- Jan 12, 2013
-
-
Scott Blomquist authored
-
Ben Noordhuis authored
Remove compiler switches from $(TOPLEVEL)/deps/v8/build/common.gypi, we set them globally in $(TOPLEVEL)/common.gypi. Commit 7b4d95a9 introduced the switches again, resulting in V8 getting built without any optimizations. This commit is essentially a rehash of commit 4b8629db.
-
Fedor Indutny authored
-
isaacs authored
-
isaacs authored
-
isaacs authored
* V8: update to 3.15.11.5 * node: remove ev-emul.h (Ben Noordhuis) * path: make basename and extname ignore trailing slashes (Bert Belder) * typed arrays: fix sunos signed/unsigned char issue (Ben Noordhuis) * child_process: Fix {stdio:'inherit'} regression (Ben Noordhuis) * child_process: Fix pipe() from child stdio streams (Maciej Małecki) * child_process: make fork() execPath configurable (Bradley Meck) * stream: Add readable.push(chunk) method (isaacs) * dtrace: x64 ustack helper (Fedor Indutny) * repl: fix floating point number parsing (Nirk Niggler) * repl: allow overriding builtins (Ben Noordhuis) * net: add localAddress and localPort to Socket (James Hight) * fs: make pool size coincide with ReadStream bufferSize (Shigeki Ohtsu) * typed arrays: implement load and store swizzling (Dean McNamee) * windows: fix perfctr crash on XP and 2003 (Scott Blomquist) * dgram: fix double implicit bind error (Ben Noordhuis) -
isaacs authored
Conflicts: AUTHORS ChangeLog Makefile src/node_version.h
-
Bert Belder authored
Fixes #4536
-
Ben Noordhuis authored
The int8_t and uint8_t typedefs on sunos/smartos depend on a number of compiler directives. Avoid ambiguity and specify signed and unsigned char explicitly. Fixes the following build error: ../src/stream_wrap.cc: In static member function 'static void* node::WriteWrap::operator new(size_t)': ../src/stream_wrap.cc:70:49: warning: no return statement in function returning non-void [-Wreturn-type] In file included from ../src/v8_typed_array.cc:26:0: ../src/v8_typed_array_bswap.h: In function 'T v8_typed_array::SwapBytes(T) [with T = signed char]': ../src/v8_typed_array_bswap.h:150:23: instantiated from 'T v8_typed_array::LoadAndSwapBytes(void*) [with T = signed char]' ../src/v8_typed_array.cc:694:7: instantiated from 'static v8::Handle<v8::Value> {anonymous}::DataView::getGeneric(const v8::Arguments&) [with T = signed char]' ../src/v8_typed_array.cc:738:40: instantiated from here ../src/v8_typed_array_bswap.h:125:16: error: size of array is negative -
isaacs authored
-
Fedor Indutny authored
This reverts commit 35a137cf.
-
- Jan 11, 2013
-
-
Fedor Indutny authored
-
Bert Belder authored
It only does the right thing on unix, and the implementation isn't great either. This reverts commit bb1c0398.
-
Ben Noordhuis authored
-
isaacs authored
The better to keep the IncomingMessage class isomorphic and avoid creating additional hidden classes.
-
Andreas Madsen authored
-
Nathan Rajlich authored
v8's common.gypi file expects them to be defined now. Closes #4534.
-
Nathan Rajlich authored
For example, to cross-compile from my OS X laptop for Raspberry Pi, you would do something like: $ make binary BINARYNAME=node-v`python tools/getnodeversion.py`-linux-arm-pi \ DESTCPU=arm CONFIG_FLAGS="--dest-os=linux" -
yangguo@chromium.org authored
Raspberry Pi is an example. BUG=v8:2393 Review URL: https://chromiumcodereview.appspot.com/11570061 Patch from Chi-Thanh Christopher Nguyen <nguyenchithanh@gmail.com>. git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@13232 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 This is a backport of v8/v8@44419ad089b729a1aab4a5f27c0833e2ce69d28b.
-
isaacs authored
-
isaacs authored
-
isaacs authored
-