Expand description

Implementation of Wasm to CLIF memory access translation.

Given

  • a dynamic Wasm memory index operand,
  • a static offset immediate, and
  • a static access size,

bounds check the memory access and translate it into a native memory access.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! !!! !!! THIS CODE IS VERY SUBTLE, HAS MANY SPECIAL CASES, AND IS ALSO !!! !!! ABSOLUTELY CRITICAL FOR MAINTAINING THE SAFETY OF THE WASM HEAP !!! !!! SANDBOX. !!! !!! !!! !!! A good rule of thumb is to get two reviews on any substantive !!! !!! changes in here. !!! !!! !!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Enumsยง

  • AddrPcc ๐Ÿ”’
    Which facts do we want to emit for proof-carrying code, if any, on address computations?

Functionsยง