Refactor interpreter.

This commit is contained in:
chriseth
2020-07-09 15:00:13 +02:00
parent 8548bf1b4c
commit ec2393d3b6
6 changed files with 69 additions and 75 deletions
+1 -3
View File
@@ -99,11 +99,9 @@ string EwasmTranslationTest::interpret()
InterpreterState state;
state.maxTraceSize = 10000;
state.maxSteps = 100000;
WasmDialect dialect;
Interpreter interpreter(state, dialect);
try
{
interpreter(*m_object->code);
Interpreter::run(state, WasmDialect{}, *m_object->code);
}
catch (InterpreterTerminatedGeneric const&)
{