deps: patch V8 to 6.9.427.23
PR-URL: https://github.com/nodejs/node/pull/22898 Refs: https://github.com/v8/v8/compare/6.9.427.22...6.9.427.23 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
This commit is contained in:
parent
fadafef4f4
commit
2811ae4801
2
deps/v8/include/v8-version.h
vendored
2
deps/v8/include/v8-version.h
vendored
@ -11,7 +11,7 @@
|
|||||||
#define V8_MAJOR_VERSION 6
|
#define V8_MAJOR_VERSION 6
|
||||||
#define V8_MINOR_VERSION 9
|
#define V8_MINOR_VERSION 9
|
||||||
#define V8_BUILD_NUMBER 427
|
#define V8_BUILD_NUMBER 427
|
||||||
#define V8_PATCH_LEVEL 22
|
#define V8_PATCH_LEVEL 23
|
||||||
|
|
||||||
// Use 1 for candidates and 0 otherwise.
|
// Use 1 for candidates and 0 otherwise.
|
||||||
// (Boolean macro values are not supported by all preprocessors.)
|
// (Boolean macro values are not supported by all preprocessors.)
|
||||||
|
1
deps/v8/src/wasm/wasm-js.cc
vendored
1
deps/v8/src/wasm/wasm-js.cc
vendored
@ -729,6 +729,7 @@ void WebAssemblyInstantiate(const v8::FunctionCallbackInfo<v8::Value>& args) {
|
|||||||
if (!i::wasm::IsWasmCodegenAllowed(i_isolate, i_isolate->native_context())) {
|
if (!i::wasm::IsWasmCodegenAllowed(i_isolate, i_isolate->native_context())) {
|
||||||
thrower.CompileError("Wasm code generation disallowed by embedder");
|
thrower.CompileError("Wasm code generation disallowed by embedder");
|
||||||
compilation_resolver->OnCompilationFailed(thrower.Reify());
|
compilation_resolver->OnCompilationFailed(thrower.Reify());
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Asynchronous compilation handles copying wire bytes if necessary.
|
// Asynchronous compilation handles copying wire bytes if necessary.
|
||||||
|
39
deps/v8/test/mjsunit/wasm/disallow-codegen.js
vendored
39
deps/v8/test/mjsunit/wasm/disallow-codegen.js
vendored
@ -65,6 +65,16 @@ async function AsyncTestOk() {
|
|||||||
promise, module => assertInstanceof(module, WebAssembly.Module));
|
promise, module => assertInstanceof(module, WebAssembly.Module));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function AsyncTestWithInstantiateOk() {
|
||||||
|
print('async module instantiate (ok)...');
|
||||||
|
%DisallowCodegenFromStrings(false);
|
||||||
|
%DisallowWasmCodegen(false);
|
||||||
|
let promise = WebAssembly.instantiate(buffer);
|
||||||
|
assertPromiseResult(
|
||||||
|
promise,
|
||||||
|
module => assertInstanceof(module.instance, WebAssembly.Instance));
|
||||||
|
}
|
||||||
|
|
||||||
async function AsyncTestFail() {
|
async function AsyncTestFail() {
|
||||||
print('async module compile (fail)...');
|
print('async module compile (fail)...');
|
||||||
%DisallowCodegenFromStrings(true);
|
%DisallowCodegenFromStrings(true);
|
||||||
@ -78,6 +88,19 @@ async function AsyncTestFail() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function AsyncTestWithInstantiateFail() {
|
||||||
|
print('async module instantiate (fail)...');
|
||||||
|
%DisallowCodegenFromStrings(true);
|
||||||
|
%DisallowWasmCodegen(false);
|
||||||
|
try {
|
||||||
|
let m = await WebAssembly.instantiate(buffer);
|
||||||
|
assertUnreachable();
|
||||||
|
} catch (e) {
|
||||||
|
print(" " + e);
|
||||||
|
assertInstanceof(e, WebAssembly.CompileError);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async function AsyncTestWasmFail(disallow_codegen) {
|
async function AsyncTestWasmFail(disallow_codegen) {
|
||||||
print('async wasm module compile (fail)...');
|
print('async wasm module compile (fail)...');
|
||||||
%DisallowCodegenFromStrings(disallow_codegen);
|
%DisallowCodegenFromStrings(disallow_codegen);
|
||||||
@ -91,6 +114,19 @@ async function AsyncTestWasmFail(disallow_codegen) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function AsyncTestWasmWithInstantiateFail(disallow_codegen) {
|
||||||
|
print('async wasm module instantiate (fail)...');
|
||||||
|
%DisallowCodegenFromStrings(disallow_codegen);
|
||||||
|
%DisallowWasmCodegen(true);
|
||||||
|
try {
|
||||||
|
let m = await WebAssembly.instantiate(buffer);
|
||||||
|
assertUnreachable();
|
||||||
|
} catch (e) {
|
||||||
|
print(" " + e);
|
||||||
|
assertInstanceof(e, WebAssembly.CompileError);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async function StreamingTestOk() {
|
async function StreamingTestOk() {
|
||||||
print('streaming module compile (ok)...');
|
print('streaming module compile (ok)...');
|
||||||
// TODO(titzer): compileStreaming must be supplied by embedder.
|
// TODO(titzer): compileStreaming must be supplied by embedder.
|
||||||
@ -149,7 +185,9 @@ async function RunAll() {
|
|||||||
await SyncTestOk();
|
await SyncTestOk();
|
||||||
await SyncTestFail();
|
await SyncTestFail();
|
||||||
await AsyncTestOk();
|
await AsyncTestOk();
|
||||||
|
await AsyncTestWithInstantiateOk();
|
||||||
await AsyncTestFail();
|
await AsyncTestFail();
|
||||||
|
await AsyncTestWithInstantiateFail();
|
||||||
await StreamingTestOk();
|
await StreamingTestOk();
|
||||||
await StreamingTestFail();
|
await StreamingTestFail();
|
||||||
|
|
||||||
@ -157,6 +195,7 @@ async function RunAll() {
|
|||||||
for (count = 0; count < 2; ++count) {
|
for (count = 0; count < 2; ++count) {
|
||||||
SyncTestWasmFail(disallow_codegen);
|
SyncTestWasmFail(disallow_codegen);
|
||||||
AsyncTestWasmFail(disallow_codegen);
|
AsyncTestWasmFail(disallow_codegen);
|
||||||
|
AsyncTestWasmWithInstantiateFail(disallow_codegen);
|
||||||
StreamingTestWasmFail(disallow_codegen)
|
StreamingTestWasmFail(disallow_codegen)
|
||||||
disallow_codegen = true;
|
disallow_codegen = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user