Nikolaos Papaspyrou fb03d6b977 [api] Deprecate vector<v8::Local>, part 2
According to V8's public API documentation, local handles (i.e.,
objects of type v8::Local<T>) "should never be allocated on the heap".
This disallows heap-allocated data structures containing instances of
v8::Local, like std::vector<v8::Local<v8::String>>. It is unfortunate
that the V8 API itself requires the usage of such data structures.

This CL continues the deprecation of such data structures from V8's
public API:

1. It replaces the out parameter of type std::vector<Local<Object>> of
   Context::DeepFreezeDelegate::FreezeEmbedderObjectAndGetChildren
   with a LocalVector<Object>.
2. It replaces the std::vector<std::pair<Local<Context>, size_t>> of
   MeasureMemoryDelegate with two MemorySpan objects.

Bug: chromium:1454114
Change-Id: Ifa7634a37849dee0a3d80d00355a2f1fbfe378ab
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4877014
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Reviewed-by: Anton Bikineev <bikineev@chromium.org>
Commit-Queue: Nikolaos Papaspyrou <nikolaos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#90488}
2023-10-19 11:05:07 +00:00
2023-10-10 12:58:37 +00:00
2019-05-15 12:06:15 +00:00
2017-07-28 13:39:24 +00:00
2021-08-24 10:39:33 +00:00
2022-08-04 08:53:02 +00:00
2023-06-05 21:13:04 +00:00
2023-10-19 04:52:26 +00:00
2020-10-20 22:12:28 +00:00
2020-04-24 19:19:36 +00:00
2022-09-13 07:54:54 +00:00
2021-08-16 13:05:19 +00:00
2021-09-08 01:38:52 +00:00
2023-01-23 17:07:21 +00:00
2023-01-23 17:07:21 +00:00
2023-02-06 13:41:05 +00:00
2023-07-12 10:46:47 +00:00

V8 JavaScript Engine

V8 is Google's open source JavaScript engine.

V8 implements ECMAScript as specified in ECMA-262.

V8 is written in C++ and is used in Google Chrome, the open source browser from Google.

V8 can run standalone, or can be embedded into any C++ application.

V8 Project page: https://v8.dev/docs

Getting the Code

Checkout depot tools, and run

    fetch v8

This will checkout V8 into the directory v8 and fetch all of its dependencies. To stay up to date, run

    git pull origin
    gclient sync

For fetching all branches, add the following into your remote configuration in .git/config:

    fetch = +refs/branch-heads/*:refs/remotes/branch-heads/*
    fetch = +refs/tags/*:refs/tags/*

Contributing

Please follow the instructions mentioned at v8.dev/docs/contribute.

S
Description
The bare minimum headers from v8 required to build sandstorm from source.
https://chromium.googlesource.com/v8/v8.git
Readme BSD-3-Clause
931 MiB
0 Stars 1 Watchers 0 Forks
Languages
Markdown 100%