Closed Bug 960653 Opened 10 years ago Closed 10 years ago

shrink JSJitInfo.{protoID,depth} fields

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla29

People

(Reporter: froydnj, Assigned: froydnj)

References

Details

Attachments

(2 files)

      No description provided.
Technically, I think that narrowing warnings in GCC/Clang (MSVC?) would catch
this too, but this is a more robust solution that doesn't rely on faraway
warning flags in the build system.

The uint64_t cast is to make this compile with the current uint32_t field
definitions; the shift would be undefined if the |1| was of type int.
Attachment #8361203 - Flags: review?(bzbarsky)
Trivial change which buys us another four bytes.
Attachment #8361205 - Flags: review?(efaustbmo)
Comment on attachment 8361203 [details] [diff] [review]
part 1 - assert that we don't overflow JSJitInfo fields in bindings codegen

r=me
Attachment #8361203 - Flags: review?(bzbarsky) → review+
Comment on attachment 8361205 [details] [diff] [review]
part 2 - change JSJitInfo.{protoID,depth} to 16-bit fields

r=me, fwiw.  Feel free to just go with it.
Attachment #8361205 - Flags: review+
Assignee: nobody → nfroyd
Depends on: 952777
Comment on attachment 8361205 [details] [diff] [review]
part 2 - change JSJitInfo.{protoID,depth} to 16-bit fields

Review of attachment 8361205 [details] [diff] [review]:
-----------------------------------------------------------------

Yeah, this should be fine. r=me
Attachment #8361205 - Flags: review?(efaustbmo) → review+
https://hg.mozilla.org/mozilla-central/rev/2da6a47736c5
https://hg.mozilla.org/mozilla-central/rev/4b7079694645
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: