jitless nodejsΒ #28800
Copy link
Copy link
Closed
Description
We know v8 supports JavaScript execution without allocating executable memory at runtime.Is there any way i can use this feature in nodejs ?
I'm working for some benchmarks about wasm. I really need know whether node use jit when run wasm.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
targos commentedon Jul 22, 2019
You can enable JIT-less mode by running Node.js with the
--jitlessflag:node --jitless script.jsdarkmoon233 commentedon Jul 22, 2019
I run
node --jitless scripts.jsand get an error:node: bad option: --jitless.My node version is
v10.16.0, my operation system isUbuntu 18.042 LTS.targos commentedon Jul 22, 2019
It is only available since Node.js 12.0.0
targos commentedon Jul 22, 2019
I think this is answered, but feel free to comment if you have more questions.
darkmoon233 commentedon Jul 23, 2019
It can't work when the Javascript file references a wasm file.
Some code about referencing a wasm file.
I use emscritpten to compile my C++ file to JavaScript. Node.js can run the JavaScript file without
--jitless.If i use command likenode --jitless a.out.js,i will get an errornode: bad option: --jitless.Is that mean Node.js can't deal with wasm without jit?
devsnek commentedon Jul 23, 2019
That means you're still not on a version of node that supports jitless. Also worth noting, the
WebAssemblyglobal is removed in jitless mode because the wasm interpreter is not ready for production yet.darkmoon233 commentedon Jul 23, 2019
Does this mean that no version of node is currently supported by wasm running without jit?
devsnek commentedon Jul 23, 2019
@darkmoon233 correct.
cli: allow --jitless V8 flag in NODE_OPTIONS
cli: allow --jitless V8 flag in NODE_OPTIONS
cli: allow --jitless V8 flag in NODE_OPTIONS
cli: allow --jitless V8 flag in NODE_OPTIONS
cli: allow --jitless V8 flag in NODE_OPTIONS
cli: allow --jitless V8 flag in NODE_OPTIONS
cli: allow --jitless V8 flag in NODE_OPTIONS
Allow making pages readable, writable, and executable (#179)
Allow making pages readable, writable, and executable (#179)
Allow making pages readable, writable, and executable (#179)
Allow making pages readable, writable, and executable (#179)