0
Files
src/gin
Arthur Sonzogni 2ecbb28535 Reland "partition_alloc: Move pa tests into pa."
This reverts commit 5d5831911b.

The diff is fixing an issue on Android.

On Android the 'open' function has two versions:
- int open(const char *pathname, int flags);
- int open(const char *pathname, int flags, mode_t mode);

This doesn't play well with WrapEINTR template. So an alias
was created 

Original change's description:
> Revert "partition_alloc: Move pa tests into pa."
>
> This reverts commit 17884376ce.
>
> Reason for revert: Fails to compile on `android-archive-rel`
> https://ci.chromium.org/ui/p/chromium/builders/ci/android-archive-rel/42067/overview
>
> NOTRY=true
> NOTREECHECKS=true
>
> Original change's description:
> > partition_alloc: Move pa tests into pa.
> >
> > This addresses a TODO about moving partition_alloc's tests into
> > partition_alloc.
> >
> > Bug: 40158212
> > Change-Id: Ia4b2017e2da38bd3fed904558126076b2deafc51
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5659601
> > Auto-Submit: Arthur Sonzogni <arthursonzogni@chromium.org>
> > Reviewed-by: Kentaro Hara <haraken@chromium.org>
> > Reviewed-by: danakj <danakj@chromium.org>
> > Reviewed-by: Colin Blundell <blundell@chromium.org>
> > Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
> > Cr-Commit-Position: refs/heads/main@{#1323243}
>
> Bug: 40158212
> Change-Id: I8831dbcffd8c328a0722fe1f53e382c68a6056a9
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5676232
> Commit-Queue: Titouan Rigoudy <titouan@chromium.org>
> Auto-Submit: Titouan Rigoudy <titouan@chromium.org>
> Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
> Owners-Override: Titouan Rigoudy <titouan@chromium.org>
> Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> Cr-Commit-Position: refs/heads/main@{#1323249}

Bug: 40158212
Change-Id: Ie60a85c296224ef3cfdcc17371db100cf2ce0db1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5675456
Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Reviewed-by: Colin Blundell <blundell@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1323319}
2024-07-04 13:41:17 +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.