<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Unite op_get_by_id_with_this with op_get_by_id"
   href="https://bugs.webkit.org/show_bug.cgi?id=162124#c14">Comment # 14</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Unite op_get_by_id_with_this with op_get_by_id"
   href="https://bugs.webkit.org/show_bug.cgi?id=162124">bug 162124</a>
              from <span class="vcard"><a class="email" href="mailto:ticaiolima&#64;gmail.com" title="Caio Lima &lt;ticaiolima&#64;gmail.com&gt;"> <span class="fn">Caio Lima</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=162124#c13">comment #13</a>)
<span class="quote">&gt; Comment on <span class=""><a href="attachment.cgi?id=289377&amp;action=diff" name="attach_289377" title="Patch">attachment 289377</a> <a href="attachment.cgi?id=289377&amp;action=edit" title="Patch">[details]</a></span>
&gt; Patch
&gt; 
&gt; View in context:
&gt; <a href="https://bugs.webkit.org/attachment.cgi?id=289377&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=289377&amp;action=review</a>
&gt; 
&gt; &gt; Source/JavaScriptCore/ChangeLog:11
&gt; &gt; +        This patch is merging the op_get_by_id_with_this with op_get_by_id and
&gt; &gt; +        this way we enable get_by_id optimizations such as Monomorphic/Polymorphic Inline
&gt; &gt; +        Cache on JIT layers for super member access. These optimizations is improving access
&gt; &gt; +        of super members in ~20%.
&gt; 
&gt; Fully unoptimized property access is 10X slower than fully optimized
&gt; property access. Therefore, it's surprising that this patch is not a bigger
&gt; win on super-get-by-id-with-this-monomorphic. It looks like
&gt; super-get-by-id-with-this-monomorphic is a getter/setter benchmark. Can you
&gt; verify that the FTL successfully inlines the getter and setter for value()?
&gt; Perhaps the win on this benchmark is not bigger because the benchmark
&gt; includes an intermediate &quot;calc&quot; function, which is pretty expensive. Can you
&gt; report the speedup on this benchmark if you remove the call to calc?</span >

Good to know that. I faced a problem while creating the patch to get GetById compiled in FTL layer. To get it working, I was using --accessInline=false. What I mean is that the reason can br related with that. I am going to investigate it.

<span class="quote">&gt; &gt; Source/JavaScriptCore/bytecode/PolymorphicAccess.cpp:1096
&gt; &gt; -            GPRReg baseForCustomValue = m_type == CustomValueGetter || m_type == CustomValueSetter ? baseForAccessGPR : baseForGetGPR;
&gt; &gt; +            GPRReg baseForCustomValue = m_type == CustomValueGetter || m_type == CustomValueSetter ? baseForAccessGPR : baseForCustomGetGPR;
&gt; 
&gt; Isn't the answer always thisGPR? Under what conditions do I want to invoke a
&gt; getter or setter without the specified this?</span >

If I am not wrong, no. This code is dominated by this manipulation over baseForGetGPR (<a href="https://github.com/caiolima/webkit/blob/merge_by_ids/Source/JavaScriptCore/bytecode/PolymorphicAccess.cpp#L879">https://github.com/caiolima/webkit/blob/merge_by_ids/Source/JavaScriptCore/bytecode/PolymorphicAccess.cpp#L879</a>). So, when thisGPR == baseGPR, it is safer get baseForGetGPR because of &quot;Proxy observed&quot; lookups. I am thinking that it is worth think in cases when thisOperand != baseOperand and it is &quot;Proxy Observed&quot;. Does it make sense?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>