Repository navigation
This release speeds up the Baseline interpreter, precompiles and Keccak.
Changed
- Baseline interpreter optimizations:
CALLDATALOADloads the whole word directly, the memory growth has a fast path for one word, pushing of 64-bit values does not use a temporary, and a takenJUMP/JUMPIis cheaper because the JUMPDEST analysis is kept inExecutionStateas a bitset of the native word size. The GCC inlining limits are raised for the interpreter loop. #1776 #1777 #1778 #1781 #1783 #1784 #1785 #1786 #1793 #1799 #1814 - evmone is built with
-fcf-protection=returnon Linux x86-64: the Baseline interpreter does not executeENDBR64at every instruction dispatch. #649 - Modular inversion uses the safegcd algorithm instead of the binary extended GCD. It makes
ecaddfaster andecrecoverandp256verifyslightly faster. #1806 - Precompile optimizations: with GCC,
ecrecover,p256verifyandecmulare ~15% faster andmodexpwith moduli of 48 bytes or more is up to ~40% faster (unsigned __int128multiply-accumulate);modexpexecutes ~4% fewer instructions with GCC (high word of the Montgomery reduction);p256verifydoes not invert Z;ecpairingmultiplies by the Fq2 non-residue with 2 instead of 4 field multiplications and shares the addition chain for the curve seed;ripemd160is restructured for inlining. #1640 #1648 #1800 #1803 #1833 #1838 - Keccak optimizations: fewer instructions per permutation, and the Armv8.2 SHA3 instructions are used on Apple silicon. The implementation is converted from C to C++. #1696 #1771 #1773 #1774 #1775 #1839
- The EIP-7702 delegation designation must be exactly
0xef0100 || address. Code starting with0xef0100of another size is not a delegation. This is unreachable in a valid state, but possible in arbitrary pre-states (e.g. fuzzing). #1822 - GCC 12 is the minimum required version. #1832
- Dependencies upgraded: intx 0.16.0 (the division by zero gives 0 without an extra check, and
modexpdivides unnormalized operands). #1834 - The Execution Spec Tests fixtures upgraded to
tests@v21.0.3. #1831
Fixed
set_option("opcode.count", ...)returned the invalid-name status for a valid option. #1810- The RLP encoder of the test tools aborted in debug builds or wrote a wrong prefix for a list longer than 16 MiB, e.g. the block access list of a block with a large gas limit. #1807
- The test tools failed to load a legacy transaction with a chain id over 64 bits (EIP-155). It is rejected as a transaction for another chain.
evmone t8ndoes not replace the chain id of a transaction that has one. #1829