We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31a5722 commit 85d7b32Copy full SHA for 85d7b32
packages/wasm/src/index.js
@@ -455,21 +455,17 @@ class Assembler {
455
this.localSet('ret');
456
}
457
458
- pushStackFrame(n = 1) {
459
- if (n === 0) return;
460
-
+ pushStackFrame() {
461
this.globalGet('sp');
462
- this.i32Const(Assembler.STACK_FRAME_SIZE_BYTES * n);
+ this.i32Const(Assembler.STACK_FRAME_SIZE_BYTES);
463
this.i32Sub();
464
this.globalSet('sp');
465
this.savePos();
466
this.saveNumBindings();
467
468
469
- popStackFrame(n = 1) {
470
471
472
+ popStackFrame() {
473
474
this.i32Add();
475
0 commit comments