1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:37:35 +00:00

LibJS/JIT: Dump disassembly of generated code using LibX86

This avoids the need for redirecting stdout to a file and using
ndisasm, which can lead to problems if other things are printed.
This commit is contained in:
Simon Wanner 2023-10-23 18:37:29 +02:00 committed by Andreas Kling
parent 1d68c64b98
commit ec8330b647
4 changed files with 48 additions and 1 deletions

View file

@ -21,6 +21,7 @@ public:
~NativeExecutable();
void run(VM&) const;
void dump_disassembly() const;
private:
void* m_code { nullptr };