Cache lookup of VMMemoryDefinition.

To add to the cache, mutability is required, so now `resolve_memory_ptr` must be `&mut self` which means that `translate_operator` may not hold those convenient immutable references across the whole function.

The search and replace to implement the above changes affected some commented out code, that code is removed.

MemoryStyle grows PartialEq and Eq so that we can check what the memory style is without a match expression.
This commit is contained in:
Nick Lewycky
2020-05-18 19:57:12 -07:00
parent dff7cf28c9
commit 0df99b5dbc
3 changed files with 3420 additions and 2772 deletions

File diff suppressed because it is too large Load Diff