Closed
Bug 717501
Opened 13 years ago
Closed 12 years ago
vm/Unicode.h:index{1,2} could be slimmed down
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
People
(Reporter: froydnj, Assigned: froydnj)
Details
Attachments
(1 file, 1 obsolete file)
2.38 KB,
patch
|
evilpie
:
review+
|
Details | Diff | Splinter Review |
Both js::unicode::index{1,2} are declared as arrays of uint16_t, but no entries in either array are larger than 255. They should be declared as arrays of uint8_t; doing so saves about 12K of space.
Assignee | ||
Comment 1•13 years ago
|
||
Patch. The change to size_t is to make it obvious that we're not depending on the size of the array's element type. The assert change in make_unicode.py makes the code more obvious, I think.
Attachment #587922 -
Flags: review?(evilpies)
Assignee | ||
Comment 2•13 years ago
|
||
Now with a correct assert!
Attachment #587922 -
Attachment is obsolete: true
Attachment #587922 -
Flags: review?(evilpies)
Attachment #587924 -
Flags: review?(evilpies)
Comment 3•13 years ago
|
||
Comment on attachment 587924 [details] [diff] [review] patch Review of attachment 587924 [details] [diff] [review]: ----------------------------------------------------------------- Thanks, good find! I guess after 3+ iterations of this patch, I somehow didn't catch this anymore. From my memory there was something at the first try that prevent me from making them uint8.
Attachment #587924 -
Flags: review?(evilpies) → review+
Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
Updated•12 years ago
|
Assignee: general → nfroyd
Comment 4•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/6f3285fc0d02
Keywords: checkin-needed
Whiteboard: [inbound]
Comment 5•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/6f3285fc0d02
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [inbound]
You need to log in
before you can comment on or make changes to this bug.
Description
•