LibWasm: Remove some unnecessary memory checks

Also make `store_to_memory` take a `MemoryArgument` so that we no longer
have to make "synthetic instructions" in some scenarios.
This commit is contained in:
Diego Frias 2024-07-18 13:29:17 -07:00 committed by Ali Mohammad Pur
commit ea67bc989f
Notes: sideshowbarker 2024-07-19 15:29:29 +09:00
2 changed files with 23 additions and 74 deletions

View file

@ -68,7 +68,7 @@ protected:
Optional<VectorType> pop_vector(Configuration&);
template<typename M, template<typename> typename SetSign, typename VectorType = Native128ByteVectorOf<M, SetSign>>
Optional<VectorType> peek_vector(Configuration&);
void store_to_memory(Configuration&, Instruction const&, ReadonlyBytes data, u32 base);
void store_to_memory(Configuration&, Instruction::MemoryArgument const&, ReadonlyBytes data, u32 base);
void call_address(Configuration&, FunctionAddress);
template<typename PopTypeLHS, typename PushType, typename Operator, typename PopTypeRHS = PopTypeLHS, typename... Args>