Status: New
Owner: ----
New issue 3464 by [email protected]: add a new flag in ObjectTemplate to
prohibit the Interceptor for v8 binding of HTMLCollection
http://code.google.com/p/v8/issues/detail?id=3464
Detailed description of the issue.
Run http://dromaeo.com/?dom-query in your chrome.
In current blink, js code HTMLCollection.length first jited to go to
interceptor callback, because it registers SetNamedPropertyHandler(), and
thus interceptor works(in gen/blink/bindings/core/v8/V8HTMLCollection.cpp)
when configureV8HTMLCollectionTemplate. And In the native binding, the
interceptor callback will check whether the property is
HasRealNamedProperty(name), where the lookup is very time-consuming. For
HTMLCollection.length, the lookup result is true, and the interceptor
callback will fail and later it goes to the real name
getter(HTMLCollectionV8Internal::lengthAttributeGetterCallback).
So for very length-getter, it always needs the extra overhead of name
lookup as the slow-path does. I think there would be some improvement by
add a new flag for DOM object to prohibit the Interceptor.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.