Open Bug 803281 Opened 14 years ago Updated 2 years ago

IonMonkey: Improve performance of own-property gets on ListBase proxies

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect

Tracking

()

People

(Reporter: bzbarsky, Unassigned)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [ion:p2])

I was profiling the patches from bug 803129 and we're spending a lot of time in ion::GetPropertyCache. Only 65% of our time under there is spent calling proxy_GetGeneric. Worse yet, the proxy then has to go and redo 10% more work that we already did (to verify that the prop is not on the proto chain). I'm not really sure what we can do with that last bit without adding some more proxy handler APIs, but can we cache, for a listbase proxy, that we should just call proxy_GetGeneric if the prop is _not_ on the proto chain?
Does IonMonkey have listbase ICs yet?
Summary: Improve performance of own-property gets on ListBase proxies in ion → IonMonkey: Improve performance of own-property gets on ListBase proxies
It has an IC for things that live on the proto chain, which is what's needed for .length on nodelists. But for things like DOMStringMap the own-property gets are what matters.
Does own-property gets mean that the props are set on the expando for the ListBase proxy?
No. It means they're being proxied. So in an ideal world the way this would work is that the cache would call some new proxy hook we would add which would be just like get() but communicate to proxy that the property was not on the proto chain. But as a first step, just calling proxy_GetGeneric via the cache might be a good improvement.
Depends on: 870508
Depends on: 875452
Assignee: general → nobody
Blocks: sm-dom
Severity: normal → S3

:jandem, :peter : Anything further to do here?

You need to log in before you can comment on or make changes to this bug.