[WebAssembly] Implement a new algorithm for placing BLOCK markers