Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 304cf0713b9de42f2df2d5eb876d0658916a22d1
https://github.com/WebKit/WebKit/commit/304cf0713b9de42f2df2d5eb876d0658916a22d1
Author: Yusuke Suzuki <[email protected]>
Date: 2026-02-08 (Sun, 08 Feb 2026)
Changed paths:
M Source/JavaScriptCore/runtime/JSBigInt.cpp
M Source/JavaScriptCore/runtime/JSBigInt.h
M Source/WebCore/bindings/js/SerializedScriptValue.cpp
Log Message:
-----------
[JSC] Remove JSBigInt::rightTrim and JSBigInt::tryRightTrim
https://bugs.webkit.org/show_bug.cgi?id=307243
rdar://169881775
Reviewed by Sosuke Suzuki.
We would like to just use the span based constructor, and do not want to
use allocated JSBigInt as a temporary buffer. Now we use Vector before
construction in SerializedScriptValue too and remove rightTrim /
tryRightTrim functions completely.
* Source/JavaScriptCore/runtime/JSBigInt.cpp:
(JSC::JSBigInt::tryCreateFromImpl):
(JSC::JSBigInt::createFrom):
(JSC::JSBigInt::exponentiateImpl):
(JSC::JSBigInt::multiplyImpl):
(JSC::JSBigInt::divideImpl):
(JSC::JSBigInt::remainderImpl):
(JSC::JSBigInt::incImpl):
(JSC::JSBigInt::decImpl):
(JSC::JSBigInt::bitwiseAndImpl):
(JSC::JSBigInt::bitwiseOrImpl):
(JSC::JSBigInt::bitwiseXorImpl):
(JSC::JSBigInt::bitwiseNotImpl):
(JSC::JSBigInt::absoluteAdd):
(JSC::JSBigInt::absoluteSub):
(JSC::JSBigInt::leftShiftByAbsolute):
(JSC::JSBigInt::rightShiftByAbsolute):
(JSC::JSBigInt::parseInt):
(JSC::JSBigInt::truncateToNBits):
(JSC::JSBigInt::truncateAndSubFromPowerOfTwo):
(JSC::JSBigInt::tryCreateFrom):
(JSC::JSBigInt::createFromImpl): Deleted.
(JSC::JSBigInt::rightTrim): Deleted.
(JSC::JSBigInt::tryRightTrim): Deleted.
* Source/JavaScriptCore/runtime/JSBigInt.h:
* Source/WebCore/bindings/js/SerializedScriptValue.cpp:
(WebCore::CloneDeserializer::readBigInt):
Canonical link: https://commits.webkit.org/307032@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications