mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-14 16:35:03 +01:00
cleanup
This commit is contained in:
parent
9ece18a48a
commit
9f3e728e79
4 changed files with 9 additions and 25 deletions
|
|
@ -740,24 +740,6 @@ function lowerExpr(
|
|||
instrs.push({ kind: "i64.store", imm: {} });
|
||||
break exprKind;
|
||||
}
|
||||
case "__string_ptr": {
|
||||
assertArgs(1);
|
||||
lowerExpr(fcx, instrs, expr.args[0]);
|
||||
// ptr, len
|
||||
instrs.push({ kind: "drop" });
|
||||
// ptr
|
||||
break exprKind;
|
||||
}
|
||||
case "__string_len": {
|
||||
assertArgs(1);
|
||||
lowerExpr(fcx, instrs, expr.args[0]);
|
||||
// ptr, len
|
||||
instrs.push({ kind: "i32.const", imm: 0n });
|
||||
// ptr, len, 0
|
||||
instrs.push({ kind: "select" });
|
||||
// len
|
||||
break exprKind;
|
||||
}
|
||||
case "__memory_size": {
|
||||
assertArgs(0);
|
||||
instrs.push({ kind: "memory.size" });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue