diff options
author | Andreas Kling <kling@serenityos.org> | 2020-11-19 21:45:10 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-11-19 21:46:01 +0100 |
commit | da413a464a10ac8da93869c8fbe559cf66a66df8 (patch) | |
tree | 220834dda9295c0de50166f421c786c614f3bdff /DevTools/UserspaceEmulator/Emulator.cpp | |
parent | 1b9a85e4f1eabc702e276924fb04ae4d570a67f6 (diff) | |
download | serenity-da413a464a10ac8da93869c8fbe559cf66a66df8.zip |
UserspaceEmulator: Inline some very hot functions
This improves the browser's load time on welcome.html by ~2%.
Diffstat (limited to 'DevTools/UserspaceEmulator/Emulator.cpp')
-rw-r--r-- | DevTools/UserspaceEmulator/Emulator.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/DevTools/UserspaceEmulator/Emulator.cpp b/DevTools/UserspaceEmulator/Emulator.cpp index 427eed248c..604f676071 100644 --- a/DevTools/UserspaceEmulator/Emulator.cpp +++ b/DevTools/UserspaceEmulator/Emulator.cpp @@ -199,14 +199,6 @@ int Emulator::exec() return m_exit_status; } -bool Emulator::is_in_malloc_or_free() const -{ - return (m_cpu.base_eip() >= m_malloc_symbol_start && m_cpu.base_eip() < m_malloc_symbol_end) - || (m_cpu.base_eip() >= m_free_symbol_start && m_cpu.base_eip() < m_free_symbol_end) - || (m_cpu.base_eip() >= m_realloc_symbol_start && m_cpu.base_eip() < m_realloc_symbol_end) - || (m_cpu.base_eip() >= m_malloc_size_symbol_start && m_cpu.base_eip() < m_malloc_size_symbol_end); -} - Vector<FlatPtr> Emulator::raw_backtrace() { Vector<FlatPtr, 128> backtrace; |