Closed Bug 1162199 Opened 5 years ago Closed 5 years ago

Use unboxed objects by default


(Core :: JavaScript Engine, defect)

Not set



Tracking Status
firefox41 --- fixed


(Reporter: bhackett1024, Assigned: bhackett1024)




(1 file)

Attached patch patchSplinter Review
Unboxed objects improve all our major benchmarks (octane by 2-3%) and don't regress any of the assorted tests on AWFY.  They're also a good memory savings when we can use them.  The attached patch turns them on by default.  I'll wait to land this until after the next merge and after bug 1161762 is fixed (the only remaining unboxed object crash I think.)

Since there isn't any need to control these with an about:config option I removed the unboxed objects option from RuntimeOptions and added a flag in JitOptions, as Hannes suggested in bug 1153266.  I hope that eventually this file will be generalized so that it isn't JIT specific, but for now this doesn't seem too bad and the weirdness with the different control mechanism for unboxed arrays will be fixed when they are also on by default.
Attachment #8602263 - Flags: review?(jdemooij)
Fuzzing team: when this patch lands, --unboxed-objects won't be available anymore, and will be replaced by the opposite --no-unboxed-objects, still useful to test (in differential mode at least).
Got it. Thanks for the headsup!
Comment on attachment 8602263 [details] [diff] [review]

Review of attachment 8602263 [details] [diff] [review]:

Attachment #8602263 - Flags: review?(jdemooij) → review+
Assignee: nobody → bhackett1024
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
The regression detection was quite pleased with this landing.
Overall this is an improvement on octane/kraken/ss.
There are some specific tests that regressed and might be interesting to look at,
but given the overall improvement, I'm not tracking the specific tests.

Mac OS X 10.10 32-bit (Mac Pro, shell)
- misc: typedobj-simple-struct-typedobj: 31.37% (regression)
- misc: typedobj-splay-typedobj: 2.66% (regression)
- misc: bugs-1131099-lodash2: 7.35% (regression)
- misc: basic-hoist-bounds-check: 2.84% (regression)
- octane: Box2D: -1.94% (regression)
- octane: Typescript: -4.39% (regression)
- dart: Richards: 17.91% (regression)

More details:

Mac OS X 10.10 64-bit (Mac Pro, shell)
- kraken: stringify-tinderbox: 9.38% (regression)
- kraken: crypto-aes: 1.58% (regression)
- misc: bugs-847389-jpeg2000: 0.58% (regression)
- dart: Richards: 7.01% (regression)

More details:
Flags: needinfo?(bhackett1024)
Depends on: 1166730
Depends on: 1166277
No longer depends on: 1166730
Depends on: 1168667
Depends on: 1167860
Depends on: 1171405
Depends on: 1182865
Depends on: 1182866
No longer depends on: 1182866
Depends on: 1189137
Depends on: CVE-2019-9791
You need to log in before you can comment on or make changes to this bug.