Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8f585979f1b4ed32e0cf6df10eecae6ea9a5ab66
      
https://github.com/WebKit/WebKit/commit/8f585979f1b4ed32e0cf6df10eecae6ea9a5ab66
  Author: Yusuke Suzuki <[email protected]>
  Date:   2026-04-24 (Fri, 24 Apr 2026)

  Changed paths:
    A JSTests/stress/bigint-cached-mod-edge-cases.js
    M Source/JavaScriptCore/runtime/JSBigInt.cpp
    M Source/JavaScriptCore/runtime/JSBigInt.h

  Log Message:
  -----------
  [JSC] Clean up V8's JSBigInt::cachedMod with more detailed comments
https://bugs.webkit.org/show_bug.cgi?id=313218
rdar://175496917

Reviewed by Yijia Huang.

Adding a bit more comments and cleaned up special methods to make the
intent clear as JSBigInt::cachedMod is complicated algorithm (this is
basically `BarrettDivRem` algorithm).

Test: JSTests/stress/bigint-cached-mod-edge-cases.js

* JSTests/stress/bigint-cached-mod-edge-cases.js: Added.
(shouldBe):
(throw.new.Error):
* Source/JavaScriptCore/runtime/JSBigInt.cpp:
(JSC::JSBigInt::multiplySpecialHigh):
(JSC::JSBigInt::cachedMod):
* Source/JavaScriptCore/runtime/JSBigInt.h:

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to