Closed
Bug 733260
Opened 13 years ago
Closed 13 years ago
Remove jsuint
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla13
People
(Reporter: dmandelin, Assigned: dmandelin)
References
Details
Attachments
(2 files)
101.52 KB,
patch
|
luke
:
review+
|
Details | Diff | Splinter Review |
84.71 KB,
patch
|
luke
:
review+
|
Details | Diff | Splinter Review |
I think this the last one (other than JSBool).
Assignee | ||
Comment 1•13 years ago
|
||
Most |jsuint| is for array indexes and lengths, so I used uint32_t per the new APIs. I also followed that for string lengths. I used |unsigned| at a few places case-by-case where it seemed that was wanted.
Attachment #603135 -
Flags: review?(luke)
Comment 2•13 years ago
|
||
Comment on attachment 603135 [details] [diff] [review]
Patch
It would be good to put something like this at the top of jsapi.h:
/* Basic JSAPI type assumptions: */
JS_STATIC_ASSERT(sizeof(unsigned) >= 4);
JS_STATIC_ASSERT(sizeof(int) >= 4);
including any others that you can think of from the recent de-typedef-ification.
Attachment #603135 -
Flags: review?(luke) → review+
Assignee | ||
Comment 3•13 years ago
|
||
(In reply to Luke Wagner [:luke] from comment #2)
> Comment on attachment 603135 [details] [diff] [review]
> Patch
>
> It would be good to put something like this at the top of jsapi.h:
>
> /* Basic JSAPI type assumptions: */
> JS_STATIC_ASSERT(sizeof(unsigned) >= 4);
> JS_STATIC_ASSERT(sizeof(int) >= 4);
Good idea. I'm pretty sure those two being less than 32 bits is the major breakage to worry about. Added to the landed patch.
http://hg.mozilla.org/integration/mozilla-inbound/rev/ae005ec67376
Target Milestone: --- → mozilla13
Comment 4•13 years ago
|
||
(In reply to David Mandelin from comment #1)
> Created attachment 603135 [details] [diff] [review]
> Patch
>
> Most |jsuint| is for array indexes and lengths, so I used uint32_t per the
> new APIs. I also followed that for string lengths. I used |unsigned| at a
> few places case-by-case where it seemed that was wanted.
You seem to have used |unsigned| everywhere.
Assignee | ||
Comment 5•13 years ago
|
||
(In reply to Ms2ger from comment #4)
> (In reply to David Mandelin from comment #1)
> > Created attachment 603135 [details] [diff] [review]
> > Patch
> >
> > Most |jsuint| is for array indexes and lengths, so I used uint32_t per the
> > new APIs. I also followed that for string lengths. I used |unsigned| at a
> > few places case-by-case where it seemed that was wanted.
>
> You seem to have used |unsigned| everywhere.
Thanks for catching! I brain-farted when writing my replace script. I'll post a followup that puts it how I wanted momentarily.
Assignee | ||
Comment 6•13 years ago
|
||
Switches from unsigned to uint32_t all the places I originally intended.
Attachment #603501 -
Flags: review?(luke)
Updated•13 years ago
|
Attachment #603501 -
Flags: review?(luke) → review+
Assignee | ||
Comment 7•13 years ago
|
||
Followup landed:
http://hg.mozilla.org/integration/mozilla-inbound/rev/5ca23d2045b6
Comment 8•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/ae005ec67376
https://hg.mozilla.org/mozilla-central/rev/5ca23d2045b6
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 9•13 years ago
|
||
Thanks, that makes a lot more sense.
You need to log in
before you can comment on or make changes to this bug.
Description
•