summaryrefslogtreecommitdiff
path: root/src/wasm-stack.h
diff options
context:
space:
mode:
authorWouter van Oortmerssen <aardappel@gmail.com>2020-09-18 15:50:25 -0700
committerGitHub <noreply@github.com>2020-09-18 15:50:25 -0700
commit3b4cb935f83c7fabacbf61146e56dabc0d65a441 (patch)
tree9aaac74aad59fe2ff2b00ac6e6a77bb808b01747 /src/wasm-stack.h
parent1a928bc3ff4b511e81b3f93db8aea872e88abaaf (diff)
downloadbinaryen-3b4cb935f83c7fabacbf61146e56dabc0d65a441.tar.gz
binaryen-3b4cb935f83c7fabacbf61146e56dabc0d65a441.tar.bz2
binaryen-3b4cb935f83c7fabacbf61146e56dabc0d65a441.zip
Initial implementation of "Memory64" proposal (#3130)
Also includes a lot of new spec tests that eventually need to go into the spec repo
Diffstat (limited to 'src/wasm-stack.h')
-rw-r--r--src/wasm-stack.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wasm-stack.h b/src/wasm-stack.h
index 6a926eddf..13cce6d6f 100644
--- a/src/wasm-stack.h
+++ b/src/wasm-stack.h
@@ -429,8 +429,8 @@ private:
// Queues the expressions linearly in Stack IR (SIR)
class StackIRGenerator : public BinaryenIRWriter<StackIRGenerator> {
public:
- StackIRGenerator(MixedArena& allocator, Function* func)
- : BinaryenIRWriter<StackIRGenerator>(func), allocator(allocator) {}
+ StackIRGenerator(Module& module, Function* func)
+ : BinaryenIRWriter<StackIRGenerator>(func), module(module) {}
void emit(Expression* curr);
void emitScopeEnd(Expression* curr);
@@ -443,7 +443,7 @@ public:
}
void emitFunctionEnd() {}
void emitUnreachable() {
- stackIR.push_back(makeStackInst(Builder(allocator).makeUnreachable()));
+ stackIR.push_back(makeStackInst(Builder(module).makeUnreachable()));
}
void emitDebugLocation(Expression* curr) {}
@@ -455,7 +455,7 @@ private:
return makeStackInst(StackInst::Basic, origin);
}
- MixedArena& allocator;
+ Module& module;
StackIR stackIR; // filled in write()
};