Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
de92a66
test: move dns test to test/internet
bnoordhuis Mar 25, 2016
c169ac6
querystring: don't stringify bad surrogate pair
mscdex Mar 23, 2016
8b2e437
test: fix flaky test-net-socket-timeout
mscdex Mar 24, 2016
41feaa8
crypto: improve error messages
thefourtheye Sep 28, 2015
1213535
doc: fix doc for Buffer.readInt32LE()
ghaiklor Mar 24, 2016
a6b9b55
child_process: refactor self=this in socket_list
benjamingr Mar 23, 2016
a15906c
net: refactor self=this to arrow functions
benjamingr Mar 23, 2016
26a4a4b
build: add missing `openssl_fips%` to common.gypi
indutny Mar 27, 2016
afd821a
buffer: faster case for create buffer from empty string
JacksonTian Dec 18, 2015
293fd04
buffer: make byteLength work with ArrayBuffer & DataView
JacksonTian Feb 16, 2016
089c6a4
http: speed up checkIsHttpToken
JacksonTian Jan 21, 2016
4bc1ccc
dgram: pass null as error on successful send()
cjihrig Mar 28, 2016
41f333e
src,http_parser: remove KickNextTick call
trevnorris Mar 11, 2016
2dadd89
src: reword command and add ternary
trevnorris Mar 23, 2016
f9938b6
async_wrap: setupHooks now accepts object
trevnorris Feb 22, 2016
20337ad
async_wrap: notify post if intercepted exception
trevnorris Feb 23, 2016
a17200b
async_wrap: don't abort on callback exception
trevnorris Mar 14, 2016
9fa25c8
timers: fixing API refs to use safe internal refs
getify Aug 22, 2015
f0367d0
test: confirm globals not used internally
Trott Mar 24, 2016
b1c0587
test: exclude new fs watch test for AIX
mhdawson Mar 28, 2016
c7138e9
win,build: build and test add-ons on test-ci
Mar 24, 2016
89abe86
Revert "stream: emit 'pause' on nextTick"
evanlucas Mar 29, 2016
b6475b9
Revert "tty: don't read from console stream upon creation"
evanlucas Mar 29, 2016
ccd8188
etw,build: always generate .rc and .h files
joaocgreis Mar 11, 2016
d38503a
module: prioritize current dir for local lookups
phillipj Mar 13, 2016
652782d
test: update test-repl-require for local paths
Mar 13, 2016
82fdaae
test: remove the use of curl in the test suite
santigimeno Mar 16, 2016
a4c4a85
build: enable compilation for linuxOne
mhdawson Mar 28, 2016
761787b
test: add test for piping large input from stdin
addaleax Mar 29, 2016
05b3a0b
tools: fix json doc generation
firedfox Mar 29, 2016
ef6c4c6
test: fix flaky test-repl
mscdex Mar 25, 2016
bb28770
governance: remove target size for CTC
Trott Mar 23, 2016
4039ef1
doc: remove redundant parameter comments from fs
firedfox Mar 30, 2016
ea47cc4
test: mitigate flaky test-https-agent
Trott Mar 28, 2016
21d66d6
lib: remove bootstrap global context indirection
Fishrock123 Mar 23, 2016
33c27f8
test: add known_issues test for GH-2148
Trott Mar 27, 2016
54a5287
zlib: fix gzip member head/buffer boundary issue
addaleax Mar 24, 2016
1845c4f
etw: add event messages
joaocgreis Mar 21, 2016
d6c9f64
test: stdin is not always a net.Socket
Fishrock123 Mar 28, 2016
cf94929
assert: Check typed array view type in deepEqual
addaleax Mar 26, 2016
854f758
test: fix offending max-len linter error
thefourtheye Mar 31, 2016
0551021
2016-03-31, Version v4.4.2 'Argon' (LTS)
Mar 30, 2016
a20c700
test: ensure _handle property existence
Trott Mar 26, 2016
f1fc698
tools: remove obsolete lint config file
Trott Mar 30, 2016
64c87e2
2016-03-31 Version 5.10.0 (Stable) Release
evanlucas Mar 31, 2016
4882ec4
2016-03-31 Version 0.12.13 (LTS) Release
rvagg Mar 31, 2016
5fc6938
2016-03-31 Version 0.10.44 (Maintenance) Release
rvagg Mar 31, 2016
dabe1d5
http: Corrects IPv6 address in Host header
mpotra Feb 19, 2016
8dcb82d
build: introduce ci targets for lint/benchmark
jbergstroem Mar 27, 2016
ec49fc8
net: improve socket.write() error message
phillipj Mar 31, 2016
d939152
doc: fix typo in fs writeSync param list
firedfox Apr 1, 2016
39de601
net: support DNS hints in createConnection()
cjihrig Apr 1, 2016
0928584
deps: upgrade npm to 3.8.3
othiym23 Mar 30, 2016
0dcb026
buffer: don't set `kNoZeroFill` flag in allocUnsafe
vkurchatkin Apr 1, 2016
d7987d9
meta: add "joining a wg" section to WORKING_GROUPS.md
mcollina Feb 29, 2016
82c2996
doc: refine child_process detach behaviour
eljefedelrodeodeljefe Feb 19, 2016
8d1d3bb
test: refactor http-end-throw-socket-handling
santigimeno Mar 12, 2016
33003a5
doc: consolidate timers docs in timers.markdown
bengl Mar 21, 2016
c06824b
doc: clarify that __dirname is module local
jasnell Apr 2, 2016
63e743d
doc: minor argument formatting in stream.markdown
jasnell Apr 2, 2016
8832be4
tools: remove disabling of already-disabled rule
Trott Apr 2, 2016
ba0b769
doc: add 'Command Line Options' to 'View on single page'
firedfox Apr 2, 2016
6fd26dc
doc: clarify stdout/stderr arguments to callback
jasnell Apr 2, 2016
64bf4b3
doc: document unspecified behavior for buf.write* methods
jasnell Mar 27, 2016
f739a12
test: fix error message checks in test-module-loading
jasnell Apr 1, 2016
8d96300
test: fix test-dns.js flakiness
Trott Apr 1, 2016
539cede
doc: note assert.throws() pitfall
Trott Apr 3, 2016
c60faf6
test: fix flaky test-net-socket-timeout-unref
Trott Mar 29, 2016
263222d
test: fix pummel test failures
Trott Apr 2, 2016
68bd702
doc: use HTTPS for links where possible
Trott Apr 2, 2016
3072546
path: fix win32.isAbsolute() inconsistency
mscdex Apr 3, 2016
3df16b1
test: explicitly set global in test-repl
Trott Apr 3, 2016
858b4b3
test: make arch available in status files
santigimeno Apr 1, 2016
ae2be27
test: be explicit about polluting of `global`
Trott Apr 2, 2016
c864edf
Merge branch 'nodejs/master' into chakracore-master
Apr 5, 2016
0cd4cb8
gyp: revert incorrect quote_cmd fix
Apr 4, 2016
313cec1
chakrashim: add test/addons dependency stubs
Apr 4, 2016
53c2d8e
test: skip null-buffer-neuter on node-chakracore
Apr 6, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ ipch/
/dist-osx
/npm.wxs
/tools/msvs/npm.wixobj
/tools/msvs/genfiles/
/tools/osx-pkg.pmdoc/index.xml
/test/addons/??_*/
email.md
Expand Down
165 changes: 165 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions GOVERNANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,9 @@ A guide for Collaborators is maintained in

