[go: nahoru, domu]

tree: af61a30897671781074026cb9ff3581c16b92f7f [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. cppgc.cc
  17. data_object_builder.cc
  18. data_object_builder.h
  19. data_object_builder_unittest.cc
  20. debug_impl.cc
  21. debug_impl.h
  22. DEPS
  23. dictionary.cc
  24. dictionary.h
  25. DIR_METADATA
  26. function_template.cc
  27. function_template.h
  28. gin_export.h
  29. gin_features.cc
  30. gin_features.h
  31. handle.h
  32. interceptor.cc
  33. interceptor.h
  34. interceptor_unittest.cc
  35. isolate_holder.cc
  36. object_template_builder.cc
  37. object_template_builder.h
  38. OWNERS
  39. per_context_data.cc
  40. per_context_data.h
  41. per_context_data_unittest.cc
  42. per_isolate_data.cc
  43. per_isolate_data.h
  44. README.md
  45. runner.cc
  46. runner.h
  47. shell_runner.cc
  48. shell_runner.h
  49. shell_runner_unittest.cc
  50. try_catch.cc
  51. try_catch.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. v8_shared_memory_dump_provider.cc
  66. v8_shared_memory_dump_provider.h
  67. v8_shared_memory_dump_provider_unittest.cc
  68. wrappable.cc
  69. wrappable.h
  70. wrappable_unittest.cc
  71. 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::RepeatingCallback.

  • 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.