Closed
Bug 374339
Opened 19 years ago
Closed 14 years ago
Add support for 64-bit integers
Categories
(Core :: JavaScript Engine, enhancement)
Core
JavaScript Engine
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: bugzilla, Unassigned)
References
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2
Build Identifier: js-1.60.tar.gz
I am trying to use SM within my application. Unfortunately it doesn't support 64 bit integers. jsdouble type solves this problem only partially - it can exactly store only about 50-bit numbers.
Reproducible: Always
Steps to Reproduce:
1. Do nothing
Comment 2•15 years ago
|
||
What's the prospect of getting this since the advent of fatvals? (bug 549143)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 3•15 years ago
|
||
fatvals does not help -- 64-bit IEEE754 double NaN-boxing leaves only 47 bits free. 128-bit values on x64 would help. Otherwise and lacking type inference all the way, it's heap-boxing time.
/be
Comment 4•15 years ago
|
||
Ok, I see. I just re-read an old blog post on the topic and fatvals got things from 31-bit to true 32-bit integers without having to store in a double and got doubles off the heap.
In that case, are there any plans for eventually implementing 64-bit integers or 128-bit floating point numbers, and thus 113-bit integers the same way we get to 53-bit integers now, stored on the heap as doubles once were?
Comment 5•15 years ago
|
||
JS is sticking with 64-bit double for its number type; no 80-bit or beyond. The 128-bit boxing idea is for x64 where it seems like it might win. It would avoid hiding non-double, non-canonical-NaN values' types in the high-order mantissa bits of NaN values. See bug 577056.
/be
Comment 6•14 years ago
|
||
WONTFIX'ing this specific bug since the JS engine is not the right place to "add 64-bit integers"; that would be the ECMAScript standards body.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•