move memory_data out from MemoryInstance, add call stack (#408)

This commit is contained in:
Xu Jun
2020-09-28 18:38:15 +08:00
committed by GitHub
parent 0bf7f7310b
commit c13746c22c
6 changed files with 91 additions and 37 deletions

View File

@ -56,7 +56,7 @@ struct WASMMemoryInstance {
/* Memory data begin address, the layout is: memory data + heap data
Note: when memory is re-allocated, the heap data and memory data
must be copied to new memory also. */
uint8 memory_data[1];
uint8 *memory_data;
};
struct WASMTableInstance {