mirror of https://github.com/nodejs/node.git
a3e0834ee4
Original commit message:
[api] Add v8::ScriptCompiler::CachedData::CompatibilityCheck()
This patch adds a new API v8::ScriptCompiler::CachedData::CompatibilityCheck()
in order to allow embedders to check if the code cache can be used in
the current isolate without looking up for the source code. It also returns more detailed reasons about why the code cache cannot be used
when it's bound to be rejected. This makes it possible to enforce
portability checks in case code code becomes CPU-dependent in the
future.
Refs: https://github.com/nodejs/node/issues/42566#issuecomment-1735862123
Change-Id: Ia1d677b949050add961af6fbf62c44342c061312
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4905290
Reviewed-by: Marja Hölttä <marja@chromium.org>
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Commit-Queue: Joyee Cheung <joyee@igalia.com>
Cr-Commit-Position: refs/heads/main@{#90833}
Refs:
|
||
---|---|---|
.. | ||
acorn | ||
ada | ||
base64 | ||
brotli | ||
cares | ||
cjs-module-lexer | ||
corepack | ||
googletest | ||
histogram | ||
icu-small | ||
llhttp | ||
minimatch | ||
nghttp2 | ||
ngtcp2 | ||
npm | ||
openssl | ||
postject | ||
simdjson | ||
simdutf | ||
undici | ||
uv | ||
uvwasi | ||
v8 | ||
zlib |