tree: 7117430527782c0031fac3e4c7901c18263ded7e [path history] [tgz]
  1. BUILD.gn
  2. DEPS
  3. OWNERS
  4. README.md
  5. arguments.cc
  6. arguments.h
  7. arguments_unittest.cc
  8. array_buffer.cc
  9. array_buffer.h
  10. array_buffer_unittest.cc
  11. context_holder.cc
  12. converter.cc
  13. converter.h
  14. converter_unittest.cc
  15. data_object_builder.cc
  16. data_object_builder.h
  17. data_object_builder_unittest.cc
  18. debug_impl.cc
  19. debug_impl.h
  20. dictionary.cc
  21. dictionary.h
  22. function_template.cc
  23. function_template.h
  24. gin_export.h
  25. handle.h
  26. interceptor.cc
  27. interceptor.h
  28. interceptor_unittest.cc
  29. isolate_holder.cc
  30. modules/
  31. object_template_builder.cc
  32. object_template_builder.h
  33. per_context_data.cc
  34. per_context_data.h
  35. per_context_data_unittest.cc
  36. per_isolate_data.cc
  37. per_isolate_data.h
  38. public/
  39. run_microtasks_observer.cc
  40. run_microtasks_observer.h
  41. runner.cc
  42. runner.h
  43. shell/
  44. shell_runner.cc
  45. shell_runner.h
  46. shell_runner_unittest.cc
  47. test/
  48. try_catch.cc
  49. try_catch.h
  50. v8_background_task_runner.cc
  51. v8_background_task_runner.h
  52. v8_foreground_task_runner.cc
  53. v8_foreground_task_runner.h
  54. v8_foreground_task_runner_base.cc
  55. v8_foreground_task_runner_base.h
  56. v8_foreground_task_runner_with_locker.cc
  57. v8_foreground_task_runner_with_locker.h
  58. v8_initializer.cc
  59. v8_initializer.h
  60. v8_isolate_memory_dump_provider.cc
  61. v8_isolate_memory_dump_provider.h
  62. v8_isolate_memory_dump_provider_unittest.cc
  63. v8_platform.cc
  64. v8_platform_unittest.cc
  65. wrappable.cc
  66. wrappable.h
  67. wrappable_unittest.cc
  68. wrapper_info.cc
gin/README.md

Gin - Lightweight bindings for V8

This directory contains Gin, a set of utilities to make working with V8 easier.

Here are some of the key bits:

  • converter.h: Templatized JS ↔ C++ conversion routines for many common C++ types. You can define your own by specializing Converter.

  • function_template.h: Create JavaScript functions that dispatch to any C++ function, member function pointer, or base::Callback.

  • object_template_builder.h: A handy utility for creation of v8::ObjectTemplate.

  • wrappable.h: Base class for C++ classes that want to be owned by the V8 GC. Wrappable objects are automatically deleted when GC discovers that nothing in the V8 heap refers to them. This is also an easy way to expose C++ objects to JavaScript.

  • runner.h: Create script contexts and run code in them.

  • module_runner_delegate.h: A delegate for runner that implements a subset of the AMD module specification. Also see modules/ with some example modules.