Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 92af3ef78f8ed88d0276583f82fb702b47713d71
      
https://github.com/WebKit/WebKit/commit/92af3ef78f8ed88d0276583f82fb702b47713d71
  Author: Keita Nonaka <[email protected]>
  Date:   2025-05-05 (Mon, 05 May 2025)

  Changed paths:
    M Source/JavaScriptCore/runtime/MathObject.cpp

  Log Message:
  -----------
  [JSC] Optimize `Math.hypot` branch prediction with `likely` for 2 and 3 
argument cases
https://bugs.webkit.org/show_bug.cgi?id=292486

Reviewed by Yusuke Suzuki and Keith Miller.

The typical use case for Math.hypot involves 2 or 3 arguments,
so [[likely]] was added to improve branch prediction

                        TipOfTree              Patched                Ratio
math-hypot              0.8580+-0.0997         0.8003+-0.0378         1.0720x 
faster

* Source/JavaScriptCore/runtime/MathObject.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):

Canonical link: https://commits.webkit.org/294540@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to