1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 10:15:08 +00:00

UserspaceEmulator: Inline some very hot functions

This improves the browser's load time on welcome.html by ~2%.
This commit is contained in:
Andreas Kling 2020-11-19 21:45:10 +01:00
parent 1b9a85e4f1
commit da413a464a
6 changed files with 33 additions and 34 deletions

View file

@ -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;