Closed Bug 845841 Opened 12 years ago Closed 12 years ago

IonMonkey: Don't optimize element read if value may be string

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla22

People

(Reporter: jandem, Assigned: jandem)

References

Details

Attachments

(1 file)

Attached patch Patch (deleted) — Splinter Review
v8-crypto has a function (bnpFromString) where an argument is either an array or a string. Currently Ion treats it as an object and this can lead to lots of bailouts. The attached patch is a small win on inbound and makes BL+Ion faster than JM+Ion.
Attachment #719011 - Flags: review?(bhackett1024)
Summary: IonMonkey: Don't optimize element read/write if value may be string → IonMonkey: Don't optimize element read if value may be string
Comment on attachment 719011 [details] [diff] [review] Patch Hmm. If it can be a string or an array, how come getKnownClass returns non-null in elementReadIsDenseNative?
(In reply to Boris Zbarsky (:bz) from comment #1) > Hmm. If it can be a string or an array, how come getKnownClass returns > non-null in elementReadIsDenseNative? If getKnownClass returns non-NULL, it means the value has that class *if it's an object*. The TypeSet can still include other types.
Ouch. OK, will keep that in mind.
Attachment #719011 - Flags: review?(bhackett1024) → review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: