Is it possible to have JITless with WASM on?

341 views
Skip to first unread message

Wx Gopher

unread,
May 29, 2024, 9:57:48 AM5/29/24
to Chromium-dev
Hi,

We are trying to enable jitless for our app, but some features rely on WASM and are not functional after jitless is enabled.

After a bit research we found (in v8.cc):

// Do not expose wasm in jitless mode.
//
// Even in interpreter-only mode, wasm currently still creates executable
// memory at runtime. Unexpose wasm until this changes.
// The correctness fuzzers are a special case: many of their test cases are
// built by fetching a random property from the the global object, and thus
// the global object layout must not change between configs. That is why we
// continue exposing wasm on correctness fuzzers even in jitless mode.
// TODO(jgruber): Remove this once / if wasm can run without executable
// memory.
#if V8_ENABLE_WEBASSEMBLY
}
#endif


Is this going to get resolved somehow? Or is there any suggestion for running WASM with jitless enabled?

Cheers,

Dave Tapuska

unread,
May 29, 2024, 10:19:52 AM5/29/24
to wxgu...@gmail.com, Chromium-dev
V8 does not have an interpreter for WASM in the source repository. Microsoft is in the process of upstreaming their WASM interpreter (called drumbrake). I'm not sure how complete it is or when it will be enabled by default, or if actually does run WASM in jitless mode (since the patch set doesn't actually touch this conditional either). Perhaps someone from Microsoft can chime in.

dave.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/87ddd72b-f0c8-4355-a57c-215ecb08746en%40chromium.org.
Reply all
Reply to author
Forward
0 new messages