0
Files
src/gin
Greg Thompson 5e4f41f358 [fuchsia] Make CFv2 the default for tests.
The default for `use_cfv2` is now `true`. Tests may opt-out by setting
it to `false.` Tests are still built/run as CFv1 components if:

- They use fuchsia.sys.Launcher (skia_unittests and gfx_unittests).
- They use additional_manifest_fragments (many).

These will be migrated to CFv2 as their fragments (and their respective
required capabilities) are migrated to CFv2.

Bug: 1256502
Change-Id: I3ef514d997da29bf4ce80d17b7afa57bbdb107e7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3447303
Reviewed-by: Wez <wez@chromium.org>
Owners-Override: Wez <wez@chromium.org>
Commit-Queue: Greg Thompson <grt@chromium.org>
Cr-Commit-Position: refs/heads/main@{#968954}
2022-02-09 16:35:14 +00:00
..
2022-01-08 01:20:46 +00:00
2021-12-16 23:28:19 +00:00

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.