Library/V8

Getting the Context object during a function invocation
Generally, the application will want to store more data per-context than simply that which is accessible via v8::Context. Arguments::Data is a good way to store a pointer to the active context object for use when a function is invoked. FunctionTemplate::New and ObjectTemplate::SetAccessor both take an optional Handle<> to a Data object. Use External::New to store a void* to the desired native object. Then during invocation of the method/accessor call External::Unwrap( args.Data ) to get the native pointer back.

What's the difference between Holder and This?

 * http://www.mail-archive.com/v8-users@googlegroups.com/msg00831.html

Forcing the Garbage Collector to be Invoked (for debugging)
From http://create.tpsitulsa.com/wiki/V8/Garbage_Collection, one easy way to force the garbage collector to run more often is to notify to V8 that a large amount of memory has been allocated by the C++ code. For example, the code below will imply 16 MB has been allocated by the native code:

Adding such code for every wrapped native object can be useful for code, as it will exercise the garbage collector more aggressively.