From 0ecba54be4e124e90ec667af32523dba67936a4a Mon Sep 17 00:00:00 2001 From: dylanahsmith Date: Thu, 23 Dec 2021 00:36:49 +0000 Subject: [PATCH] Upgrade V8 binaries for 9.6.180.21 version --- deps/include/v8-version.h | 2 +- deps/include/v8-wasm.h | 8 +++++++- deps/v8 | 2 +- deps/v8_version | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/deps/include/v8-version.h b/deps/include/v8-version.h index 3f5f88cf..700e6f79 100644 --- a/deps/include/v8-version.h +++ b/deps/include/v8-version.h @@ -11,7 +11,7 @@ #define V8_MAJOR_VERSION 9 #define V8_MINOR_VERSION 6 #define V8_BUILD_NUMBER 180 -#define V8_PATCH_LEVEL 12 +#define V8_PATCH_LEVEL 21 // Use 1 for candidates and 0 otherwise. // (Boolean macro values are not supported by all preprocessors.) diff --git a/deps/include/v8-wasm.h b/deps/include/v8-wasm.h index af47a3ea..612ed2fa 100644 --- a/deps/include/v8-wasm.h +++ b/deps/include/v8-wasm.h @@ -151,8 +151,12 @@ class V8_EXPORT WasmStreaming final { * {Finish} should be called after all received bytes where passed to * {OnBytesReceived} to tell V8 that there will be no more bytes. {Finish} * does not have to be called after {Abort} has been called already. + * If {can_use_compiled_module} is true and {SetCompiledModuleBytes} was + * previously called, the compiled module bytes can be used. + * If {can_use_compiled_module} is false, the compiled module bytes previously + * set by {SetCompiledModuleBytes} should not be used. */ - void Finish(); + void Finish(bool can_use_compiled_module = true); /** * Abort streaming compilation. If {exception} has a value, then the promise @@ -167,6 +171,8 @@ class V8_EXPORT WasmStreaming final { * can be used, false otherwise. The buffer passed via {bytes} and {size} * is owned by the caller. If {SetCompiledModuleBytes} returns true, the * buffer must remain valid until either {Finish} or {Abort} completes. + * The compiled module bytes should not be used until {Finish(true)} is + * called, because they can be invalidated later by {Finish(false)}. */ bool SetCompiledModuleBytes(const uint8_t* bytes, size_t size); diff --git a/deps/v8 b/deps/v8 index 7a8373f1..f7fbc9b2 160000 --- a/deps/v8 +++ b/deps/v8 @@ -1 +1 @@ -Subproject commit 7a8373f18e2327d7dc52600fc9e52cc2f5b6abf6 +Subproject commit f7fbc9b2fdaef29e377c9cb2fbcdd2cc092974a4 diff --git a/deps/v8_version b/deps/v8_version index a0b16439..4dd1d72f 100644 --- a/deps/v8_version +++ b/deps/v8_version @@ -1 +1 @@ -9.6.180.12 \ No newline at end of file +9.6.180.21 \ No newline at end of file