<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>79129</bug_id>
          
          <creation_ts>2012-02-21 11:06:19 -0800</creation_ts>
          <short_desc>[V8] Bindings for accessors never use the name param</short_desc>
          <delta_ts>2014-04-11 07:26:28 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Erik Arvidsson">arv</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>antonm</cc>
    
    <cc>haraken</cc>
    
    <cc>japhet</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>561046</commentid>
    <comment_count>0</comment_count>
    <who name="Erik Arvidsson">arv</who>
    <bug_when>2012-02-21 11:06:19 -0800</bug_when>
    <thetext>The V8 bindings use v8::AccessorGetter and v8::AccessorSetter which takes the name of the property (as a v8::String) as the first argument. This is never[*] used in the binding code so we should get rid of it.

[*] There are two instances of these.

V8HTMLDocument::allAccessorSetter

This one can be fixed by only having a custom getter

V8MessageEvent::dataAccessorGetter:

This one can be replaced with a new v8::String</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>561097</commentid>
    <comment_count>1</comment_count>
    <who name="Erik Arvidsson">arv</who>
    <bug_when>2012-02-21 11:48:04 -0800</bug_when>
    <thetext>(In reply to comment #0)
&gt; V8HTMLDocument::allAccessorSetter
&gt; 
&gt; This one can be fixed by only having a custom getter

Actually this one needs to be replaced with the hard coded string &quot;all&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>564182</commentid>
    <comment_count>2</comment_count>
    <who name="anton muhin">antonm</who>
    <bug_when>2012-02-24 04:03:24 -0800</bug_when>
    <thetext>(In reply to comment #1)
&gt; (In reply to comment #0)
&gt; &gt; V8HTMLDocument::allAccessorSetter
&gt; &gt; 
&gt; &gt; This one can be fixed by only having a custom getter
&gt; 
&gt; Actually this one needs to be replaced with the hard coded string &quot;all&quot;.

Erik, do I understand you right that you want to remove it from public v8 API?

If yes, it might be questionable---sometimes it&apos;s convenient to have generic accessors.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>564363</commentid>
    <comment_count>3</comment_count>
    <who name="Erik Arvidsson">arv</who>
    <bug_when>2012-02-24 09:12:00 -0800</bug_when>
    <thetext>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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>564417</commentid>
    <comment_count>4</comment_count>
    <who name="anton muhin">antonm</who>
    <bug_when>2012-02-24 10:07:44 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; 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.
&gt; 
&gt; Would it make sense to have V8 support both? Maybe supporting both would make things slower?

I don&apos;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&apos;s always worth trying.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>564479</commentid>
    <comment_count>5</comment_count>
    <who name="Erik Arvidsson">arv</who>
    <bug_when>2012-02-24 11:05:54 -0800</bug_when>
    <thetext>V8 is generally twice as slow as JSC bindings.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>564483</commentid>
    <comment_count>6</comment_count>
    <who name="anton muhin">antonm</who>
    <bug_when>2012-02-24 11:09:16 -0800</bug_when>
    <thetext>A year ago we were faster :)  Looks like several huge regressions slipped in.

(In reply to comment #5)
&gt; V8 is generally twice as slow as JSC bindings.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>564700</commentid>
    <comment_count>7</comment_count>
    <who name="Kentaro Hara">haraken</who>
    <bug_when>2012-02-24 15:21:26 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; Would it make sense to have V8 support both? Maybe supporting both would make things slower?
&gt; 
&gt; I don&apos;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).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>564707</commentid>
    <comment_count>8</comment_count>
    <who name="Erik Arvidsson">arv</who>
    <bug_when>2012-02-24 15:28:24 -0800</bug_when>
    <thetext>I don&apos;t think this would do much but it is clearly doing more work than we need to do.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>