Closed Bug 558227 Opened 15 years ago Closed 15 years ago

JM: PIC for SETPROP

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dmandelin, Assigned: dmandelin)

References

Details

Attachments

(1 file)

Mostly the inverse of getprop. The interpreter has an optimization for code like: for (...) { o = {} o.a = 8; o.b = 9; // we set to the same slot, and end up with same shape every time } where it holds the sprop for the new property in the prop cache entry, so it can try to increase the slot count in the object and update the scope without doing a full putProperty. That's way too complicated to do outside a stub call, but it probably still makes sense to do (inside a stub call). Testing will tell.
Attached patch WIPSplinter Review
Pushed the basic PIC. Now it needs perf testing.
OK, done. Any further work in this area can be in new bugs.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: