mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibWasm: Replace the numeric operation macros with templated functions
This should make debugging and profiling much better, at little to no runtime cost. Also moves off the operator definitions to a separate header, so it should also improve the editing experience quite a bit.
This commit is contained in:
committed by
Andreas Kling
parent
799471d16f
commit
563b402f04
@@ -40,6 +40,12 @@ protected:
|
||||
void store_to_memory(Configuration&, Instruction const&, ReadonlyBytes data);
|
||||
void call_address(Configuration&, FunctionAddress);
|
||||
|
||||
template<typename PopType, typename PushType, typename Operator>
|
||||
void binary_numeric_operation(Configuration&);
|
||||
|
||||
template<typename PopType, typename PushType, typename Operator>
|
||||
void unary_operation(Configuration&);
|
||||
|
||||
template<typename V, typename T>
|
||||
MakeUnsigned<T> checked_unsigned_truncate(V);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user