Summary: | [V8] Bindings for accessors never use the name param | ||
---|---|---|---|
Product: | WebKit | Reporter: | Erik Arvidsson <arv> |
Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WONTFIX | ||
Severity: | Normal | CC: | antonm, haraken, japhet |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Description
Erik Arvidsson
2012-02-21 11:06:19 PST
(In reply to comment #0) > V8HTMLDocument::allAccessorSetter > > This one can be fixed by only having a custom getter Actually this one needs to be replaced with the hard coded string "all". (In reply to comment #1) > (In reply to comment #0) > > V8HTMLDocument::allAccessorSetter > > > > This one can be fixed by only having a custom getter > > Actually this one needs to be replaced with the hard coded string "all". Erik, do I understand you right that you want to remove it from public v8 API? If yes, it might be questionable---sometimes it's convenient to have generic accessors. The V8 bindings are very slow and even though this is not a big deal it is extra work that we clearly do not need. Would it make sense to have V8 support both? Maybe supporting both would make things slower? (In reply to comment #3) > The V8 bindings are very slow and even though this is not a big deal it is extra work that we clearly do not need. > > Would it make sense to have V8 support both? Maybe supporting both would make things slower? I don't think v8 bindings are very slow :) Name support on ia32 is three additional instructions (push reg, mov reg/reg, mov reg/mem) and two additional slots on the stack. Not sure if it will save us a lot, but it's always worth trying. V8 is generally twice as slow as JSC bindings. A year ago we were faster :) Looks like several huge regressions slipped in. (In reply to comment #5) > V8 is generally twice as slow as JSC bindings. (In reply to comment #4) > (In reply to comment #3) > > Would it make sense to have V8 support both? Maybe supporting both would make things slower? > > I don't think v8 bindings are very slow :) I am not yet sure how much the name support has impacted on V8 performance, but V8 is seriously slow. You can find the data in this SpreadSheet (https://docs.google.com/a/google.com/spreadsheet/ccc?key=0ArGPzKNdEGeQdEttZTAxWXJwMVdWeGxjbDgxMExYSEE#gid=0) or the perf-o-matic results (http://webkit-perf.appspot.com/index.html). I don't think this would do much but it is clearly doing more work than we need to do. |