From 61c56e75f4142dc839e229b8d08e83218dd01cf0 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 6 Jun 2021 22:54:43 +0200 Subject: [PATCH] LibJS: Flatten Shape::property_table() In the common case, we take the early return in ensure_property_table() so let's make sure it gets inlined into property_table(). --- Userland/Libraries/LibJS/Runtime/Shape.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Runtime/Shape.cpp b/Userland/Libraries/LibJS/Runtime/Shape.cpp index 09c2f216dd..f21906be0f 100644 --- a/Userland/Libraries/LibJS/Runtime/Shape.cpp +++ b/Userland/Libraries/LibJS/Runtime/Shape.cpp @@ -117,7 +117,7 @@ Optional Shape::lookup(const StringOrSymbol& property_name) co return property; } -const HashMap& Shape::property_table() const +FLATTEN HashMap const& Shape::property_table() const { ensure_property_table(); return *m_property_table;