1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

document the payload.

This commit is contained in:
Charles Lowell 2011-06-22 09:16:07 -05:00
parent 99182a6519
commit 5f1c8032e3

View file

@ -6,10 +6,18 @@
/**
* Holds a reference to a V8 heap object. This serves as the base
* class for all of the low-level proxies that reference into V8
* class for all of the low-level proxies that reference into V8.
*
*/
struct v8_handle {
/**
* Contains the *actual* V8 references. This object is kept
* separate so that it can be "detached" from the handle when
* it is garbage collected, and enqueued separately and
* collected in the context of a V8 thread.
*/
struct Payload {
Payload(v8::Handle<void> object);
virtual ~Payload();