tree: 7a85e1659f2ffda69001599f6902b4ba4f7cb03c [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. function_template.cc
  25. function_template.h
  26. gin_export.h
  27. gin_features.cc
  28. gin_features.h
  29. handle.h
  30. interceptor.cc
  31. interceptor.h
  32. interceptor_unittest.cc
  33. isolate_holder.cc
  34. object_template_builder.cc
  35. object_template_builder.h
  36. OWNERS
  37. per_context_data.cc
  38. per_context_data.h
  39. per_context_data_unittest.cc
  40. per_isolate_data.cc
  41. per_isolate_data.h
  42. README.md
  43. runner.cc
  44. runner.h
  45. shell_runner.cc
  46. shell_runner.h
  47. shell_runner_unittest.cc
  48. try_catch.cc
  49. try_catch.h
  50. v8_foreground_task_runner.cc
  51. v8_foreground_task_runner.h
  52. v8_foreground_task_runner_base.cc
  53. v8_foreground_task_runner_base.h
  54. v8_foreground_task_runner_with_locker.cc
  55. v8_foreground_task_runner_with_locker.h
  56. v8_initializer.cc
  57. v8_initializer.h
  58. v8_isolate_memory_dump_provider.cc
  59. v8_isolate_memory_dump_provider.h
  60. v8_isolate_memory_dump_provider_unittest.cc
  61. v8_platform.cc
  62. v8_platform_unittest.cc
  63. v8_shared_memory_dump_provider.cc
  64. v8_shared_memory_dump_provider.h
  65. v8_shared_memory_dump_provider_unittest.cc
  66. wrappable.cc
  67. wrappable.h
  68. wrappable_unittest.cc
  69. 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.