mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 21:12:08 +02:00
LibJS: Add fast_is<T>() for things that were hot in RTTI
This gives a ~4% speedup when parsing the largest Discord JS file.
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 18:55:47 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/515594c667
@@ -134,4 +134,7 @@ private:
|
||||
FunctionKind m_kind : 3 { FunctionKind::Normal };
|
||||
};
|
||||
|
||||
template<>
|
||||
inline bool Object::fast_is<ECMAScriptFunctionObject>() const { return is_ecmascript_function_object(); }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user