diff options
author | Ali Mohammad Pur <mpfard@serenityos.org> | 2021-07-17 01:04:37 +0430 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-17 01:04:37 +0430 |
commit | 35394dbfaa23b44a293da85b20a63a10f73572c3 (patch) | |
tree | 152449f3fa61c4b32d70c6fb12896b32429aada2 /Tests | |
parent | 3099a6bf2add35ac6a0c7ce4cbb6c794d6269d19 (diff) | |
download | serenity-35394dbfaa23b44a293da85b20a63a10f73572c3.zip |
LibWasm: Some more performance stuff (#8812)
* wasm: Don't try to print the function results if it traps
* LibWasm: Inline some very hot functions
These are mostly pretty small functions too, and they were about ~10%
of runtime.
* LibWasm+Everywhere: Make the instruction count limit configurable
...and enable it for LibWeb and test-wasm.
Note that `wasm` will not be limited by this.
* LibWasm: Remove a useless use of ScopeGuard
There are no multiple exit paths in that function, so we can just put
the ending logic right at the end of the function instead.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/LibWasm/test-wasm.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/LibWasm/test-wasm.cpp b/Tests/LibWasm/test-wasm.cpp index 2cb6abe619..d0b16d7d70 100644 --- a/Tests/LibWasm/test-wasm.cpp +++ b/Tests/LibWasm/test-wasm.cpp @@ -34,6 +34,7 @@ public: explicit WebAssemblyModule(JS::Object& prototype) : JS::Object(prototype) { + m_machine.enable_instruction_count_limit(); } static Wasm::AbstractMachine& machine() { return m_machine; } |