• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Gin - Lightweight bindings for V8
2=================================
3
4This directory contains Gin, a set of utilities to make working with V8 easier.
5
6Here are some of the key bits:
7
8* converter.h: Templatized JS<->C++ conversion routines for many common C++
9  types. You can define your own by specializing Converter.
10
11* function_template.h: Create JavaScript functions that dispatch to any C++
12  function, member function pointer, or base::Callback.
13
14* object_template_builder.h: A handy utility for creation of v8::ObjectTemplate.
15
16* wrappable.h: Base class for C++ classes that want to be owned by the V8 GC.
17  Wrappable objects are automatically deleted when GC discovers that nothing in
18  the V8 heap refers to them. This is also an easy way to expose C++ objects to
19  JavaScript.
20
21* runner.h: Create script contexts and run code in them.
22
23* module_runner_delegate.h: A delegate for runner that implements a subset of
24  the AMD module specification. Also see modules/ with some example modules.
25