<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/node.git/src/node_wrap.h, branch move-debugger-tests</title>
<subtitle>github.com: joyent/node.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/'/>
<entry>
<title>src: shorten Object{Wrap,Unwrap}</title>
<updated>2013-10-29T22:09:44+00:00</updated>
<author>
<name>Trevor Norris</name>
<email>trev.norris@gmail.com</email>
</author>
<published>2013-10-29T20:23:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=613d76ef6a00ec091367de1e63bc51e3ab672cbd'/>
<id>613d76ef6a00ec091367de1e63bc51e3ab672cbd</id>
<content type='text'>
Going back to the original names of Wrap/Unwrap now that most all the
class members that duplicate the name and functionality have been
removed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Going back to the original names of Wrap/Unwrap now that most all the
class members that duplicate the name and functionality have been
removed.
</pre>
</div>
</content>
</entry>
<entry>
<title>src: don't use class specific Unwrap methods</title>
<updated>2013-10-29T22:09:44+00:00</updated>
<author>
<name>Trevor Norris</name>
<email>trev.norris@gmail.com</email>
</author>
<published>2013-10-29T20:09:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=f2e3be53bc33fc9269c248cec4ac26d6ec9054f7'/>
<id>f2e3be53bc33fc9269c248cec4ac26d6ec9054f7</id>
<content type='text'>
Instead use the template functions in util.h.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead use the template functions in util.h.
</pre>
</div>
</content>
</entry>
<entry>
<title>src: add multi-context support</title>
<updated>2013-09-06T03:51:42+00:00</updated>
<author>
<name>Ben Noordhuis</name>
<email>info@bnoordhuis.nl</email>
</author>
<published>2013-08-10T22:26:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=756b6222956b5d25b2e7db81f4e79033a3a4d20e'/>
<id>756b6222956b5d25b2e7db81f4e79033a3a4d20e</id>
<content type='text'>
This commit makes it possible to use multiple V8 execution contexts
within a single event loop.  Put another way, handle and request wrap
objects now "remember" the context they belong to and switch back to
that context when the time comes to call into JS land.

This could have been done in a quick and hacky way by calling
v8::Object::GetCreationContext() on the wrap object right before
making a callback but that leaves a fairly wide margin for bugs.

Instead, we make the context explicit through a new Environment class
that encapsulates everything (or almost everything) that belongs to
the context.  Variables that used to be a static or a global are now
members of the aforementioned class.  An additional benefit is that
this approach should make it relatively straightforward to add full
isolate support in due course.

There is no JavaScript API yet but that will be added in the near
future.

This work was graciously sponsored by GitHub, Inc.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit makes it possible to use multiple V8 execution contexts
within a single event loop.  Put another way, handle and request wrap
objects now "remember" the context they belong to and switch back to
that context when the time comes to call into JS land.

This could have been done in a quick and hacky way by calling
v8::Object::GetCreationContext() on the wrap object right before
making a callback but that leaves a fairly wide margin for bugs.

Instead, we make the context explicit through a new Environment class
that encapsulates everything (or almost everything) that belongs to
the context.  Variables that used to be a static or a global are now
members of the aforementioned class.  An additional benefit is that
this approach should make it relatively straightforward to add full
isolate support in due course.

There is no JavaScript API yet but that will be added in the near
future.

This work was graciously sponsored by GitHub, Inc.
</pre>
</div>
</content>
</entry>
<entry>
<title>src: constify WITH_GENERIC_STREAM macro</title>
<updated>2013-08-07T12:53:50+00:00</updated>
<author>
<name>Ben Noordhuis</name>
<email>info@bnoordhuis.nl</email>
</author>
<published>2013-08-07T12:53:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=4692b725deaf263aac79e8959ce4ca2a2285f3a0'/>
<id>4692b725deaf263aac79e8959ce4ca2a2285f3a0</id>
<content type='text'>
Make the pointer-to-wrap const (i.e. mutable but not assignable) to
prevent accidental reassignment in the macro body.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make the pointer-to-wrap const (i.e. mutable but not assignable) to
prevent accidental reassignment in the macro body.
</pre>
</div>
</content>
</entry>
<entry>
<title>src: add IsEmpty() check to HasInstance()</title>
<updated>2013-08-07T12:46:55+00:00</updated>
<author>
<name>Ben Noordhuis</name>
<email>info@bnoordhuis.nl</email>
</author>
<published>2013-08-07T12:45:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=c079f6e21044053066a46c0533a6835c094aa706'/>
<id>c079f6e21044053066a46c0533a6835c094aa706</id>
<content type='text'>
The check has virtually zero overhead and it simplifies the call sites
because they were calling IsEmpty() anwyay.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The check has virtually zero overhead and it simplifies the call sites
because they were calling IsEmpty() anwyay.
</pre>
</div>
</content>
</entry>
<entry>
<title>src: fix WITH_GENERIC_STREAM() type check bug</title>
<updated>2013-08-06T13:47:44+00:00</updated>
<author>
<name>Ben Noordhuis</name>
<email>info@bnoordhuis.nl</email>
</author>
<published>2013-08-06T13:47:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=45d056ee69568fd3d5758e3eb2e0252e17063a53'/>
<id>45d056ee69568fd3d5758e3eb2e0252e17063a53</id>
<content type='text'>
The handle object was checked against the wrong constructor template.
Put another way, it was unwrapped as the wrong StreamWrap type.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The handle object was checked against the wrong constructor template.
Put another way, it was unwrapped as the wrong StreamWrap type.
</pre>
</div>
</content>
</entry>
<entry>
<title>src: lint c++ code</title>
<updated>2013-07-31T18:12:06+00:00</updated>
<author>
<name>Fedor Indutny</name>
<email>fedor.indutny@gmail.com</email>
</author>
<published>2013-07-31T18:07:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=8e29ce9f13f7e4b6c0296325287c05f78ff22ce0'/>
<id>8e29ce9f13f7e4b6c0296325287c05f78ff22ce0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>lib, src: upgrade after v8 api change</title>
<updated>2013-07-06T15:44:44+00:00</updated>
<author>
<name>Ben Noordhuis</name>
<email>info@bnoordhuis.nl</email>
</author>
<published>2013-07-03T02:23:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=110a9cd8db515c4d1a9ac5cd8837291da7c6c5ea'/>
<id>110a9cd8db515c4d1a9ac5cd8837291da7c6c5ea</id>
<content type='text'>
This is a big commit that touches just about every file in the src/
directory. The V8 API has changed in significant ways. The most
important changes are:

