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. --- scripts/gen-s-parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/gen-s-parser.py') diff --git a/scripts/gen-s-parser.py b/scripts/gen-s-parser.py index db0dbc66f..d66f10852 100755 --- a/scripts/gen-s-parser.py +++ b/scripts/gen-s-parser.py @@ -66,8 +66,8 @@ instructions = [ ("i64.store8", "makeStore(s, Type::i64, /*isAtomic=*/false)"), ("i64.store16", "makeStore(s, Type::i64, /*isAtomic=*/false)"), ("i64.store32", "makeStore(s, Type::i64, /*isAtomic=*/false)"), - ("memory.size", "makeHost(s, HostOp::MemorySize)"), - ("memory.grow", "makeHost(s, HostOp::MemoryGrow)"), + ("memory.size", "makeMemorySize(s)"), + ("memory.grow", "makeMemoryGrow(s)"), ("i32.const", "makeConst(s, Type::i32)"), ("i64.const", "makeConst(s, Type::i64)"), ("f32.const", "makeConst(s, Type::f32)"), -- cgit v1.2.3