summaryrefslogtreecommitdiff
path: root/scripts/gen-s-parser.py
diff options
context:
space:
mode:
authorDaniel Wirtz <dcode@dcode.io>2020-09-17 12:58:21 +0200
committerGitHub <noreply@github.com>2020-09-17 12:58:21 +0200
commit2841eddaabc7a5e24517e043a1aab8adc6d5c1e4 (patch)
tree17f8ed3d71237c4860fc07f7ba9bdc4d9691b76b /scripts/gen-s-parser.py
parente1d74ef2acdd88f06b9e58f91f30bb56b9a26fe8 (diff)
downloadbinaryen-2841eddaabc7a5e24517e043a1aab8adc6d5c1e4.tar.gz
binaryen-2841eddaabc7a5e24517e043a1aab8adc6d5c1e4.tar.bz2
binaryen-2841eddaabc7a5e24517e043a1aab8adc6d5c1e4.zip
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.
Diffstat (limited to 'scripts/gen-s-parser.py')
-rwxr-xr-xscripts/gen-s-parser.py4
1 files changed, 2 insertions, 2 deletions
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)"),