LibWasm: Remove type information from Value

Gets fib(30) from 380ms to 340ms.
This commit is contained in:
Diego Frias
2024-08-04 08:06:50 -07:00
committed by Ali Mohammad Pur
parent a2448308fd
commit a58704296c
12 changed files with 349 additions and 287 deletions

View File

@@ -28,7 +28,7 @@ Result Configuration::call(Interpreter& interpreter, FunctionAddress address, Ve
locals.ensure_capacity(locals.size() + wasm_function->code().func().locals().size());
for (auto& local : wasm_function->code().func().locals()) {
for (size_t i = 0; i < local.n(); ++i)
locals.empend(local.type(), 0ull);
locals.append(Value());
}
set_frame(Frame {