Commit 4a25c690 authored by Clemens Backes's avatar Clemens Backes Committed by V8 LUCI CQ

[wasm] Fix lite mode and no-wasm

Add another "#if V8_ENABLE_WEBASSEMBLY" block to fix compilation if wasm
is disabled.

TBR=jkummerow@chromium.org

Bug: v8:11974
Change-Id: If889814e16dfb51d5b78122e6957bb2c41cefe5b
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3172758Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/main@{#76975}
parent f63f4387
......@@ -253,10 +253,12 @@ V8_WARN_UNUSED_RESULT MaybeHandle<Object> Invoke(Isolate* isolate,
DCHECK(!params.receiver->IsJSGlobalObject());
DCHECK_LE(params.argc, FixedArray::kMaxLength);
#if V8_ENABLE_WEBASSEMBLY
// If we have PKU support for Wasm, ensure that code is currently write
// protected for this thread.
DCHECK_IMPLIES(wasm::GetWasmCodeManager()->HasMemoryProtectionKeySupport(),
wasm::GetWasmCodeManager()->MemoryProtectionKeyWritable());
#endif // V8_ENABLE_WEBASSEMBLY
#ifdef USE_SIMULATOR
// Simulators use separate stacks for C++ and JS. JS stack overflow checks
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment