[go: nahoru, domu]

tree: 227c7b4c8bad10bf5f43ecd70236a8664977088e [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. BUILD.gn
  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. DEPS
  21. dictionary.cc
  22. dictionary.h
  23. function_template.cc
  24. function_template.h
  25. gin_export.h
  26. handle.h
  27. interceptor.cc
  28. interceptor.h
  29. interceptor_unittest.cc
  30. isolate_holder.cc
  31. object_template_builder.cc
  32. object_template_builder.h
  33. OWNERS
  34. per_context_data.cc
  35. per_context_data.h
  36. per_context_data_unittest.cc
  37. per_isolate_data.cc
  38. per_isolate_data.h
  39. README.md
  40. run_microtasks_observer.cc
  41. run_microtasks_observer.h
  42. runner.cc
  43. runner.h
  44. shell_runner.cc
  45. shell_runner.h
  46. shell_runner_unittest.cc
  47. try_catch.cc
  48. try_catch.h
  49. v8_initializer.cc
  50. v8_initializer.h
  51. v8_isolate_memory_dump_provider.cc
  52. v8_isolate_memory_dump_provider.h
  53. v8_isolate_memory_dump_provider_unittest.cc
  54. v8_platform.cc
  55. v8_platform_unittest.cc
  56. wrappable.cc
  57. wrappable.h
  58. wrappable_unittest.cc
  59. 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.