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