Ben Noordhuis
51f6e6a9b3
src, test: downgrade to v8 3.14 api
12 years ago
Ben Noordhuis
7788a6bf85
src: pass node_isolate to Undefined()
12 years ago
Ben Noordhuis
c7d7ae1fe2
src: pass node_isolate to Null()
12 years ago
Ben Noordhuis
01c3d0aa88
src: pass node_isolate to Local<>::New
12 years ago
Ben Noordhuis
6573fc3502
src: pass node_isolate to Integer::New
12 years ago
Ben Noordhuis
412b3cee05
src: pass node_isolate to String::Empty
12 years ago
Ben Noordhuis
5664dd2fc1
src: use static_cast where appropriate
Use static_cast instead of reinterpret_cast when casting from void*
to another type.
This is mostly an aesthetic change but may help catch bugs when the
affected code is modified.
12 years ago
Fedor Indutny
5e57bcc3ce
bindings: update to new v8 apis
GetPointerFromInternalField() is deprecated now, we should use
GetAlignedPointerFromInternalField().
12 years ago
Ben Noordhuis
db5c26e3b5
fs: fix assert in fs.watch()
Fix the following error:
FSEventWrap: Aborting due to unwrap failure at ../../src/fs_event_wrap.cc:169
It's possible and legal for a handle to be closed twice. HandleWrap::Close()
deals with that by ignoring the second close. Now FSEventWrap::Close() does
too.
Fixes #3997 .
13 years ago
Ben Noordhuis
eef57dddf4
core: use proper #include directives
13 years ago
Ben Noordhuis
039fac633e
deps: upgrade libuv to a478847
The event loop's reference counting scheme in this version of libuv has changed.
Update the libuv bindings to reflect that fact.
13 years ago
Oleg Efimov
45de259b43
Make UNWRAP macro generic.
13 years ago
isaacs
a26bee8fa1
MakeCallback: Consistent symbol usage
13 years ago
ssuda
249c3c165a
Avoiding unnecessary ToString() calls
String::Utf8Value and String::AsciiValue constructors take Handle<Value>
So no need to convert to Handle<String>
13 years ago
Ben Noordhuis
ff4a9d381d
core: use proper #include directives
13 years ago
Ben Noordhuis
74a8215a86
Revert support for isolates.
It was decided that the performance benefits that isolates offer (faster spin-up
times for worker processes, faster inter-worker communication, possibly a lower
memory footprint) are not actual bottlenecks for most people and do not outweigh
the potential stability issues and intrusive changes to the code base that
first-class support for isolates requires.
Hence, this commit backs out all isolates-related changes.
Good bye, isolates. We hardly knew ye.
13 years ago
Ryan Dahl
20ba454ef9
Add node::Loop() and don't inc node_isolate.h in *.cc
node::Loop() replaces the NODE_LOOP macro. This avoids hitting
v8::Isolate::GetCurrent() for each loop lookup when HAVE_ISOLATE==0
13 years ago
Ryan Dahl
f168f7d702
Remove node_isolate.h from node.h
13 years ago
Ben Noordhuis
356992fe4d
isolates: isolate-ify the main loop
13 years ago
Ryan Dahl
9d792f3183
Add node::Loop() and don't inc node_isolate.h in *.cc
node::Loop() replaces the NODE_LOOP macro. This avoids hitting
v8::Isolate::GetCurrent() for each loop lookup when HAVE_ISOLATE==0
13 years ago
Ryan Dahl
87bb848268
Remove node_isolate.h from node.h
13 years ago
Ben Noordhuis
c3346f6760
isolates: isolate-ify the main loop
13 years ago
Ben Noordhuis
22c2c34952
fs: fix fs.watch() segmentation fault
The binding layer failed to initialize the event string if both UV_RENAME and
UV_CHANGE were set.
Fixes #2287 .
13 years ago
Ben Noordhuis
8dd4fcbe8f
fs: don't close uninitialized fs.watch handle
Makes uv_close() assert because the uv_fs_event_t struct contains garbage.
13 years ago
Ben Noordhuis
cdcb1118c8
Remove stray NODE_MODULE() semi-colons.
13 years ago
Igor Zinkovsky
1a9286c6e9
update fs_event_wrap.cc to work with new uv_fs_event_init api
13 years ago
Bert Belder
189dd8f803
Fix line endings and trailing whitespace
13 years ago
Ryan Dahl
60818b957c
Add missing copyright headers
13 years ago
Ryan Dahl
6cc42927d8
Display sys_errno when UV_UNKNOWN is returned
13 years ago
Igor Zinkovsky
8fe5712477
fs watcher binding
14 years ago