It's cool to elide the overflow check on: a + 5432645326542 but it's not cool to elide all checks on: a + 654365375437 + 5432645326542 because the combined overflow might lead to bad results. Disclaimer: the above constants were created by randomly tapping the keyboard. The bug actually occurs when you have constants close to 2^48.
Created attachment 179850 [details] the patch
Comment on attachment 179850 [details] the patch Attachment 179850 [details] did not pass qt-ews (qt): Output: http://queues.webkit.org/results/15375929
Comment on attachment 179850 [details] the patch Attachment 179850 [details] did not pass qt-wk2-ews (qt): Output: http://queues.webkit.org/results/15371959
Landed in http://trac.webkit.org/changeset/137980