summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/fuzz_relooper.py6
-rwxr-xr-xscripts/gen-s-parser.py14
2 files changed, 10 insertions, 10 deletions
diff --git a/scripts/fuzz_relooper.py b/scripts/fuzz_relooper.py
index 62db2a3c5..3b14ed2cd 100755
--- a/scripts/fuzz_relooper.py
+++ b/scripts/fuzz_relooper.py
@@ -216,7 +216,7 @@ int main() {
};
BinaryenExpressionRef list[] = {
BinaryenCall(module, "print", args, 1, BinaryenTypeNone()),
- BinaryenSetLocal(module, 0, BinaryenCall(module, "check", NULL, 0,
+ BinaryenLocalSet(module, 0, BinaryenCall(module, "check", NULL, 0,
BinaryenTypeInt32()))
};
''' % (i, printed_ids[i])
@@ -226,7 +226,7 @@ int main() {
BinaryenBlock(module, NULL, list, 2, BinaryenTypeNone()),
BinaryenBinary(module,
BinaryenRemUInt32(),
- BinaryenGetLocal(module, 0, BinaryenTypeInt32()),
+ BinaryenLocalGet(module, 0, BinaryenTypeInt32()),
BinaryenConst(module, BinaryenLiteralInt32(%d))
)
);
@@ -279,7 +279,7 @@ int main() {
BinaryenEqInt32(),
BinaryenBinary(module,
BinaryenRemUInt32(),
- BinaryenGetLocal(module, 0, BinaryenTypeInt32()),
+ BinaryenLocalGet(module, 0, BinaryenTypeInt32()),
BinaryenConst(module, BinaryenLiteralInt32(%d))
),
BinaryenConst(module, BinaryenLiteralInt32(%d))
diff --git a/scripts/gen-s-parser.py b/scripts/gen-s-parser.py
index 9dcfb3dd3..5e5ec494f 100755
--- a/scripts/gen-s-parser.py
+++ b/scripts/gen-s-parser.py
@@ -32,11 +32,11 @@ instructions = [
("call_indirect", "makeCallIndirect(s)"),
("drop", "makeDrop(s)"),
("select", "makeSelect(s)"),
- ("local.get", "makeGetLocal(s)"),
- ("local.set", "makeSetLocal(s)"),
- ("local.tee", "makeTeeLocal(s)"),
- ("global.get", "makeGetGlobal(s)"),
- ("global.set", "makeSetGlobal(s)"),
+ ("local.get", "makeLocalGet(s)"),
+ ("local.set", "makeLocalSet(s)"),
+ ("local.tee", "makeLocalTee(s)"),
+ ("global.get", "makeGlobalGet(s)"),
+ ("global.set", "makeGlobalSet(s)"),
("memory.init", "makeMemoryInit(s)"),
("data.drop", "makeDataDrop(s)"),
("memory.copy", "makeMemoryCopy(s)"),
@@ -64,8 +64,8 @@ instructions = [
("i64.store8", "makeStore(s, i64, /*isAtomic=*/false)"),
("i64.store16", "makeStore(s, i64, /*isAtomic=*/false)"),
("i64.store32", "makeStore(s, i64, /*isAtomic=*/false)"),
- ("current_memory", "makeHost(s, HostOp::CurrentMemory)"),
- ("grow_memory", "makeHost(s, HostOp::GrowMemory)"),
+ ("memory.size", "makeHost(s, HostOp::MemorySize)"),
+ ("memory.grow", "makeHost(s, HostOp::MemoryGrow)"),
("i32.const", "makeConst(s, i32)"),
("i64.const", "makeConst(s, i64)"),
("f32.const", "makeConst(s, f32)"),