Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: a7d81ce30e154b29c4626b508aca5433f4cfa170 https://github.com/WebKit/WebKit/commit/a7d81ce30e154b29c4626b508aca5433f4cfa170 Author: Yusuke Suzuki <ysuz...@apple.com> Date: 2024-01-22 (Mon, 22 Jan 2024)
Changed paths: M Source/JavaScriptCore/runtime/LazyPropertyInlines.h M Source/WTF/wtf/LazyRef.h M Source/WTF/wtf/LazyUniqueRef.h M Source/WTF/wtf/StdLibExtras.h Log Message: ----------- Make isStatelessLambda check compile-time https://bugs.webkit.org/show_bug.cgi?id=267847 rdar://121360002 Reviewed by Justin Michaud. We can ensure that lambda is stateless at compile-time with constexpr isStatelessLambda function. This patch makes it constexpr, and using static_assert instead of RELEASE_ASSERT in LazyXXX classes. * Source/JavaScriptCore/runtime/LazyPropertyInlines.h: (JSC::ElementType>::initLater): * Source/WTF/wtf/LazyRef.h: (WTF::LazyRef::initLater): * Source/WTF/wtf/LazyUniqueRef.h: (WTF::LazyUniqueRef::initLater): * Source/WTF/wtf/StdLibExtras.h: (WTF::isStatelessLambda): Canonical link: https://commits.webkit.org/273307@main _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes