[Webkit-unassigned] [Bug 193869] [BigInt] Support constant fold of BigInts on DFG

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jan 26 10:28:14 PST 2019


https://bugs.webkit.org/show_bug.cgi?id=193869

--- Comment #1 from Caio Lima <ticaiolima at gmail.com> ---
What I have in mind to make it possible is to follow what we do with Strings right now. The idea is to use LazyJSValue, since we can only allocate heap objects after compilation is finished. In the case of LazyJaValues of BigInts, the plan is to record following information:

1. lhs and rhs operands;
2. Type of operation;

To have a robust implementation and fold constants properly, lhs and rhs should be LazyJSValues that also can be computed on further steps.
We need to change JSBigInt API to support arithmetic operations that can't fail due OOM.
Also, we need to guarantee when constant fold happens that we won't overflow BigInt::maxSize.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190126/c702467d/attachment.html>


More information about the webkit-unassigned mailing list