## CTC Membership

CTC seats are not time-limited. There is no fixed size of the CTC.
However, the expected target is between 6 and 12, to ensure adequate
coverage of important areas of expertise, balanced with the ability to
make decisions efficiently.
CTC seats are not time-limited. There is no fixed size of the CTC. The CTC
should be of such a size as to ensure adequate coverage of important areas of
expertise balanced with the ability to make decisions efficiently.

There is no specific set of requirements or qualifications for CTC
membership beyond these rules.
Expand Down
14 changes: 13 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -340,12 +340,20 @@ else
ifeq ($(DESTCPU),ppc)
ARCH=ppc
else
ifeq ($(DESTCPU),s390)
ARCH=s390
else
ifeq ($(DESTCPU),s390x)
ARCH=s390x
else
ARCH=x86
endif
endif
endif
endif
endif
endif
endif

# node and v8 use different arch names (e.g. node 'x86' vs v8 'ia32').
# pass the proper v8 arch name to $V8_ARCH based on user-specified $DESTCPU.
Expand Down Expand Up @@ -584,6 +592,8 @@ bench-all: bench bench-misc bench-array bench-buffer bench-url bench-events benc

bench: bench-net bench-http bench-fs bench-tls

bench-ci: bench

bench-http-simple:
benchmark/http_simple_bench.sh

Expand Down Expand Up @@ -630,10 +640,12 @@ lint:
"$ git clone https://github.com/nodejs/node.git"
endif

lint-ci: lint

.PHONY: lint cpplint jslint bench clean docopen docclean doc dist distclean \
check uninstall install install-includes install-bin all staticlib \
dynamiclib test test-all test-addons build-addons website-upload pkg \
blog blogclean tar binary release-only bench-http-simple bench-idle \
bench-all bench bench-misc bench-array bench-buffer bench-net \
bench-http bench-fs bench-tls cctest run-ci test-v8 test-v8-intl \
test-v8-benchmarks test-v8-all v8
test-v8-benchmarks test-v8-all v8 lint-ci bench-ci
5 changes: 5 additions & 0 deletions WORKING_GROUPS.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,11 @@ It's responsibilities are:
* Working with the Build Working Group to improve continuous integration.
* Improving tooling for testing.

## Joining a WG

To find out how to join a working group, consult the GOVERNANCE.md in
the working group's repository, or simply open an issue there.

## Starting a WG

A Working Group is established by first defining a charter that can be
Expand Down
15 changes: 10 additions & 5 deletions benchmark/buffers/buffer_zero.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,21 @@
const common = require('../common.js');

const bench = common.createBenchmark(main, {
n: [1024]
n: [1024],
type: ['buffer', 'string']
});

const zero = Buffer.alloc(0);
const zeroBuffer = Buffer.alloc(0);
const zeroString = '';

function main(conf) {
var n = +conf.n;
bench.start();
for (let i = 0; i < n * 1024; i++) {
Buffer.from(zero);
}

if (conf.type === 'buffer')
for (let i = 0; i < n * 1024; i++) Buffer.from(zeroBuffer);
else if (conf.type === 'string')
for (let i = 0; i < n * 1024; i++) Buffer.from(zeroString);

bench.end(n);
}
52 changes: 52 additions & 0 deletions benchmark/http/check_is_http_token.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
'use strict';

const common = require('../common.js');
const _checkIsHttpToken = require('_http_common')._checkIsHttpToken;

const bench = common.createBenchmark(main, {
key: [
'TCN',
'ETag',
'date',
'Vary',
'server',
'Server',
'status',
'version',
'Expires',
'alt-svc',
'location',
'Connection',
'Keep-Alive',
'content-type',
'Content-Type',
'Cache-Control',
'Last-Modified',
'Accept-Ranges',
'content-length',
'x-frame-options',
'x-xss-protection',
'Content-Encoding',
'Content-Location',
'Transfer-Encoding',
'alternate-protocol',
':', // invalid input
'@@',
'中文呢', // unicode
'((((())))', // invalid
':alternate-protocol', // fast bailout
'alternate-protocol:' // slow bailout
],
n: [1e6],
});

function main(conf) {
var n = +conf.n;
var key = conf.key;

bench.start();
for (var i = 0; i < n; i++) {
_checkIsHttpToken(key);
}
bench.end(n);
}
10 changes: 10 additions & 0 deletions common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
'node_tag%': '',
'uv_library%': 'static_library',

'openssl_fips%': '',

# Default to -O0 for debug builds.
'v8_optimized_debug%': 0,

