The default bug view has changed. See this FAQ.

CacheIR: Attach DenseElementHole even with zero dense elements

RESOLVED FIXED in Firefox 53



JavaScript Engine: JIT
3 months ago
3 months ago


(Reporter: evilpie, Assigned: evilpie)


(Blocks: 1 bug)


Firefox Tracking Flags

(firefox53 fixed)



(1 attachment, 1 obsolete attachment)



3 months ago
Created attachment 8822943 [details] [diff] [review]

Found on twitter again. As long as the object doesn't have indexed properties besides dense elements we should be able to attach this IC even when the initialized length is zero. This basically means there are no indexed elements anywhere on that object.

Comment 1

3 months ago
Apparently there is some edge case where this is causing issues: Just started debugging.

Comment 2

3 months ago
For some reason we are attaching the stub for CData objects ( which should be impossible, because that class has a getProperty ClassOps, which we check for in ClassCanHaveExtraProperties. Compiler bug?

Comment 3

3 months ago
Created attachment 8823421 [details] [diff] [review]
v1 Attach dense element hole IC even with zero dense elements

Somehow I didn't spot the difference between getProperty in ClassOps and ObjectOps. 

Anyway I am asking Brian for additional review. What we are trying to accomplish here is make sure that indexed properties would either be defined as a dense element or not exist at all. This also means if the object currently has zero dense elements we have to make sure there is no other way for indexed properties to appear.
Assignee: nobody → evilpies
Attachment #8822943 - Attachment is obsolete: true
Attachment #8823421 - Flags: review?(jdemooij)
Attachment #8823421 - Flags: review?(bhackett1024)
Comment on attachment 8823421 [details] [diff] [review]
v1 Attach dense element hole IC even with zero dense elements

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

Attachment #8823421 - Flags: review?(jdemooij) → review+
Attachment #8823421 - Flags: review?(bhackett1024) → review+

Comment 5

3 months ago
Pushed by
Attach dense element hole IC even with zero dense elements. r=jandem,bhackett

Comment 6

3 months ago
This patch caused a 40% improvement in

Comment 7

3 months ago
Last Resolved: 3 months ago
status-firefox53: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
You need to log in before you can comment on or make changes to this bug.