bee-browser / bee

An HTML5-compliant small browser engine for embedding
Apache License 2.0
4 stars 1 forks source link

perf(jsruntime): improve exception handling #201

Open masnagam opened 3 months ago

masnagam commented 3 months ago

performance degraration occurred in b720076b29a74ec733ccadffeeb3af9e0f681d33 (bencher report).

this degraration probably caused due to the exception handling in Compiler::Call(): https://github.com/bee-browser/bee/blob/b720076b29a74ec733ccadffeeb3af9e0f681d33/libs/jsruntime/src/bridge/llvmir/compiler.cc#L776-L790

by this change, the exception handling always performs every function call.

in this issue, we investigate ways to improve the exception handling.

masnagam commented 3 months ago

llvm has its own exception handling: Exception Handling in LLVM.