Expand Down Expand Up @@ -300,6 +302,14 @@
'cflags': [ '-m64', '-mminimal-toc' ],
'ldflags': [ '-m64' ],
}],
[ 'target_arch=="s390"', {
'cflags': [ '-m31' ],
'ldflags': [ '-m31' ],
}],
[ 'target_arch=="s390x"', {
'cflags': [ '-m64' ],
'ldflags': [ '-m64' ],
}],
[ 'OS=="solaris"', {
'cflags': [ '-pthreads' ],
'ldflags': [ '-pthreads' ],
Expand Down
23 changes: 5 additions & 18 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ parser = optparse.OptionParser()
valid_os = ('win', 'mac', 'solaris', 'freebsd', 'openbsd', 'linux',
'android', 'aix')
valid_arch = ('arm', 'arm64', 'ia32', 'mips', 'mipsel', 'ppc', 'ppc64', 'x32',
'x64', 'x86')
'x64', 'x86', 's390', 's390x')
valid_arm_float_abi = ('soft', 'softfp', 'hard')
valid_arm_fpu = ('vfp', 'vfpv3', 'vfpv3-d16', 'neon')
valid_mips_arch = ('loongson', 'r1', 'r2', 'r6', 'rx')
Expand Down Expand Up @@ -616,14 +616,17 @@ def host_arch_cc():
'__PPC64__' : 'ppc64',
'__PPC__' : 'ppc',
'__x86_64__' : 'x64',
'__s390__' : 's390',
'__s390x__' : 's390x',
}

rtn = 'ia32' # default

for i in matchup:
if i in k and k[i] != '0':
rtn = matchup[i]
break
if rtn != 's390':
break

return rtn

Expand Down Expand Up @@ -855,21 +858,6 @@ def configure_static(o):
o['libraries'] += ['-static-libasan']


def configure_winsdk(o):
if flavor != 'win':
return

winsdk_dir = os.environ.get('WindowsSdkDir')

if winsdk_dir and os.path.isfile(winsdk_dir + '\\bin\\ctrpp.exe'):
print('Found ctrpp in WinSDK--will build generated files '
'into tools/msvs/genfiles.')
o['variables']['node_has_winsdk'] = 'true'
return

print('ctrpp not found in WinSDK path--using pre-gen files '
'from tools/msvs/genfiles.')

def write(filename, data):
filename = os.path.join(root_dir, filename)
print 'creating ', filename
Expand Down Expand Up @@ -1151,7 +1139,6 @@ configure_library('http_parser', output)
configure_library('libuv', output)
configure_v8(output)
configure_openssl(output)
configure_winsdk(output)
configure_intl(output)
configure_static(output)
configure_engine(output)
Expand Down
62 changes: 62 additions & 0 deletions deps/chakrashim/include/v8-profiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@

namespace v8 {

struct HeapStatsUpdate;

// NOT IMPLEMENTED
class V8_EXPORT CpuProfiler {
public:
Expand All @@ -39,11 +41,63 @@ class V8_EXPORT CpuProfiler {
void SetIdle(bool is_idle) {}
};

class V8_EXPORT OutputStream { // NOLINT
public:
enum WriteResult {
kContinue = 0,
kAbort = 1
};
virtual ~OutputStream() {}
virtual void EndOfStream() = 0;
virtual int GetChunkSize() { return 1024; }
virtual WriteResult WriteAsciiChunk(char* data, int size) = 0;
virtual WriteResult WriteHeapStatsChunk(HeapStatsUpdate* data, int count) {
return kAbort;
}
};

// NOT IMPLEMENTED
class V8_EXPORT HeapSnapshot {
public:
enum SerializationFormat {
kJSON = 0 // See format description near 'Serialize' method.
};

void Delete() { delete this; }
void Serialize(OutputStream* stream,
SerializationFormat format = kJSON) const {}
};

class V8_EXPORT ActivityControl { // NOLINT
public:
enum ControlOption {
kContinue = 0,
kAbort = 1
};
virtual ~ActivityControl() {}
virtual ControlOption ReportProgressValue(int done, int total) = 0;
};

// NOT IMPLEMENTED
class V8_EXPORT HeapProfiler {
public:
typedef RetainedObjectInfo *(*WrapperInfoCallback)(
uint16_t class_id, Handle<Value> wrapper);

class ObjectNameResolver {
public:
virtual const char* GetName(Local<Object> object) = 0;

protected:
virtual ~ObjectNameResolver() {}
};

const HeapSnapshot* TakeHeapSnapshot(
ActivityControl* control = NULL,
ObjectNameResolver* global_object_name_resolver = NULL) {
return new HeapSnapshot();
}

void SetWrapperClassInfoProvider(
uint16_t class_id, WrapperInfoCallback callback) {}
void StartTrackingHeapObjects(bool track_allocations = false) {}
Expand All @@ -61,4 +115,12 @@ class V8_EXPORT RetainedObjectInfo {
virtual intptr_t GetSizeInBytes() { return 0; }
};

struct HeapStatsUpdate {
HeapStatsUpdate(uint32_t index, uint32_t count, uint32_t size)
: index(index), count(count), size(size) { }
uint32_t index; // Index of the time interval that was changed.
uint32_t count; // New value of count field for the interval with this index.
uint32_t size; // New value of size field for the interval with this index.
};

} // namespace v8
6 changes: 6 additions & 0 deletions deps/chakrashim/include/v8.h
Original file line number Diff line number Diff line change
Expand Up @@ -2167,6 +2167,11 @@ class V8_EXPORT Isolate {
Scope& operator=(const Scope&);
};

enum GarbageCollectionType {
kFullGarbageCollection,
kMinorGarbageCollection
};

static Isolate* New(const CreateParams& params);
static Isolate* New();
static Isolate* GetCurrent();
Expand Down Expand Up @@ -2215,6 +2220,7 @@ class V8_EXPORT Isolate {

void CancelTerminateExecution();
void TerminateExecution();
void RequestGarbageCollectionForTesting(GarbageCollectionType type);

void SetCounterFunction(CounterLookupCallback);
void SetCreateHistogramFunction(CreateHistogramCallback);
Expand Down
4 changes: 4 additions & 0 deletions deps/chakrashim/src/v8isolate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ void Isolate::TerminateExecution() {
jsrt::IsolateShim::FromIsolate(this)->DisableExecution();
}

void Isolate::RequestGarbageCollectionForTesting(GarbageCollectionType type) {
JsCollectGarbage(jsrt::IsolateShim::FromIsolate(this)->GetRuntimeHandle());
}

void Isolate::SetCounterFunction(CounterLookupCallback) {
CHAKRA_UNIMPLEMENTED();
}
Expand Down
2 changes: 2 additions & 0 deletions deps/npm/.mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Forbes Lindesay <forbes@lindesay.co.uk>
Forrest L Norvell <ogd@aoaioxxysz.net> <forrest@npmjs.com>
Gabriel Barros <descartavel1@gmail.com>
Geoff Flarity <geoff.flarity@gmail.com> <gflarity@raptvm-x02.(none)>
Ifeanyi Oraelosi <ifeanyioraelosi@gmail.com>
Isaac Z. Schlueter <i@izs.me> <i@foohack.com>
Isaac Z. Schlueter <i@izs.me> isaacs <i@izs.me>
Jake Verbaten <raynos2@gmail.com>
Expand Down Expand Up @@ -59,3 +60,4 @@ Will Elwood <w.elwood08@gmail.com>
Wout Mertens <Wout.Mertens@gmail.com>
Yeonghoon Park <sola92@gmail.com>
Zeke Sikelianos <zeke@sikelianos.com>
Zoujie Wzj <zoujie.wzj@alibaba-inc.com>
1 change: 1 addition & 0 deletions deps/npm/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ npm-debug.log
/test/packages/npm-test-depends-on-spark/which-spark.log
/test/packages/test-package/random-data.txt
/test/root
/test/npm_cache
node_modules/marked
node_modules/ronn
node_modules/tap
Expand Down
2 changes: 1 addition & 1 deletion deps/npm/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ before_install:
- "node . install -g ."
- "mkdir -p /var/run/couchdb"
sudo: false
script: "npm run-script test-all"
script: "npm test"
notifications:
slack: npm-inc:kRqQjto7YbINqHPb1X6nS3g8
Loading