diff --git a/src/compiler/CodeGen.cpp b/src/compiler/CodeGen.cpp index d8092d4..b16ca49 100644 --- a/src/compiler/CodeGen.cpp +++ b/src/compiler/CodeGen.cpp @@ -67,13 +67,13 @@ namespace Theta { MEMORY_NAME.c_str() ); - // BinaryenAddTable( - // module, - // STRINGREF_TABLE.c_str(), - // 1000, - // 100000000, - // BinaryenTypeStringref() - // ); + BinaryenAddTable( + module, + STRINGREF_TABLE.c_str(), + 1000, + 100000000, + BinaryenTypeStringref() + ); StandardLibrary::registerFunctions(module); diff --git a/src/runtime/Runtime.hpp b/src/runtime/Runtime.hpp index b5f19a6..f5de3fe 100644 --- a/src/runtime/Runtime.hpp +++ b/src/runtime/Runtime.hpp @@ -5,6 +5,7 @@ #include #include "runtime/ExecutionContext.hpp" #include +#include using namespace std; @@ -68,6 +69,7 @@ namespace Theta { private: Runtime() { + v8::V8::SetFlagsFromString("--experimental-wasm-stringref"); engine = wasm::Engine::make(); store = wasm::Store::make(engine.get()); }