Skip to content

Commit ca48e01

Browse files
committed
[JSC] Remove remaining BIGINT32 code
https://bugs.webkit.org/show_bug.cgi?id=328786 Reviewed by Yusuke Suzuki. 324510@main removed BIGINT32, but two `#if USE(BIGINT32)` blocks were left in JSBigInt.cpp. This patch removes them. * Source/JavaScriptCore/runtime/JSBigInt.cpp: (JSC::JSBigInt::tryToBigUInt64): (JSC::JSBigInt::tryToBigInt64): Canonical link: https://commits.webkit.org/324786@main
1 parent b638631 commit ca48e01

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

‎Source/JavaScriptCore/runtime/JSBigInt.cpp‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6207,14 +6207,6 @@ uint64_t JSBigInt::toBigUInt64Heap(JSBigInt* bigInt)
62076207
std::optional<uint64_t> JSBigInt::tryToBigUInt64(JSValue bigInt)
62086208
{
62096209
ASSERT(bigInt.isBigInt());
6210-
#if USE(BIGINT32)
6211-
if (bigInt.isBigInt32()) {
6212-
int32_t value = bigInt.bigInt32AsInt32();
6213-
if (value < 0)
6214-
return std::nullopt;
6215-
return static_cast<uint64_t>(value);
6216-
}
6217-
#endif
62186210
JSBigInt* heapBigInt = bigInt.asHeapBigInt();
62196211
if (heapBigInt->sign())
62206212
return std::nullopt;
@@ -6224,10 +6216,6 @@ std::optional<uint64_t> JSBigInt::tryToBigUInt64(JSValue bigInt)
62246216
std::optional<int64_t> JSBigInt::tryToBigInt64(JSValue bigInt)
62256217
{
62266218
ASSERT(bigInt.isBigInt());
6227-
#if USE(BIGINT32)
6228-
if (bigInt.isBigInt32())
6229-
return static_cast<int64_t>(bigInt.bigInt32AsInt32());
6230-
#endif
62316219
JSBigInt* heapBigInt = bigInt.asHeapBigInt();
62326220
auto magnitude = heapBigInt->tryAbsoluteValueAsUInt64();
62336221
if (!magnitude)

0 commit comments

Comments
 (0)