Prechádzať zdrojové kódy

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().
Andreas Kling 4 rokov pred
rodič
commit
61c56e75f4

+ 1 - 1
Userland/Libraries/LibJS/Runtime/Shape.cpp

@@ -117,7 +117,7 @@ Optional<PropertyMetadata> Shape::lookup(const StringOrSymbol& property_name) co
     return property;
 }
 
-const HashMap<StringOrSymbol, PropertyMetadata>& Shape::property_table() const
+FLATTEN HashMap<StringOrSymbol, PropertyMetadata> const& Shape::property_table() const
 {
     ensure_property_table();
     return *m_property_table;