Chromium Code Reviews
DescriptionAdd a new api in ObjectTemplate to prohibit interceptor for v8DOM binding
JS code HTMLCollection.length jited to go to interceptor callback,
And In the native, the interceptor callback will first check whether
the property is HasRealNamedProperty(), For HTMLCollection.length,
it is true, so the interceptor callback fails and later go to the real
length-getter handler. So for very length-getter, it needs the extra
overhead of name lookup as the slow-path do.
This patch adds a new API in ObjectTemplate to prohibit the interceptor
for v8 binding of HTMLCollection, and improve chrome
http://dromaeo.com/?dom-query by 20%.
[closed since it was superseded by dcarney's appending interceptors]
BUG=v8:3464
LOG=Y
Patch Set 1 #Patch Set 2 : rework the patch by adding new kind of interceptor #
Messages
Total messages: 13 (0 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||