From 3b4cb935f83c7fabacbf61146e56dabc0d65a441 Mon Sep 17 00:00:00 2001 From: Wouter van Oortmerssen Date: Fri, 18 Sep 2020 15:50:25 -0700 Subject: Initial implementation of "Memory64" proposal (#3130) Also includes a lot of new spec tests that eventually need to go into the spec repo --- src/wasm-stack.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/wasm-stack.h') 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 { public: - StackIRGenerator(MixedArena& allocator, Function* func) - : BinaryenIRWriter(func), allocator(allocator) {} + StackIRGenerator(Module& module, Function* func) + : BinaryenIRWriter(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() }; -- cgit v1.2.3