JavaScript engine proved crash-free in a Linux process model
The proof covered SafeJIT’s shipped binaries and all code it could generate, including checks on assumptions and recovery when those assumptions failed.

Our read
- Studied:
- Preprint: system
Editor of record: Boris Djordjevic · Paperfoot
The researchers built SafeJIT, a small JavaScript engine, and proved that its executables never crash on any input in a model of a Linux user process. Its just-in-time compiler turned programs into machine code as they ran, making assumptions about the types of values they used.
The proof covered binaries for RISC-V and x86-64, two processor instruction sets, executed instruction by instruction. It also covered all code the compiler could generate for any program and any recorded type information. The researchers checked the proof with Lean 4, a tool for verifying mathematical proofs. Coverage included parsing, interpretation, checks on speculative assumptions, recovery when those assumptions failed, memory cleanup and supporting software. The proof did not trust the C compiler, assembler or linker used to build the binaries, or floating-point arithmetic.
Why it matters
The proof covered both the engine’s fixed code and code generated while programs ran. It connected the crash-safety guarantee to shipped executable files without trusting the compiler, assembler or linker used to build them.
Caveats
The guarantee concerns crashes within a Linux user-process model, not every real-world operating environment. The work is an arXiv preprint, not yet peer-reviewed.
From the paper
- Limitation
It does not say that it computes the right answer, that it terminates, or that it is free of side channels.
Quoted word for word from the full text on arXiv.
In this paper
machine-checked verification of a speculating JIT engine
- Methods
- SafeJIT (this paper)Node.js (baseline)Lean 4GCC
- Datasets
- sieve (evaluated)
Results
- SafeJIT, speedup, on sieve, soft deopts: about 20 ×
On the sieve benchmark, soft deopts changed the speedup from 1.3 × to about 20 ×.
Speculation.
What it shows
- Statically linked RISC-V and x86-64 executables of SafeJIT are verified in Lean 4 to never crash on any input in a model of a Linux user process.
We present SafeJIT, a small JavaScript engine with a speculating baseline JIT, together with a machine-checked proof in Lean 4 that its statically linked RISC-V and x86-64 executables never crash, on any input, in a model of a Linux user process.
Abstract
- Binary-level verification does not eliminate the necessity to verify compilers embedded within the system.
Binary-level verification removes gcc from the trusted base; it does not remove the need to verify the compilers that are part of the system.
11.1. Binary verification does not make compilers obsolete
Quoted word for word from the full text on arXiv.
The paper
SafeJIT: A Speculating JIT Engine Verified Down to the Machine Code
arXiv, Nov 21, 2026, Open access, Preprint, not yet peer-reviewed
doi.org/10.48550/arxiv.2611.28436
arXiv:2611.28436v1 in cs.PL
Cite as BibTeX
@misc{ebner2026safejit,
title = {SafeJIT: A Speculating JIT Engine Verified Down to the Machine Code},
author = {Ebner, Gabriel},
year = {2026},
eprint = {2611.28436},
archivePrefix = {arXiv},
primaryClass = {cs.PL},
doi = {10.48550/arxiv.2611.28436},
url = {https://arxiv.org/abs/2611.28436}
}