* Binding functions take a const v8::FunctionCallbackInfo&lt;T&gt;&amp; argument
  rather than a const v8::Arguments&amp; argument.

* Binding functions return void rather than v8::Handle&lt;v8::Value&gt;. The
  return value is returned with the args.GetReturnValue().Set() family
  of functions.

* v8::Persistent&lt;T&gt; no longer derives from v8::Handle&lt;T&gt; and no longer
  allows you to directly dereference the object that the persistent
  handle points to. This means that the common pattern of caching
  oft-used JS values in a persistent handle no longer quite works,
  you first need to reconstruct a v8::Local&lt;T&gt; from the persistent
  handle with the Local&lt;T&gt;::New(isolate, persistent) factory method.

A handful of (internal) convenience classes and functions have been
added to make dealing with the new API a little easier.

The most visible one is node::Cached&lt;T&gt;, which wraps a v8::Persistent&lt;T&gt;
with some template sugar. It can hold arbitrary types but so far it's
exclusively used for v8::Strings (which was by far the most commonly
cached handle type.)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a big commit that touches just about every file in the src/
directory. The V8 API has changed in significant ways. The most
important changes are:

* Binding functions take a const v8::FunctionCallbackInfo&lt;T&gt;&amp; argument
  rather than a const v8::Arguments&amp; argument.

* Binding functions return void rather than v8::Handle&lt;v8::Value&gt;. The
  return value is returned with the args.GetReturnValue().Set() family
  of functions.

* v8::Persistent&lt;T&gt; no longer derives from v8::Handle&lt;T&gt; and no longer
  allows you to directly dereference the object that the persistent
  handle points to. This means that the common pattern of caching
  oft-used JS values in a persistent handle no longer quite works,
  you first need to reconstruct a v8::Local&lt;T&gt; from the persistent
  handle with the Local&lt;T&gt;::New(isolate, persistent) factory method.

A handful of (internal) convenience classes and functions have been
added to make dealing with the new API a little easier.

The most visible one is node::Cached&lt;T&gt;, which wraps a v8::Persistent&lt;T&gt;
with some template sugar. It can hold arbitrary types but so far it's
exclusively used for v8::Strings (which was by far the most commonly
cached handle type.)
</pre>
</div>
</content>
</entry>
<entry>
<title>build: fix include order for building on windows</title>
<updated>2013-06-17T17:41:48+00:00</updated>
<author>
<name>Timothy J Fontaine</name>
<email>tjfontaine@gmail.com</email>
</author>
<published>2013-06-17T17:26:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=c0281f1b30871d37584a0387dbe72ca4924d8587'/>
<id>c0281f1b30871d37584a0387dbe72ca4924d8587</id>
<content type='text'>
fallout from the tls_wrap feature landing
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fallout from the tls_wrap feature landing
</pre>
</div>
</content>
</entry>
<entry>
<title>process: abstract out HandleToStream</title>
<updated>2013-06-15T19:44:50+00:00</updated>
<author>
<name>Fedor Indutny</name>
<email>fedor.indutny@gmail.com</email>
</author>
<published>2013-06-11T10:52:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=6978e998ee7c08b3dd10e4cecd2a167696b74317'/>
<id>6978e998ee7c08b3dd10e4cecd2a167696b74317</id>
<content type='text'>
Originally contributed by @tjfontaine, but modified to be faster and
more generic.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Originally contributed by @tjfontaine, but modified to be faster and
more generic.
</pre>
</div>
</content>
</entry>
</feed>
