Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 81cd57ae80ca47a6ad3beaab8ced487b69351f99 https://github.com/WebKit/WebKit/commit/81cd57ae80ca47a6ad3beaab8ced487b69351f99 Author: Sosuke Suzuki <sos...@bun.sh> Date: 2025-08-28 (Thu, 28 Aug 2025)
Changed paths: M Source/JavaScriptCore/Scripts/wkbuiltins/builtins_generator.py M Source/JavaScriptCore/Scripts/wkbuiltins/builtins_model.py M Source/JavaScriptCore/bytecode/UnlinkedFunctionExecutable.cpp M Source/JavaScriptCore/bytecode/UnlinkedFunctionExecutable.h M Source/JavaScriptCore/runtime/InlineAttribute.h Log Message: ----------- [JSC] Add `@neverInline` attribute for JS builtins https://bugs.webkit.org/show_bug.cgi?id=297890 Reviewed by Yusuke Suzuki. This patch adds the `@neverInline` attribute for JS builtin functions to prevent them from being inlined by the DFG JIT compiler. This attribute uses the same mechanism as `$vm.noInline` to suppress inlining by setting the `m_neverInlined` flag on the FunctionExecutable. This new attribute is not expected to be used frequently. However, it will be useful for special use cases such as implementing asynchronous stack traces[1]. [1]: https://bugs.webkit.org/show_bug.cgi?id=296261 * Source/JavaScriptCore/Scripts/wkbuiltins/builtins_generator.py: (BuiltinsGenerator.generate_embedded_code_data_for_function): * Source/JavaScriptCore/Scripts/wkbuiltins/builtins_model.py: (BuiltinFunction.__init__): (BuiltinFunction.fromString): * Source/JavaScriptCore/bytecode/UnlinkedFunctionExecutable.cpp: (JSC::UnlinkedFunctionExecutable::link): * Source/JavaScriptCore/bytecode/UnlinkedFunctionExecutable.h: * Source/JavaScriptCore/runtime/InlineAttribute.h: Canonical link: https://commits.webkit.org/299245@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes