diff --git a/.gitignore b/.gitignore index bd85513b42..a5dddba7d5 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ tags *.pyc doc/api.xml doc/api.html +doc/changelog.html doc/node.1 node node_g diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000000..bdf4b8a94f --- /dev/null +++ b/AUTHORS @@ -0,0 +1,54 @@ +# Authors ordered by first contribution. + +Ryan Dahl +Urban Hafner +Joshaven Potter +Abe Fettig +Kevin van Zonneveld +Michael Carter +Jeff Smick +Jon Crosby +Felix Geisendörfer +Ray Morgan +Jérémy Lal +Isaac Z. Schlueter +Brandon Beacher +Tim Caswell +Connor Dunn +Johan Sørensen +Friedemann Altrock +Onne Gorter +Rhys Jones +Jan Lehnardt +Simon Willison +Chew Choon Keat +Jed Schmidt +Michaeljohn Clement +Karl Guertin +Xavier Shay +Christopher Lenz +TJ Holowaychuk +Johan Dahlberg +Simon Cornelius P. Umacob +Ryan McGrath +Rasmus Andersson +Micheil Smith +Jonas Pfenniger +Charles Lehner +Elliott Cable +Benjamin Thomas +Vanilla Hsu +Ben Williamson +Joseph Pecoraro +Erich Ocean +Alexis Sellier +Blaine Cook +Standa Opichal +Aaron Heckmann +Mikeal Rogers +Matt Brubeck +Michael Stillwell +Yuichiro MASUI +Mark Hansen +Zoran Tomicic +Jeremy Ashkenas diff --git a/ChangeLog b/ChangeLog index dcd6fd18ac..5389c3c283 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,45 @@ -2010.02.17, Version 0.1.29 +2010.02.22, Version 0.1.30 + + * Major API Changes + + - Promises removed. See + http://groups.google.com/group/nodejs/msg/426f3071f3eec16b + http://groups.google.com/group/nodejs/msg/df199d233ff17efa + The API for fs was + + fs.readdir("/usr").addCallback(function (files) { + puts("/usr files: " + files); + }); + + It is now + + fs.readdir("/usr", function (err, files) { + if (err) throw err; + puts("/usr files: " + files); + }); + + - Synchronous fs operations exposed, use with care. + + - tcp.Connection.prototype.readPause() and readResume() + renamed to pause() and resume() + + - http.ServerResponse.prototype.sendHeader() renamed to + writeHeader(). Now accepts reasonPhrase. + + * Compact garbage on idle. + + * Configurable debug ports, and --debug-brk (Zoran Tomicic) + + * Better command line option parsing (Jeremy Ashkenas) + + * Add fs.chmod (Micheil Smith), fs.lstat (Isaac Z. Schlueter) + + * Fixes to process.mixin (Rasmus Andersson, Benjamin Thomas) + + * Upgrade V8 to 2.1.1 + + +2010.02.17, Version 0.1.29, 87d5e5b316a4276bcf881f176971c1a237dcdc7a * Major API Changes - Remove 'file' module diff --git a/Makefile b/Makefile index 6b4827979f..2776d42507 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ test-debug: all benchmark: all build/default/node benchmark/run.js -doc: doc/node.1 doc/api.html doc/index.html +doc: doc/node.1 doc/api.html doc/index.html doc/changelog.html doc/api.html: doc/api.txt asciidoc --unsafe \ @@ -37,6 +37,11 @@ doc/api.html: doc/api.txt -a linkcss \ -o doc/api.html doc/api.txt +doc/changelog.html: ChangeLog + echo 'Node.js ChangeLog

Node.js ChangeLog

' > doc/changelog.html
+	cat ChangeLog >> doc/changelog.html
+	echo '
' >> doc/changelog.html + doc/api.xml: doc/api.txt asciidoc -b docbook -d manpage -o doc/api.xml doc/api.txt @@ -47,7 +52,7 @@ website-upload: doc scp doc/* ryan@nodejs.org:~/tinyclouds/node/ docclean: - @-rm -f doc/node.1 doc/api.xml doc/api.html + @-rm -f doc/node.1 doc/api.xml doc/api.html doc/changelog.html clean: docclean @$(WAF) clean diff --git a/benchmark/http_simple.js b/benchmark/http_simple.js index 75295affb2..1d758b0328 100644 --- a/benchmark/http_simple.js +++ b/benchmark/http_simple.js @@ -47,7 +47,7 @@ http.createServer(function (req, res) { var content_length = body.length.toString(); - res.sendHeader( status + res.writeHeader( status , { "Content-Type": "text/plain" , "Content-Length": content_length } diff --git a/benchmark/static_http_server.js b/benchmark/static_http_server.js index 3e04ae59e7..5bc48120f6 100644 --- a/benchmark/static_http_server.js +++ b/benchmark/static_http_server.js @@ -16,7 +16,7 @@ for (var i = 0; i < bytes; i++) { } var server = http.createServer(function (req, res) { - res.sendHeader(200, { + res.writeHeader(200, { "Content-Type": "text/plain", "Content-Length": body.length }); diff --git a/deps/v8/AUTHORS b/deps/v8/AUTHORS index 5d712fc271..8b0db5c376 100644 --- a/deps/v8/AUTHORS +++ b/deps/v8/AUTHORS @@ -4,6 +4,7 @@ # Name/Organization Google Inc. +Sigma Designs Inc. Alexander Botero-Lowry Alexandre Vassalotti @@ -22,3 +23,4 @@ Rene Rebe Ryan Dahl Patrick Gansterer Subrato K De +Dineel D Sule diff --git a/deps/v8/ChangeLog b/deps/v8/ChangeLog index 29ecccd7d8..8d4cd22339 100644 --- a/deps/v8/ChangeLog +++ b/deps/v8/ChangeLog @@ -1,3 +1,17 @@ +2010-02-19: Version 2.1.1 + + [ES5] Implemented Object.defineProperty. + + Improved profiler support. + + Added SetPrototype method in the public V8 API. + + Added GetScriptOrigin and GetScriptLineNumber methods to Function + objects in the API. + + Performance improvements on all platforms. + + 2010-02-03: Version 2.1.0 Values are now always wrapped in objects when used as a receiver. diff --git a/deps/v8/SConstruct b/deps/v8/SConstruct index 98fc22fba1..5483663fd6 100644 --- a/deps/v8/SConstruct +++ b/deps/v8/SConstruct @@ -191,6 +191,17 @@ LIBRARY_FLAGS = { 'armvariant:arm': { 'CPPDEFINES': ['V8_ARM_VARIANT_ARM'] }, + 'arch:mips': { + 'CPPDEFINES': ['V8_TARGET_ARCH_MIPS'], + 'simulator:none': { + 'CCFLAGS': ['-EL', '-mips32r2', '-Wa,-mips32r2', '-fno-inline'], + 'LDFLAGS': ['-EL'] + } + }, + 'simulator:mips': { + 'CCFLAGS': ['-m32'], + 'LINKFLAGS': ['-m32'] + }, 'arch:x64': { 'CPPDEFINES': ['V8_TARGET_ARCH_X64'], 'CCFLAGS': ['-m64'], @@ -292,6 +303,9 @@ V8_EXTRA_FLAGS = { # used by the arm simulator. 'WARNINGFLAGS': ['/wd4996'] }, + 'arch:mips': { + 'CPPDEFINES': ['V8_TARGET_ARCH_MIPS'], + }, 'disassembler:on': { 'CPPDEFINES': ['ENABLE_DISASSEMBLER'] } @@ -457,10 +471,22 @@ SAMPLE_FLAGS = { 'CCFLAGS': ['-m64'], 'LINKFLAGS': ['-m64'] }, + 'arch:mips': { + 'CPPDEFINES': ['V8_TARGET_ARCH_MIPS'], + 'simulator:none': { + 'CCFLAGS': ['-EL', '-mips32r2', '-Wa,-mips32r2', '-fno-inline'], + 'LINKFLAGS': ['-EL'], + 'LDFLAGS': ['-EL'] + } + }, 'simulator:arm': { 'CCFLAGS': ['-m32'], 'LINKFLAGS': ['-m32'] }, + 'simulator:mips': { + 'CCFLAGS': ['-m32'], + 'LINKFLAGS': ['-m32'] + }, 'mode:release': { 'CCFLAGS': ['-O2'] }, @@ -601,7 +627,7 @@ SIMPLE_OPTIONS = { 'help': 'the os to build for (' + OS_GUESS + ')' }, 'arch': { - 'values':['arm', 'ia32', 'x64'], + 'values':['arm', 'ia32', 'x64', 'mips'], 'default': ARCH_GUESS, 'help': 'the architecture to build for (' + ARCH_GUESS + ')' }, @@ -651,7 +677,7 @@ SIMPLE_OPTIONS = { 'help': 'use Microsoft Visual C++ link-time code generation' }, 'simulator': { - 'values': ['arm', 'none'], + 'values': ['arm', 'mips', 'none'], 'default': 'none', 'help': 'build with simulator' }, @@ -871,6 +897,11 @@ def PostprocessOptions(options): options['armvariant'] = 'arm' if (options['armvariant'] != 'none' and options['arch'] != 'arm'): options['armvariant'] = 'none' + if options['arch'] == 'mips': + if ('regexp' in ARGUMENTS) and options['regexp'] == 'native': + # Print a warning if native regexp is specified for mips + print "Warning: forcing regexp to interpreted for mips" + options['regexp'] = 'interpreted' def ParseEnvOverrides(arg, imports): diff --git a/deps/v8/include/v8.h b/deps/v8/include/v8.h index 6125286e80..13f8191703 100644 --- a/deps/v8/include/v8.h +++ b/deps/v8/include/v8.h @@ -534,51 +534,76 @@ class V8EXPORT ScriptOrigin { class V8EXPORT Script { public: - /** - * Compiles the specified script. The ScriptOrigin* and ScriptData* - * parameters are owned by the caller of Script::Compile. No - * references to these objects are kept after compilation finishes. - * - * The script object returned is context independent; when run it - * will use the currently entered context. - */ - static Local