From 2841eddaabc7a5e24517e043a1aab8adc6d5c1e4 Mon Sep 17 00:00:00 2001 From: Daniel Wirtz Date: Thu, 17 Sep 2020 12:58:21 +0200 Subject: Refactor Host expression to MemorySize and MemoryGrow (#3137) Aligns the internal representations of `memory.size` and `memory.grow` with other more recent memory instructions by removing the legacy `Host` expression class and adding separate expression classes for `MemorySize` and `MemoryGrow`. Simplifies related APIs, but is also a breaking API change. --- src/wasm-stack.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/wasm-stack.h') diff --git a/src/wasm-stack.h b/src/wasm-stack.h index ed9245d4f..6a926eddf 100644 --- a/src/wasm-stack.h +++ b/src/wasm-stack.h @@ -132,7 +132,8 @@ public: void visitBinary(Binary* curr); void visitSelect(Select* curr); void visitReturn(Return* curr); - void visitHost(Host* curr); + void visitMemorySize(MemorySize* curr); + void visitMemoryGrow(MemoryGrow* curr); void visitRefNull(RefNull* curr); void visitRefIsNull(RefIsNull* curr); void visitRefFunc(RefFunc* curr); -- cgit v1.2.3